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. |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void DecodeType6(Instr* instr); | 252 void DecodeType6(Instr* instr); |
253 void DecodeType7(Instr* instr); | 253 void DecodeType7(Instr* instr); |
254 void DecodeSIMDDataProcessing(Instr* instr); | 254 void DecodeSIMDDataProcessing(Instr* instr); |
255 | 255 |
256 // Executes one instruction. | 256 // Executes one instruction. |
257 void InstructionDecode(Instr* instr); | 257 void InstructionDecode(Instr* instr); |
258 | 258 |
259 // Executes ARM instructions until the PC reaches kEndSimulatingPC. | 259 // Executes ARM instructions until the PC reaches kEndSimulatingPC. |
260 void Execute(); | 260 void Execute(); |
261 | 261 |
| 262 // Returns true if tracing of executed instructions is enabled. |
| 263 bool IsTracingExecution() const; |
| 264 |
262 // Longjmp support for exceptions. | 265 // Longjmp support for exceptions. |
263 SimulatorSetjmpBuffer* last_setjmp_buffer() { | 266 SimulatorSetjmpBuffer* last_setjmp_buffer() { |
264 return last_setjmp_buffer_; | 267 return last_setjmp_buffer_; |
265 } | 268 } |
266 void set_last_setjmp_buffer(SimulatorSetjmpBuffer* buffer) { | 269 void set_last_setjmp_buffer(SimulatorSetjmpBuffer* buffer) { |
267 last_setjmp_buffer_ = buffer; | 270 last_setjmp_buffer_ = buffer; |
268 } | 271 } |
269 | 272 |
270 friend class SimulatorDebugger; | 273 friend class SimulatorDebugger; |
271 friend class SimulatorSetjmpBuffer; | 274 friend class SimulatorSetjmpBuffer; |
272 DISALLOW_COPY_AND_ASSIGN(Simulator); | 275 DISALLOW_COPY_AND_ASSIGN(Simulator); |
273 }; | 276 }; |
274 | 277 |
275 } // namespace dart | 278 } // namespace dart |
276 | 279 |
277 #endif // VM_SIMULATOR_ARM_H_ | 280 #endif // VM_SIMULATOR_ARM_H_ |
OLD | NEW |