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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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. |
| 17 const Register kReturnRegister0 = {kRegister_eax_Code}; |
| 18 const Register kReturnRegister1 = {kRegister_edx_Code}; |
| 19 const Register kJSFunctionRegister = {kRegister_edi_Code}; |
| 20 const Register kContextRegister = {kRegister_esi_Code}; |
| 21 const Register kInterpreterBytecodeOffsetRegister = {kRegister_ecx_Code}; |
| 22 const Register kInterpreterBytecodeArrayRegister = {kRegister_edi_Code}; |
| 23 const Register kInterpreterDispatchTableRegister = {kRegister_ebx_Code}; |
| 24 const Register kRuntimeCallFunctionRegister = {kRegister_ebx_Code}; |
| 25 const Register kRuntimeCallArgCountRegister = {kRegister_eax_Code}; |
| 26 |
16 // Convenience for platform-independent signatures. We do not normally | 27 // Convenience for platform-independent signatures. We do not normally |
17 // distinguish memory operands from other operands on ia32. | 28 // distinguish memory operands from other operands on ia32. |
18 typedef Operand MemOperand; | 29 typedef Operand MemOperand; |
19 | 30 |
20 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; | 31 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; |
21 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; | 32 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; |
22 enum PointersToHereCheck { | 33 enum PointersToHereCheck { |
23 kPointersToHereMaybeInteresting, | 34 kPointersToHereMaybeInteresting, |
24 kPointersToHereAreAlwaysInteresting | 35 kPointersToHereAreAlwaysInteresting |
25 }; | 36 }; |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 } \ | 1107 } \ |
1097 masm-> | 1108 masm-> |
1098 #else | 1109 #else |
1099 #define ACCESS_MASM(masm) masm-> | 1110 #define ACCESS_MASM(masm) masm-> |
1100 #endif | 1111 #endif |
1101 | 1112 |
1102 | 1113 |
1103 } } // namespace v8::internal | 1114 } } // namespace v8::internal |
1104 | 1115 |
1105 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |