| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 // Declares a Simulator for MIPS instructions if we are not generating a native | 6 // Declares a Simulator for MIPS instructions if we are not generating a native |
| 7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation | 7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation |
| 8 // on regular desktop machines. | 8 // on regular desktop machines. |
| 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, | 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, |
| 10 // which will start execution in the Simulator or forwards to the real entry | 10 // which will start execution in the Simulator or forwards to the real entry |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 double get_double_from_register_pair(int reg); | 193 double get_double_from_register_pair(int reg); |
| 194 // Same for FPURegisters. | 194 // Same for FPURegisters. |
| 195 void set_fpu_register(int fpureg, int64_t value); | 195 void set_fpu_register(int fpureg, int64_t value); |
| 196 void set_fpu_register_word(int fpureg, int32_t value); | 196 void set_fpu_register_word(int fpureg, int32_t value); |
| 197 void set_fpu_register_hi_word(int fpureg, int32_t value); | 197 void set_fpu_register_hi_word(int fpureg, int32_t value); |
| 198 void set_fpu_register_float(int fpureg, float value); | 198 void set_fpu_register_float(int fpureg, float value); |
| 199 void set_fpu_register_double(int fpureg, double value); | 199 void set_fpu_register_double(int fpureg, double value); |
| 200 int64_t get_fpu_register(int fpureg) const; | 200 int64_t get_fpu_register(int fpureg) const; |
| 201 int32_t get_fpu_register_word(int fpureg) const; | 201 int32_t get_fpu_register_word(int fpureg) const; |
| 202 int32_t get_fpu_register_signed_word(int fpureg) const; | 202 int32_t get_fpu_register_signed_word(int fpureg) const; |
| 203 uint32_t get_fpu_register_hi_word(int fpureg) const; | 203 int32_t get_fpu_register_hi_word(int fpureg) const; |
| 204 float get_fpu_register_float(int fpureg) const; | 204 float get_fpu_register_float(int fpureg) const; |
| 205 double get_fpu_register_double(int fpureg) const; | 205 double get_fpu_register_double(int fpureg) const; |
| 206 void set_fcsr_bit(uint32_t cc, bool value); | 206 void set_fcsr_bit(uint32_t cc, bool value); |
| 207 bool test_fcsr_bit(uint32_t cc); | 207 bool test_fcsr_bit(uint32_t cc); |
| 208 bool set_fcsr_round_error(double original, double rounded); | 208 bool set_fcsr_round_error(double original, double rounded); |
| 209 bool set_fcsr_round64_error(double original, double rounded); | 209 bool set_fcsr_round64_error(double original, double rounded); |
| 210 | 210 |
| 211 // Special case of set_register and get_register to access the raw PC value. | 211 // Special case of set_register and get_register to access the raw PC value. |
| 212 void set_pc(int64_t value); | 212 void set_pc(int64_t value); |
| 213 int64_t get_pc() const; | 213 int64_t get_pc() const; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 | 470 |
| 471 static inline void UnregisterCTryCatch() { | 471 static inline void UnregisterCTryCatch() { |
| 472 Simulator::current(Isolate::Current())->PopAddress(); | 472 Simulator::current(Isolate::Current())->PopAddress(); |
| 473 } | 473 } |
| 474 }; | 474 }; |
| 475 | 475 |
| 476 } } // namespace v8::internal | 476 } } // namespace v8::internal |
| 477 | 477 |
| 478 #endif // !defined(USE_SIMULATOR) | 478 #endif // !defined(USE_SIMULATOR) |
| 479 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 479 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
| OLD | NEW |