frame-constants-x64.cc 836 Bytes
Newer Older
1
// Copyright 2010 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
#if V8_TARGET_ARCH_X64
6

7 8
#include "src/x64/frame-constants-x64.h"

9
#include "src/frame-constants.h"
10
#include "src/x64/assembler-x64-inl.h"
11

12 13 14 15

namespace v8 {
namespace internal {

16 17
Register JavaScriptFrame::fp_register() { return rbp; }
Register JavaScriptFrame::context_register() { return rsi; }
18
Register JavaScriptFrame::constant_pool_pointer_register() { UNREACHABLE(); }
19

20 21 22 23
int InterpreterFrameConstants::RegisterStackSlotCount(int register_count) {
  return register_count;
}

24 25 26 27 28
int BuiltinContinuationFrameConstants::PaddingSlotCount(int register_count) {
  USE(register_count);
  return 0;
}

29 30
}  // namespace internal
}  // namespace v8
31 32

#endif  // V8_TARGET_ARCH_X64