OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #endif | 30 #endif |
31 | 31 |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 // Give alias names to registers for calling conventions. | 36 // Give alias names to registers for calling conventions. |
37 // TODO(titzer): arm64 is a pain for aliasing; get rid of these macros | 37 // TODO(titzer): arm64 is a pain for aliasing; get rid of these macros |
38 #define kReturnRegister0 x0 | 38 #define kReturnRegister0 x0 |
39 #define kReturnRegister1 x1 | 39 #define kReturnRegister1 x1 |
| 40 #define kReturnRegister2 x2 |
40 #define kJSFunctionRegister x1 | 41 #define kJSFunctionRegister x1 |
41 #define kContextRegister cp | 42 #define kContextRegister cp |
42 #define kInterpreterAccumulatorRegister x0 | 43 #define kInterpreterAccumulatorRegister x0 |
43 #define kInterpreterRegisterFileRegister x18 | 44 #define kInterpreterRegisterFileRegister x18 |
44 #define kInterpreterBytecodeOffsetRegister x19 | 45 #define kInterpreterBytecodeOffsetRegister x19 |
45 #define kInterpreterBytecodeArrayRegister x20 | 46 #define kInterpreterBytecodeArrayRegister x20 |
46 #define kInterpreterDispatchTableRegister x21 | 47 #define kInterpreterDispatchTableRegister x21 |
47 #define kJavaScriptCallArgCountRegister x0 | 48 #define kJavaScriptCallArgCountRegister x0 |
48 #define kJavaScriptCallNewTargetRegister x3 | 49 #define kJavaScriptCallNewTargetRegister x3 |
49 #define kRuntimeCallFunctionRegister x1 | 50 #define kRuntimeCallFunctionRegister x1 |
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2246 #error "Unsupported option" | 2247 #error "Unsupported option" |
2247 #define CODE_COVERAGE_STRINGIFY(x) #x | 2248 #define CODE_COVERAGE_STRINGIFY(x) #x |
2248 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2249 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2249 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2250 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2250 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2251 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2251 #else | 2252 #else |
2252 #define ACCESS_MASM(masm) masm-> | 2253 #define ACCESS_MASM(masm) masm-> |
2253 #endif | 2254 #endif |
2254 | 2255 |
2255 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2256 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |