OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/x64/assembler-x64-inl.h" | 9 #include "src/x64/assembler-x64-inl.h" |
10 #include "src/x64/assembler-x64.h" | 10 #include "src/x64/assembler-x64.h" |
| 11 #include "src/x64/frames-x64.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 | 16 |
16 Register JavaScriptFrame::fp_register() { return rbp; } | 17 Register JavaScriptFrame::fp_register() { return rbp; } |
17 Register JavaScriptFrame::context_register() { return rsi; } | 18 Register JavaScriptFrame::context_register() { return rsi; } |
18 Register JavaScriptFrame::constant_pool_pointer_register() { | 19 Register JavaScriptFrame::constant_pool_pointer_register() { |
19 UNREACHABLE(); | 20 UNREACHABLE(); |
20 return no_reg; | 21 return no_reg; |
21 } | 22 } |
22 | 23 |
23 | 24 |
24 Register StubFailureTrampolineFrame::fp_register() { return rbp; } | 25 Register StubFailureTrampolineFrame::fp_register() { return rbp; } |
25 Register StubFailureTrampolineFrame::context_register() { return rsi; } | 26 Register StubFailureTrampolineFrame::context_register() { return rsi; } |
26 Register StubFailureTrampolineFrame::constant_pool_pointer_register() { | 27 Register StubFailureTrampolineFrame::constant_pool_pointer_register() { |
27 UNREACHABLE(); | 28 UNREACHABLE(); |
28 return no_reg; | 29 return no_reg; |
29 } | 30 } |
30 | 31 |
31 | 32 |
32 } // namespace internal | 33 } // namespace internal |
33 } // namespace v8 | 34 } // namespace v8 |
34 | 35 |
35 #endif // V8_TARGET_ARCH_X64 | 36 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |