OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Declares a Simulator for ARM64 instructions if we are not generating a native | 5 // Declares a Simulator for ARM64 instructions if we are not generating a native |
6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation | 6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation |
7 // on regular desktop machines. | 7 // on regular desktop machines. |
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, | 8 // Dart calls into generated code by "calling" the InvokeDartCode stub, |
9 // which will start execution in the Simulator or forwards to the real entry | 9 // which will start execution in the Simulator or forwards to the real entry |
10 // on a ARM64 HW platform. | 10 // on a ARM64 HW platform. |
11 | 11 |
12 #ifndef VM_SIMULATOR_ARM64_H_ | 12 #ifndef RUNTIME_VM_SIMULATOR_ARM64_H_ |
13 #define VM_SIMULATOR_ARM64_H_ | 13 #define RUNTIME_VM_SIMULATOR_ARM64_H_ |
14 | 14 |
15 #ifndef VM_SIMULATOR_H_ | 15 #ifndef RUNTIME_VM_SIMULATOR_H_ |
16 #error Do not include simulator_arm64.h directly; use simulator.h. | 16 #error Do not include simulator_arm64.h directly; use simulator.h. |
17 #endif | 17 #endif |
18 | 18 |
19 #include "vm/constants_arm64.h" | 19 #include "vm/constants_arm64.h" |
20 | 20 |
21 namespace dart { | 21 namespace dart { |
22 | 22 |
23 class Isolate; | 23 class Isolate; |
24 class Mutex; | 24 class Mutex; |
25 class RawObject; | 25 class RawObject; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 last_setjmp_buffer_ = buffer; | 275 last_setjmp_buffer_ = buffer; |
276 } | 276 } |
277 | 277 |
278 friend class SimulatorDebugger; | 278 friend class SimulatorDebugger; |
279 friend class SimulatorSetjmpBuffer; | 279 friend class SimulatorSetjmpBuffer; |
280 DISALLOW_COPY_AND_ASSIGN(Simulator); | 280 DISALLOW_COPY_AND_ASSIGN(Simulator); |
281 }; | 281 }; |
282 | 282 |
283 } // namespace dart | 283 } // namespace dart |
284 | 284 |
285 #endif // VM_SIMULATOR_ARM64_H_ | 285 #endif // RUNTIME_VM_SIMULATOR_ARM64_H_ |
OLD | NEW |