| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 float get_fpu_register_float(int fpureg) const; | 196 float get_fpu_register_float(int fpureg) const; |
| 197 double get_fpu_register_double(int fpureg) const; | 197 double get_fpu_register_double(int fpureg) const; |
| 198 void set_fcsr_bit(uint32_t cc, bool value); | 198 void set_fcsr_bit(uint32_t cc, bool value); |
| 199 bool test_fcsr_bit(uint32_t cc); | 199 bool test_fcsr_bit(uint32_t cc); |
| 200 bool set_fcsr_round_error(double original, double rounded); | 200 bool set_fcsr_round_error(double original, double rounded); |
| 201 | 201 |
| 202 // Special case of set_register and get_register to access the raw PC value. | 202 // Special case of set_register and get_register to access the raw PC value. |
| 203 void set_pc(int32_t value); | 203 void set_pc(int32_t value); |
| 204 int32_t get_pc() const; | 204 int32_t get_pc() const; |
| 205 | 205 |
| 206 Address get_sp() { | |
| 207 return reinterpret_cast<Address>(static_cast<intptr_t>(get_register(sp))); | |
| 208 } | |
| 209 | |
| 210 // Accessor to the internal simulator stack area. | 206 // Accessor to the internal simulator stack area. |
| 211 uintptr_t StackLimit() const; | 207 uintptr_t StackLimit() const; |
| 212 | 208 |
| 213 // Executes MIPS instructions until the PC reaches end_sim_pc. | 209 // Executes MIPS instructions until the PC reaches end_sim_pc. |
| 214 void Execute(); | 210 void Execute(); |
| 215 | 211 |
| 216 // Call on program start. | 212 // Call on program start. |
| 217 static void Initialize(Isolate* isolate); | 213 static void Initialize(Isolate* isolate); |
| 218 | 214 |
| 219 // V8 generally calls into generated JS code with 5 parameters and into | 215 // V8 generally calls into generated JS code with 5 parameters and into |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 433 |
| 438 static inline void UnregisterCTryCatch() { | 434 static inline void UnregisterCTryCatch() { |
| 439 Simulator::current(Isolate::Current())->PopAddress(); | 435 Simulator::current(Isolate::Current())->PopAddress(); |
| 440 } | 436 } |
| 441 }; | 437 }; |
| 442 | 438 |
| 443 } } // namespace v8::internal | 439 } } // namespace v8::internal |
| 444 | 440 |
| 445 #endif // !defined(USE_SIMULATOR) | 441 #endif // !defined(USE_SIMULATOR) |
| 446 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 442 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
| OLD | NEW |