| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void get_qregister(QRegister reg, simd_value_t* value) const; | 63 void get_qregister(QRegister reg, simd_value_t* value) const; |
| 64 | 64 |
| 65 // When moving integer (rather than floating point) values to/from | 65 // When moving integer (rather than floating point) values to/from |
| 66 // the FPU registers, use the _bits calls to avoid gcc taking liberties with | 66 // the FPU registers, use the _bits calls to avoid gcc taking liberties with |
| 67 // integers that map to such things as NaN floating point values. | 67 // integers that map to such things as NaN floating point values. |
| 68 void set_sregister_bits(SRegister reg, int32_t value); | 68 void set_sregister_bits(SRegister reg, int32_t value); |
| 69 int32_t get_sregister_bits(SRegister reg) const; | 69 int32_t get_sregister_bits(SRegister reg) const; |
| 70 void set_dregister_bits(DRegister reg, int64_t value); | 70 void set_dregister_bits(DRegister reg, int64_t value); |
| 71 int64_t get_dregister_bits(DRegister reg) const; | 71 int64_t get_dregister_bits(DRegister reg) const; |
| 72 | 72 |
| 73 // Accessor to the internal simulator stack top. | 73 // Accessors to the internal simulator stack base and top. |
| 74 uword StackBase() const { return reinterpret_cast<uword>(stack_); } |
| 74 uword StackTop() const; | 75 uword StackTop() const; |
| 75 | 76 |
| 76 // Accessor to the instruction counter. | 77 // Accessor to the instruction counter. |
| 77 uint64_t get_icount() const { return icount_; } | 78 uint64_t get_icount() const { return icount_; } |
| 78 | 79 |
| 79 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator | 80 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator |
| 80 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the | 81 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the |
| 81 // native stack. | 82 // native stack. |
| 82 uword top_exit_frame_info() const { return top_exit_frame_info_; } | 83 uword top_exit_frame_info() const { return top_exit_frame_info_; } |
| 83 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } | 84 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 272 } |
| 272 | 273 |
| 273 friend class SimulatorDebugger; | 274 friend class SimulatorDebugger; |
| 274 friend class SimulatorSetjmpBuffer; | 275 friend class SimulatorSetjmpBuffer; |
| 275 DISALLOW_COPY_AND_ASSIGN(Simulator); | 276 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 276 }; | 277 }; |
| 277 | 278 |
| 278 } // namespace dart | 279 } // namespace dart |
| 279 | 280 |
| 280 #endif // VM_SIMULATOR_ARM_H_ | 281 #endif // VM_SIMULATOR_ARM_H_ |
| OLD | NEW |