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 = {Register::kCode_v0}; |
17 const Register kReturnRegister1 = {Register::kCode_v1}; | 17 const Register kReturnRegister1 = {Register::kCode_v1}; |
18 const Register kReturnRegister2 = {Register::kCode_a0}; | 18 const Register kReturnRegister2 = {Register::kCode_a0}; |
19 const Register kJSFunctionRegister = {Register::kCode_a1}; | 19 const Register kJSFunctionRegister = {Register::kCode_a1}; |
20 const Register kContextRegister = {Register::kCpRegister}; | 20 const Register kContextRegister = {Register::kCpRegister}; |
| 21 const Register kAllocateSizeRegister = {Register::kCode_a0}; |
21 const Register kInterpreterAccumulatorRegister = {Register::kCode_v0}; | 22 const Register kInterpreterAccumulatorRegister = {Register::kCode_v0}; |
22 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_t0}; | 23 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_t0}; |
23 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_t1}; | 24 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_t1}; |
24 const Register kInterpreterDispatchTableRegister = {Register::kCode_t2}; | 25 const Register kInterpreterDispatchTableRegister = {Register::kCode_t2}; |
25 const Register kJavaScriptCallArgCountRegister = {Register::kCode_a0}; | 26 const Register kJavaScriptCallArgCountRegister = {Register::kCode_a0}; |
26 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_a3}; | 27 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_a3}; |
27 const Register kRuntimeCallFunctionRegister = {Register::kCode_a1}; | 28 const Register kRuntimeCallFunctionRegister = {Register::kCode_a1}; |
28 const Register kRuntimeCallArgCountRegister = {Register::kCode_a0}; | 29 const Register kRuntimeCallArgCountRegister = {Register::kCode_a0}; |
29 | 30 |
30 // Forward declaration. | 31 // Forward declaration. |
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2021 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2022 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2022 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2023 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2023 #else | 2024 #else |
2024 #define ACCESS_MASM(masm) masm-> | 2025 #define ACCESS_MASM(masm) masm-> |
2025 #endif | 2026 #endif |
2026 | 2027 |
2027 } // namespace internal | 2028 } // namespace internal |
2028 } // namespace v8 | 2029 } // namespace v8 |
2029 | 2030 |
2030 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2031 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |