| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 164   void set_register(int reg, int32_t value); | 164   void set_register(int reg, int32_t value); | 
| 165   void set_dw_register(int dreg, const int* dbl); | 165   void set_dw_register(int dreg, const int* dbl); | 
| 166   int32_t get_register(int reg) const; | 166   int32_t get_register(int reg) const; | 
| 167   double get_double_from_register_pair(int reg); | 167   double get_double_from_register_pair(int reg); | 
| 168   // Same for FPURegisters. | 168   // Same for FPURegisters. | 
| 169   void set_fpu_register(int fpureg, int64_t value); | 169   void set_fpu_register(int fpureg, int64_t value); | 
| 170   void set_fpu_register_word(int fpureg, int32_t value); | 170   void set_fpu_register_word(int fpureg, int32_t value); | 
| 171   void set_fpu_register_hi_word(int fpureg, int32_t value); | 171   void set_fpu_register_hi_word(int fpureg, int32_t value); | 
| 172   void set_fpu_register_float(int fpureg, float value); | 172   void set_fpu_register_float(int fpureg, float value); | 
| 173   void set_fpu_register_double(int fpureg, double value); | 173   void set_fpu_register_double(int fpureg, double value); | 
|  | 174   void set_fpu_register_invalid_result64(float original, float rounded); | 
|  | 175   void set_fpu_register_invalid_result(float original, float rounded); | 
|  | 176   void set_fpu_register_word_invalid_result(float original, float rounded); | 
|  | 177   void set_fpu_register_invalid_result64(double original, double rounded); | 
|  | 178   void set_fpu_register_invalid_result(double original, double rounded); | 
|  | 179   void set_fpu_register_word_invalid_result(double original, double rounded); | 
| 174   int64_t get_fpu_register(int fpureg) const; | 180   int64_t get_fpu_register(int fpureg) const; | 
| 175   int32_t get_fpu_register_word(int fpureg) const; | 181   int32_t get_fpu_register_word(int fpureg) const; | 
| 176   int32_t get_fpu_register_signed_word(int fpureg) const; | 182   int32_t get_fpu_register_signed_word(int fpureg) const; | 
| 177   int32_t get_fpu_register_hi_word(int fpureg) const; | 183   int32_t get_fpu_register_hi_word(int fpureg) const; | 
| 178   float get_fpu_register_float(int fpureg) const; | 184   float get_fpu_register_float(int fpureg) const; | 
| 179   double get_fpu_register_double(int fpureg) const; | 185   double get_fpu_register_double(int fpureg) const; | 
| 180   void set_fcsr_bit(uint32_t cc, bool value); | 186   void set_fcsr_bit(uint32_t cc, bool value); | 
| 181   bool test_fcsr_bit(uint32_t cc); | 187   bool test_fcsr_bit(uint32_t cc); | 
| 182   void set_fcsr_rounding_mode(FPURoundingMode mode); | 188   void set_fcsr_rounding_mode(FPURoundingMode mode); | 
| 183   unsigned int get_fcsr_rounding_mode(); | 189   unsigned int get_fcsr_rounding_mode(); | 
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 498   static inline void UnregisterCTryCatch(Isolate* isolate) { | 504   static inline void UnregisterCTryCatch(Isolate* isolate) { | 
| 499     Simulator::current(isolate)->PopAddress(); | 505     Simulator::current(isolate)->PopAddress(); | 
| 500   } | 506   } | 
| 501 }; | 507 }; | 
| 502 | 508 | 
| 503 }  // namespace internal | 509 }  // namespace internal | 
| 504 }  // namespace v8 | 510 }  // namespace v8 | 
| 505 | 511 | 
| 506 #endif  // !defined(USE_SIMULATOR) | 512 #endif  // !defined(USE_SIMULATOR) | 
| 507 #endif  // V8_MIPS_SIMULATOR_MIPS_H_ | 513 #endif  // V8_MIPS_SIMULATOR_MIPS_H_ | 
| OLD | NEW | 
|---|