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" |
11 #include "src/bailout-reason.h" | 11 #include "src/bailout-reason.h" |
12 #include "src/base/bits.h" | 12 #include "src/base/bits.h" |
13 #include "src/globals.h" | 13 #include "src/globals.h" |
14 | 14 |
15 // Simulator specific helpers. | 15 // Simulator specific helpers. |
16 #if USE_SIMULATOR | 16 #if USE_SIMULATOR |
17 // TODO(all): If possible automatically prepend an indicator like | 17 // TODO(all): If possible automatically prepend an indicator like |
18 // UNIMPLEMENTED or LOCATION. | 18 // UNIMPLEMENTED or LOCATION. |
19 #define ASM_UNIMPLEMENTED(message) \ | 19 #define ASM_UNIMPLEMENTED(message) \ |
20 __ Debug(message, __LINE__, NO_PARAM) | 20 __ Debug(message, __LINE__, NO_PARAM) |
21 #define ASM_UNIMPLEMENTED_BREAK(message) \ | 21 #define ASM_UNIMPLEMENTED_BREAK(message) \ |
22 __ Debug(message, __LINE__, \ | 22 __ Debug(message, __LINE__, \ |
23 FLAG_ignore_asm_unimplemented_break ? NO_PARAM : BREAK) | 23 FLAG_ignore_asm_unimplemented_break ? NO_PARAM : BREAK) |
24 #define ASM_LOCATION(message) \ | 24 #if DEBUG |
25 __ Debug("LOCATION: " message, __LINE__, NO_PARAM) | 25 #define ASM_LOCATION(message) __ Debug("LOCATION: " message, __LINE__, NO_PARAM) |
26 #else | 26 #else |
27 #define ASM_UNIMPLEMENTED(message) | 27 #define ASM_LOCATION(message) |
28 #define ASM_UNIMPLEMENTED_BREAK(message) | 28 #endif |
29 #define ASM_LOCATION(message) | 29 #else |
| 30 #define ASM_UNIMPLEMENTED(message) |
| 31 #define ASM_UNIMPLEMENTED_BREAK(message) |
| 32 #define ASM_LOCATION(message) |
30 #endif | 33 #endif |
31 | 34 |
32 | 35 |
33 namespace v8 { | 36 namespace v8 { |
34 namespace internal { | 37 namespace internal { |
35 | 38 |
36 // Give alias names to registers for calling conventions. | 39 // Give alias names to registers for calling conventions. |
37 #define kReturnRegister0 x0 | 40 #define kReturnRegister0 x0 |
38 #define kReturnRegister1 x1 | 41 #define kReturnRegister1 x1 |
39 #define kReturnRegister2 x2 | 42 #define kReturnRegister2 x2 |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 #error "Unsupported option" | 2277 #error "Unsupported option" |
2275 #define CODE_COVERAGE_STRINGIFY(x) #x | 2278 #define CODE_COVERAGE_STRINGIFY(x) #x |
2276 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2279 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2277 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2280 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2278 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2281 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2279 #else | 2282 #else |
2280 #define ACCESS_MASM(masm) masm-> | 2283 #define ACCESS_MASM(masm) masm-> |
2281 #endif | 2284 #endif |
2282 | 2285 |
2283 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2286 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |