Chromium Code Reviews| 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/allocation.h" | 19 #include "vm/allocation.h" |
| 20 #include "vm/constants_arm.h" | 20 #include "vm/constants_arm.h" |
| 21 #include "vm/object.h" | 21 #include "vm/object.h" |
| 22 | 22 |
| 23 namespace dart { | 23 namespace dart { |
| 24 | 24 |
| 25 DECLARE_FLAG(bool, sim_has_int_div); | |
| 26 | |
|
regis
2013/03/04 21:54:52
Not necessary.
| |
| 25 class Isolate; | 27 class Isolate; |
| 26 class SimulatorSetjmpBuffer; | 28 class SimulatorSetjmpBuffer; |
| 27 | 29 |
| 28 class Simulator { | 30 class Simulator { |
| 29 public: | 31 public: |
| 30 static const uword kSimulatorStackUnderflowSize = 64; | 32 static const uword kSimulatorStackUnderflowSize = 64; |
| 31 | 33 |
| 32 Simulator(); | 34 Simulator(); |
| 33 ~Simulator(); | 35 ~Simulator(); |
| 34 | 36 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 } | 222 } |
| 221 | 223 |
| 222 friend class SimulatorDebugger; | 224 friend class SimulatorDebugger; |
| 223 friend class SimulatorSetjmpBuffer; | 225 friend class SimulatorSetjmpBuffer; |
| 224 DISALLOW_COPY_AND_ASSIGN(Simulator); | 226 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 } // namespace dart | 229 } // namespace dart |
| 228 | 230 |
| 229 #endif // VM_SIMULATOR_ARM_H_ | 231 #endif // VM_SIMULATOR_ARM_H_ |
| OLD | NEW |