OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
11 #include "src/globals.h" | 11 #include "src/globals.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 // Give alias names to registers for calling conventions. | 16 // Give alias names to registers for calling conventions. |
17 const Register kReturnRegister0 = {Register::kCode_eax}; | 17 const Register kReturnRegister0 = {Register::kCode_eax}; |
18 const Register kReturnRegister1 = {Register::kCode_edx}; | 18 const Register kReturnRegister1 = {Register::kCode_edx}; |
19 const Register kReturnRegister2 = {Register::kCode_edi}; | 19 const Register kReturnRegister2 = {Register::kCode_edi}; |
20 const Register kJSFunctionRegister = {Register::kCode_edi}; | 20 const Register kJSFunctionRegister = {Register::kCode_edi}; |
21 const Register kContextRegister = {Register::kCode_esi}; | 21 const Register kContextRegister = {Register::kCode_esi}; |
22 const Register kInterpreterAccumulatorRegister = {Register::kCode_eax}; | 22 const Register kInterpreterAccumulatorRegister = {Register::kCode_eax}; |
23 const Register kInterpreterRegisterFileRegister = {Register::kCode_edx}; | |
24 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_ecx}; | 23 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_ecx}; |
25 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_edi}; | 24 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_edi}; |
26 const Register kInterpreterDispatchTableRegister = {Register::kCode_esi}; | 25 const Register kInterpreterDispatchTableRegister = {Register::kCode_esi}; |
27 const Register kJavaScriptCallArgCountRegister = {Register::kCode_eax}; | 26 const Register kJavaScriptCallArgCountRegister = {Register::kCode_eax}; |
28 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_edx}; | 27 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_edx}; |
29 const Register kRuntimeCallFunctionRegister = {Register::kCode_ebx}; | 28 const Register kRuntimeCallFunctionRegister = {Register::kCode_ebx}; |
30 const Register kRuntimeCallArgCountRegister = {Register::kCode_eax}; | 29 const Register kRuntimeCallArgCountRegister = {Register::kCode_eax}; |
31 | 30 |
32 // Spill slots used by interpreter dispatch calling convention. | 31 // Spill slots used by interpreter dispatch calling convention. |
33 const int kInterpreterDispatchTableSpillSlot = -1; | 32 const int kInterpreterDispatchTableSpillSlot = -1; |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 } \ | 1044 } \ |
1046 masm-> | 1045 masm-> |
1047 #else | 1046 #else |
1048 #define ACCESS_MASM(masm) masm-> | 1047 #define ACCESS_MASM(masm) masm-> |
1049 #endif | 1048 #endif |
1050 | 1049 |
1051 } // namespace internal | 1050 } // namespace internal |
1052 } // namespace v8 | 1051 } // namespace v8 |
1053 | 1052 |
1054 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1053 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |