| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 static inline void UnregisterCTryCatch() { } | 72 static inline void UnregisterCTryCatch() { } |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } } // namespace v8::internal | 75 } } // namespace v8::internal |
| 76 | 76 |
| 77 #else // !defined(USE_SIMULATOR) | 77 #else // !defined(USE_SIMULATOR) |
| 78 // Running with a simulator. | 78 // Running with a simulator. |
| 79 | 79 |
| 80 #include "constants-arm.h" | 80 #include "constants-arm.h" |
| 81 #include "hashmap.h" | 81 #include "hashmap.h" |
| 82 #include "assembler.h" |
| 82 | 83 |
| 83 namespace v8 { | 84 namespace v8 { |
| 84 namespace internal { | 85 namespace internal { |
| 85 | 86 |
| 86 class CachePage { | 87 class CachePage { |
| 87 public: | 88 public: |
| 88 static const int LINE_VALID = 0; | 89 static const int LINE_VALID = 0; |
| 89 static const int LINE_INVALID = 1; | 90 static const int LINE_INVALID = 1; |
| 90 | 91 |
| 91 static const int kPageShift = 12; | 92 static const int kPageShift = 12; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 279 |
| 279 // Executes one instruction. | 280 // Executes one instruction. |
| 280 void InstructionDecode(Instruction* instr); | 281 void InstructionDecode(Instruction* instr); |
| 281 | 282 |
| 282 // ICache. | 283 // ICache. |
| 283 static void CheckICache(Instruction* instr); | 284 static void CheckICache(Instruction* instr); |
| 284 static void FlushOnePage(intptr_t start, int size); | 285 static void FlushOnePage(intptr_t start, int size); |
| 285 static CachePage* GetCachePage(void* page); | 286 static CachePage* GetCachePage(void* page); |
| 286 | 287 |
| 287 // Runtime call support. | 288 // Runtime call support. |
| 288 static void* RedirectExternalReference(void* external_function, | 289 static void* RedirectExternalReference( |
| 289 bool fp_return); | 290 void* external_function, |
| 291 v8::internal::ExternalReference::Type type); |
| 290 | 292 |
| 291 // For use in calls that take two double values, constructed from r0, r1, r2 | 293 // For use in calls that take two double values, constructed from r0, r1, r2 |
| 292 // and r3. | 294 // and r3. |
| 293 void GetFpArgs(double* x, double* y); | 295 void GetFpArgs(double* x, double* y); |
| 294 void SetFpResult(const double& result); | 296 void SetFpResult(const double& result); |
| 295 void TrashCallerSaveRegisters(); | 297 void TrashCallerSaveRegisters(); |
| 296 | 298 |
| 297 // Architecture state. | 299 // Architecture state. |
| 298 // Saturating instructions require a Q flag to indicate saturation. | 300 // Saturating instructions require a Q flag to indicate saturation. |
| 299 // There is currently no way to read the CPSR directly, and thus read the Q | 301 // There is currently no way to read the CPSR directly, and thus read the Q |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 388 |
| 387 static inline void UnregisterCTryCatch() { | 389 static inline void UnregisterCTryCatch() { |
| 388 Simulator::current()->PopAddress(); | 390 Simulator::current()->PopAddress(); |
| 389 } | 391 } |
| 390 }; | 392 }; |
| 391 | 393 |
| 392 } } // namespace v8::internal | 394 } } // namespace v8::internal |
| 393 | 395 |
| 394 #endif // !defined(USE_SIMULATOR) | 396 #endif // !defined(USE_SIMULATOR) |
| 395 #endif // V8_ARM_SIMULATOR_ARM_H_ | 397 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |