| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); | 303 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); |
| 304 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, | 304 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, |
| 305 int size); | 305 int size); |
| 306 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); | 306 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); |
| 307 | 307 |
| 308 // Runtime call support. | 308 // Runtime call support. |
| 309 static void* RedirectExternalReference( | 309 static void* RedirectExternalReference( |
| 310 void* external_function, | 310 void* external_function, |
| 311 v8::internal::ExternalReference::Type type); | 311 v8::internal::ExternalReference::Type type); |
| 312 | 312 |
| 313 // For use in calls that take two double values, constructed from r0, r1, r2 | 313 // For use in calls that take double value arguments. |
| 314 // and r3. | |
| 315 void GetFpArgs(double* x, double* y); | 314 void GetFpArgs(double* x, double* y); |
| 315 void GetFpArgs(double* x); |
| 316 void GetFpArgs(double* x, int32_t* y); |
| 316 void SetFpResult(const double& result); | 317 void SetFpResult(const double& result); |
| 317 void TrashCallerSaveRegisters(); | 318 void TrashCallerSaveRegisters(); |
| 318 | 319 |
| 319 // Architecture state. | 320 // Architecture state. |
| 320 // Saturating instructions require a Q flag to indicate saturation. | 321 // Saturating instructions require a Q flag to indicate saturation. |
| 321 // There is currently no way to read the CPSR directly, and thus read the Q | 322 // There is currently no way to read the CPSR directly, and thus read the Q |
| 322 // flag, so this is left unimplemented. | 323 // flag, so this is left unimplemented. |
| 323 int32_t registers_[16]; | 324 int32_t registers_[16]; |
| 324 bool n_flag_; | 325 bool n_flag_; |
| 325 bool z_flag_; | 326 bool z_flag_; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 410 |
| 410 static inline void UnregisterCTryCatch() { | 411 static inline void UnregisterCTryCatch() { |
| 411 Simulator::current(Isolate::Current())->PopAddress(); | 412 Simulator::current(Isolate::Current())->PopAddress(); |
| 412 } | 413 } |
| 413 }; | 414 }; |
| 414 | 415 |
| 415 } } // namespace v8::internal | 416 } } // namespace v8::internal |
| 416 | 417 |
| 417 #endif // !defined(USE_SIMULATOR) | 418 #endif // !defined(USE_SIMULATOR) |
| 418 #endif // V8_ARM_SIMULATOR_ARM_H_ | 419 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |