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_SIMULATOR_ARM64_H_ | 5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ |
6 #define V8_ARM64_SIMULATOR_ARM64_H_ | 6 #define V8_ARM64_SIMULATOR_ARM64_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "src/allocation.h" | 11 #include "src/allocation.h" |
12 #include "src/arm64/assembler-arm64.h" | 12 #include "src/arm64/assembler-arm64.h" |
13 #include "src/arm64/decoder-arm64.h" | 13 #include "src/arm64/decoder-arm64.h" |
14 #include "src/arm64/disasm-arm64.h" | 14 #include "src/arm64/disasm-arm64.h" |
15 #include "src/arm64/instrument-arm64.h" | 15 #include "src/arm64/instrument-arm64.h" |
16 #include "src/assembler.h" | 16 #include "src/assembler.h" |
17 #include "src/globals.h" | 17 #include "src/globals.h" |
18 #include "src/utils.h" | 18 #include "src/utils.h" |
19 | 19 |
| 20 #define REGISTER_CODE_LIST(R) \ |
| 21 R(0) R(1) R(2) R(3) R(4) R(5) R(6) R(7) \ |
| 22 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \ |
| 23 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \ |
| 24 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31) |
| 25 |
20 namespace v8 { | 26 namespace v8 { |
21 namespace internal { | 27 namespace internal { |
22 | 28 |
23 #if !defined(USE_SIMULATOR) | 29 #if !defined(USE_SIMULATOR) |
24 | 30 |
25 // Running without a simulator on a native ARM64 platform. | 31 // Running without a simulator on a native ARM64 platform. |
26 // When running without a simulator we call the entry directly. | 32 // When running without a simulator we call the entry directly. |
27 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ | 33 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ |
28 (entry(p0, p1, p2, p3, p4)) | 34 (entry(p0, p1, p2, p3, p4)) |
29 | 35 |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 static void UnregisterCTryCatch() { | 907 static void UnregisterCTryCatch() { |
902 Simulator::current(Isolate::Current())->PopAddress(); | 908 Simulator::current(Isolate::Current())->PopAddress(); |
903 } | 909 } |
904 }; | 910 }; |
905 | 911 |
906 #endif // !defined(USE_SIMULATOR) | 912 #endif // !defined(USE_SIMULATOR) |
907 | 913 |
908 } } // namespace v8::internal | 914 } } // namespace v8::internal |
909 | 915 |
910 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 916 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
OLD | NEW |