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_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 // Give alias names to registers for calling conventions. | 15 // Give alias names to registers for calling conventions. |
16 const Register kReturnRegister0 = {Register::kCode_v0}; | 16 const Register kReturnRegister0 = {kRegister_v0_Code}; |
17 const Register kReturnRegister1 = {Register::kCode_v1}; | 17 const Register kReturnRegister1 = {kRegister_v1_Code}; |
18 const Register kJSFunctionRegister = {Register::kCode_a1}; | 18 const Register kJSFunctionRegister = {kRegister_a1_Code}; |
19 const Register kContextRegister = {Register::kCpRegister}; | 19 const Register kContextRegister = {kRegister_s7_Code}; |
20 const Register kInterpreterAccumulatorRegister = {Register::kCode_v0}; | 20 const Register kInterpreterAccumulatorRegister = {kRegister_v0_Code}; |
21 const Register kInterpreterRegisterFileRegister = {Register::kCode_a7}; | 21 const Register kInterpreterRegisterFileRegister = {kRegister_a7_Code}; |
22 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_t0}; | 22 const Register kInterpreterBytecodeOffsetRegister = {kRegister_t0_Code}; |
23 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_t1}; | 23 const Register kInterpreterBytecodeArrayRegister = {kRegister_t1_Code}; |
24 const Register kInterpreterDispatchTableRegister = {Register::kCode_t2}; | 24 const Register kInterpreterDispatchTableRegister = {kRegister_t2_Code}; |
25 const Register kRuntimeCallFunctionRegister = {Register::kCode_a1}; | 25 const Register kRuntimeCallFunctionRegister = {kRegister_a1_Code}; |
26 const Register kRuntimeCallArgCountRegister = {Register::kCode_a0}; | 26 const Register kRuntimeCallArgCountRegister = {kRegister_a0_Code}; |
27 | 27 |
28 // Forward declaration. | 28 // Forward declaration. |
29 class JumpTarget; | 29 class JumpTarget; |
30 | 30 |
31 // Reserved Register Usage Summary. | 31 // Reserved Register Usage Summary. |
32 // | 32 // |
33 // Registers t8, t9, and at are reserved for use by the MacroAssembler. | 33 // Registers t8, t9, and at are reserved for use by the MacroAssembler. |
34 // | 34 // |
35 // The programmer should know that the MacroAssembler may clobber these three, | 35 // The programmer should know that the MacroAssembler may clobber these three, |
36 // but won't touch other registers except in special cases. | 36 // but won't touch other registers except in special cases. |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1824 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1824 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1825 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1825 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1826 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1826 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1827 #else | 1827 #else |
1828 #define ACCESS_MASM(masm) masm-> | 1828 #define ACCESS_MASM(masm) masm-> |
1829 #endif | 1829 #endif |
1830 | 1830 |
1831 } } // namespace v8::internal | 1831 } } // namespace v8::internal |
1832 | 1832 |
1833 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1833 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |