| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 none, | 456 none, |
| 457 kIntegerOverflow, | 457 kIntegerOverflow, |
| 458 kIntegerUnderflow, | 458 kIntegerUnderflow, |
| 459 kDivideByZero, | 459 kDivideByZero, |
| 460 kNumExceptions | 460 kNumExceptions |
| 461 }; | 461 }; |
| 462 | 462 |
| 463 // Exceptions. | 463 // Exceptions. |
| 464 void SignalException(Exception e); | 464 void SignalException(Exception e); |
| 465 | 465 |
| 466 // Runtime call support. | 466 // Runtime call support. Uses the isolate in a thread-safe way. |
| 467 static void* RedirectExternalReference(Isolate* isolate, | 467 static void* RedirectExternalReference(Isolate* isolate, |
| 468 void* external_function, | 468 void* external_function, |
| 469 ExternalReference::Type type); | 469 ExternalReference::Type type); |
| 470 | 470 |
| 471 // Handle arguments and return value for runtime FP functions. | 471 // Handle arguments and return value for runtime FP functions. |
| 472 void GetFpArgs(double* x, double* y, int32_t* z); | 472 void GetFpArgs(double* x, double* y, int32_t* z); |
| 473 void SetFpResult(const double& result); | 473 void SetFpResult(const double& result); |
| 474 | 474 |
| 475 void CallInternal(byte* entry); | 475 void CallInternal(byte* entry); |
| 476 | 476 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 static inline void UnregisterCTryCatch(Isolate* isolate) { | 550 static inline void UnregisterCTryCatch(Isolate* isolate) { |
| 551 Simulator::current(isolate)->PopAddress(); | 551 Simulator::current(isolate)->PopAddress(); |
| 552 } | 552 } |
| 553 }; | 553 }; |
| 554 | 554 |
| 555 } // namespace internal | 555 } // namespace internal |
| 556 } // namespace v8 | 556 } // namespace v8 |
| 557 | 557 |
| 558 #endif // !defined(USE_SIMULATOR) | 558 #endif // !defined(USE_SIMULATOR) |
| 559 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 559 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
| OLD | NEW |