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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Special case of set_register and get_register to access the raw PC value. | 51 // Special case of set_register and get_register to access the raw PC value. |
52 void set_pc(int32_t value); | 52 void set_pc(int32_t value); |
53 int32_t get_pc() const; | 53 int32_t get_pc() const; |
54 | 54 |
55 // Accessors for VFP register state. | 55 // Accessors for VFP register state. |
56 void set_sregister(SRegister reg, float value); | 56 void set_sregister(SRegister reg, float value); |
57 float get_sregister(SRegister reg) const; | 57 float get_sregister(SRegister reg) const; |
58 void set_dregister(DRegister reg, double value); | 58 void set_dregister(DRegister reg, double value); |
59 double get_dregister(DRegister reg) const; | 59 double get_dregister(DRegister reg) const; |
60 void set_qregister(QRegister reg, simd_value_t value); | 60 void set_qregister(QRegister reg, const simd_value_t& value); |
61 simd_value_t get_qregister(QRegister reg) const; | 61 void get_qregister(QRegister reg, simd_value_t* value) const; |
62 | 62 |
63 // When moving integer (rather than floating point) values to/from | 63 // When moving integer (rather than floating point) values to/from |
64 // the FPU registers, use the _bits calls to avoid gcc taking liberties with | 64 // the FPU registers, use the _bits calls to avoid gcc taking liberties with |
65 // integers that map to such things as NaN floating point values. | 65 // integers that map to such things as NaN floating point values. |
66 void set_sregister_bits(SRegister reg, int32_t value); | 66 void set_sregister_bits(SRegister reg, int32_t value); |
67 int32_t get_sregister_bits(SRegister reg) const; | 67 int32_t get_sregister_bits(SRegister reg) const; |
68 void set_dregister_bits(DRegister reg, int64_t value); | 68 void set_dregister_bits(DRegister reg, int64_t value); |
69 int64_t get_dregister_bits(DRegister reg) const; | 69 int64_t get_dregister_bits(DRegister reg) const; |
70 | 70 |
71 // Accessor to the internal simulator stack top. | 71 // Accessor to the internal simulator stack top. |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 | 266 |
267 friend class SimulatorDebugger; | 267 friend class SimulatorDebugger; |
268 friend class SimulatorSetjmpBuffer; | 268 friend class SimulatorSetjmpBuffer; |
269 DISALLOW_COPY_AND_ASSIGN(Simulator); | 269 DISALLOW_COPY_AND_ASSIGN(Simulator); |
270 }; | 270 }; |
271 | 271 |
272 } // namespace dart | 272 } // namespace dart |
273 | 273 |
274 #endif // VM_SIMULATOR_ARM_H_ | 274 #endif // VM_SIMULATOR_ARM_H_ |
OLD | NEW |