| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 ARM instructions if we are not generating a native | 5 // Declares a Simulator for ARM instructions if we are not generating a native |
| 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on | 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on |
| 7 // regular desktop machines. | 7 // 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 ARM HW platform. | 10 // on a ARM HW platform. |
| 11 | 11 |
| 12 #ifndef VM_SIMULATOR_ARM_H_ | 12 #ifndef VM_SIMULATOR_ARM_H_ |
| 13 #define VM_SIMULATOR_ARM_H_ | 13 #define VM_SIMULATOR_ARM_H_ |
| 14 | 14 |
| 15 #ifndef VM_SIMULATOR_H_ | 15 #ifndef VM_SIMULATOR_H_ |
| 16 #error Do not include simulator_arm.h directly; use simulator.h. | 16 #error Do not include simulator_arm.h directly; use simulator.h. |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 #include "vm/constants_arm.h" | 19 #include "vm/constants_arm.h" |
| 20 #include "vm/object.h" | |
| 21 | 20 |
| 22 namespace dart { | 21 namespace dart { |
| 23 | 22 |
| 24 class Isolate; | 23 class Isolate; |
| 24 class Mutex; |
| 25 class RawObject; |
| 25 class SimulatorSetjmpBuffer; | 26 class SimulatorSetjmpBuffer; |
| 26 | 27 |
| 27 typedef struct { | 28 typedef struct { |
| 28 union { | 29 union { |
| 29 uint32_t u; | 30 uint32_t u; |
| 30 float f; | 31 float f; |
| 31 } data_[4]; | 32 } data_[4]; |
| 32 } simd_value_t; | 33 } simd_value_t; |
| 33 | 34 |
| 34 class Simulator { | 35 class Simulator { |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 263 } |
| 263 | 264 |
| 264 friend class SimulatorDebugger; | 265 friend class SimulatorDebugger; |
| 265 friend class SimulatorSetjmpBuffer; | 266 friend class SimulatorSetjmpBuffer; |
| 266 DISALLOW_COPY_AND_ASSIGN(Simulator); | 267 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace dart | 270 } // namespace dart |
| 270 | 271 |
| 271 #endif // VM_SIMULATOR_ARM_H_ | 272 #endif // VM_SIMULATOR_ARM_H_ |
| OLD | NEW |