| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 ARM instructions if we are not generating a native | 6 // Declares a Simulator for ARM instructions if we are not generating a native |
| 7 // ARM binary. This Simulator allows us to run and debug ARM code generation on | 7 // ARM binary. This Simulator allows us to run and debug ARM code generation on |
| 8 // regular desktop machines. | 8 // 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 void InstructionDecode(Instruction* instr); | 354 void InstructionDecode(Instruction* instr); |
| 355 | 355 |
| 356 // ICache. | 356 // ICache. |
| 357 static void CheckICache(base::CustomMatcherHashMap* i_cache, | 357 static void CheckICache(base::CustomMatcherHashMap* i_cache, |
| 358 Instruction* instr); | 358 Instruction* instr); |
| 359 static void FlushOnePage(base::CustomMatcherHashMap* i_cache, intptr_t start, | 359 static void FlushOnePage(base::CustomMatcherHashMap* i_cache, intptr_t start, |
| 360 int size); | 360 int size); |
| 361 static CachePage* GetCachePage(base::CustomMatcherHashMap* i_cache, | 361 static CachePage* GetCachePage(base::CustomMatcherHashMap* i_cache, |
| 362 void* page); | 362 void* page); |
| 363 | 363 |
| 364 // Runtime call support. | 364 // Runtime call support. Uses the isolate in a thread-safe way. |
| 365 static void* RedirectExternalReference( | 365 static void* RedirectExternalReference( |
| 366 Isolate* isolate, void* external_function, | 366 Isolate* isolate, void* external_function, |
| 367 v8::internal::ExternalReference::Type type); | 367 v8::internal::ExternalReference::Type type); |
| 368 | 368 |
| 369 // Handle arguments and return value for runtime FP functions. | 369 // Handle arguments and return value for runtime FP functions. |
| 370 void GetFpArgs(double* x, double* y, int32_t* z); | 370 void GetFpArgs(double* x, double* y, int32_t* z); |
| 371 void SetFpResult(const double& result); | 371 void SetFpResult(const double& result); |
| 372 void TrashCallerSaveRegisters(); | 372 void TrashCallerSaveRegisters(); |
| 373 | 373 |
| 374 template<class ReturnType, int register_size> | 374 template<class ReturnType, int register_size> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { | 568 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { |
| 569 Simulator::current(isolate)->PopAddress(); | 569 Simulator::current(isolate)->PopAddress(); |
| 570 } | 570 } |
| 571 }; | 571 }; |
| 572 | 572 |
| 573 } // namespace internal | 573 } // namespace internal |
| 574 } // namespace v8 | 574 } // namespace v8 |
| 575 | 575 |
| 576 #endif // !defined(USE_SIMULATOR) | 576 #endif // !defined(USE_SIMULATOR) |
| 577 #endif // V8_ARM_SIMULATOR_ARM_H_ | 577 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |