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 26 matching lines...) Loading... |
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 kJSFunctionRegister x1 | 40 #define kJSFunctionRegister x1 |
41 #define kContextRegister cp | 41 #define kContextRegister cp |
42 #define kInterpreterAccumulatorRegister x0 | 42 #define kInterpreterAccumulatorRegister x0 |
43 #define kInterpreterRegisterFileRegister x18 | 43 #define kInterpreterRegisterFileRegister x18 |
44 #define kInterpreterBytecodeOffsetRegister x19 | 44 #define kInterpreterBytecodeOffsetRegister x19 |
45 #define kInterpreterBytecodeArrayRegister x20 | 45 #define kInterpreterBytecodeArrayRegister x20 |
46 #define kInterpreterDispatchTableRegister x21 | 46 #define kInterpreterDispatchTableRegister x21 |
| 47 #define kJavaScriptCallArgCountRegister x0 |
47 #define kRuntimeCallFunctionRegister x1 | 48 #define kRuntimeCallFunctionRegister x1 |
48 #define kRuntimeCallArgCountRegister x0 | 49 #define kRuntimeCallArgCountRegister x0 |
49 | 50 |
50 #define LS_MACRO_LIST(V) \ | 51 #define LS_MACRO_LIST(V) \ |
51 V(Ldrb, Register&, rt, LDRB_w) \ | 52 V(Ldrb, Register&, rt, LDRB_w) \ |
52 V(Strb, Register&, rt, STRB_w) \ | 53 V(Strb, Register&, rt, STRB_w) \ |
53 V(Ldrsb, Register&, rt, rt.Is64Bits() ? LDRSB_x : LDRSB_w) \ | 54 V(Ldrsb, Register&, rt, rt.Is64Bits() ? LDRSB_x : LDRSB_w) \ |
54 V(Ldrh, Register&, rt, LDRH_w) \ | 55 V(Ldrh, Register&, rt, LDRH_w) \ |
55 V(Strh, Register&, rt, STRH_w) \ | 56 V(Strh, Register&, rt, STRH_w) \ |
56 V(Ldrsh, Register&, rt, rt.Is64Bits() ? LDRSH_x : LDRSH_w) \ | 57 V(Ldrsh, Register&, rt, rt.Is64Bits() ? LDRSH_x : LDRSH_w) \ |
(...skipping 2231 matching lines...) Loading... |
2288 #error "Unsupported option" | 2289 #error "Unsupported option" |
2289 #define CODE_COVERAGE_STRINGIFY(x) #x | 2290 #define CODE_COVERAGE_STRINGIFY(x) #x |
2290 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2291 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2291 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2292 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2292 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2293 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2293 #else | 2294 #else |
2294 #define ACCESS_MASM(masm) masm-> | 2295 #define ACCESS_MASM(masm) masm-> |
2295 #endif | 2296 #endif |
2296 | 2297 |
2297 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2298 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |