OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); | 340 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); |
341 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, | 341 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, |
342 int size); | 342 int size); |
343 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); | 343 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); |
344 | 344 |
345 // Runtime call support. | 345 // Runtime call support. |
346 static void* RedirectExternalReference( | 346 static void* RedirectExternalReference( |
347 void* external_function, | 347 void* external_function, |
348 v8::internal::ExternalReference::Type type); | 348 v8::internal::ExternalReference::Type type); |
349 | 349 |
350 // For use in calls that take double value arguments. | 350 // Handle arguments and return value for runtime FP functions. |
351 void GetFpArgs(double* x, double* y); | 351 void GetFpArgs(double* x, double* y, int32_t* z); |
352 void GetFpArgs(double* x); | |
353 void GetFpArgs(double* x, int32_t* y); | |
354 void SetFpResult(const double& result); | 352 void SetFpResult(const double& result); |
355 void TrashCallerSaveRegisters(); | 353 void TrashCallerSaveRegisters(); |
356 | 354 |
357 template<class ReturnType, int register_size> | 355 template<class ReturnType, int register_size> |
358 ReturnType GetFromVFPRegister(int reg_index); | 356 ReturnType GetFromVFPRegister(int reg_index); |
359 | 357 |
360 template<class InputType, int register_size> | 358 template<class InputType, int register_size> |
361 void SetVFPRegister(int reg_index, const InputType& value); | 359 void SetVFPRegister(int reg_index, const InputType& value); |
362 | 360 |
363 void CallInternal(byte* entry); | 361 void CallInternal(byte* entry); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 457 |
460 static inline void UnregisterCTryCatch() { | 458 static inline void UnregisterCTryCatch() { |
461 Simulator::current(Isolate::Current())->PopAddress(); | 459 Simulator::current(Isolate::Current())->PopAddress(); |
462 } | 460 } |
463 }; | 461 }; |
464 | 462 |
465 } } // namespace v8::internal | 463 } } // namespace v8::internal |
466 | 464 |
467 #endif // !defined(USE_SIMULATOR) | 465 #endif // !defined(USE_SIMULATOR) |
468 #endif // V8_ARM_SIMULATOR_ARM_H_ | 466 #endif // V8_ARM_SIMULATOR_ARM_H_ |
OLD | NEW |