| 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 |
| 206 // Accessor to the internal simulator stack area. | 210 // Accessor to the internal simulator stack area. |
| 207 uintptr_t StackLimit() const; | 211 uintptr_t StackLimit() const; |
| 208 | 212 |
| 209 // Executes MIPS instructions until the PC reaches end_sim_pc. | 213 // Executes MIPS instructions until the PC reaches end_sim_pc. |
| 210 void Execute(); | 214 void Execute(); |
| 211 | 215 |
| 212 // Call on program start. | 216 // Call on program start. |
| 213 static void Initialize(Isolate* isolate); | 217 static void Initialize(Isolate* isolate); |
| 214 | 218 |
| 215 // V8 generally calls into generated JS code with 5 parameters and into | 219 // 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... |
| 433 | 437 |
| 434 static inline void UnregisterCTryCatch() { | 438 static inline void UnregisterCTryCatch() { |
| 435 Simulator::current(Isolate::Current())->PopAddress(); | 439 Simulator::current(Isolate::Current())->PopAddress(); |
| 436 } | 440 } |
| 437 }; | 441 }; |
| 438 | 442 |
| 439 } } // namespace v8::internal | 443 } } // namespace v8::internal |
| 440 | 444 |
| 441 #endif // !defined(USE_SIMULATOR) | 445 #endif // !defined(USE_SIMULATOR) |
| 442 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 446 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
| OLD | NEW |