Chromium Code Reviews| 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 assembler { | 84 namespace assembler { |
| 84 namespace arm { | 85 namespace arm { |
| 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 // Executes one instruction. | 279 // Executes one instruction. |
| 279 void InstructionDecode(Instr* instr); | 280 void InstructionDecode(Instr* instr); |
| 280 | 281 |
| 281 // ICache. | 282 // ICache. |
| 282 static void CheckICache(Instr* instr); | 283 static void CheckICache(Instr* instr); |
| 283 static void FlushOnePage(intptr_t start, int size); | 284 static void FlushOnePage(intptr_t start, int size); |
| 284 static CachePage* GetCachePage(void* page); | 285 static CachePage* GetCachePage(void* page); |
| 285 | 286 |
| 286 // Runtime call support. | 287 // Runtime call support. |
| 287 static void* RedirectExternalReference(void* external_function, | 288 static void* RedirectExternalReference(void* external_function, |
| 288 bool fp_return); | 289 v8::internal::ExternalReference::Type type); |
|
Erik Corry
2011/01/24 21:45:16
The indentation of these two parameters is wrong.
Zaheer
2011/01/25 07:39:52
The second parameter is too long for 80chars. move
| |
| 289 | 290 |
| 290 // For use in calls that take two double values, constructed from r0, r1, r2 | 291 // For use in calls that take two double values, constructed from r0, r1, r2 |
| 291 // and r3. | 292 // and r3. |
| 292 void GetFpArgs(double* x, double* y); | 293 void GetFpArgs(double* x, double* y); |
| 293 void SetFpResult(const double& result); | 294 void SetFpResult(const double& result); |
| 294 void TrashCallerSaveRegisters(); | 295 void TrashCallerSaveRegisters(); |
| 295 | 296 |
| 296 // Architecture state. | 297 // Architecture state. |
| 297 // Saturating instructions require a Q flag to indicate saturation. | 298 // Saturating instructions require a Q flag to indicate saturation. |
| 298 // There is currently no way to read the CPSR directly, and thus read the Q | 299 // There is currently no way to read the CPSR directly, and thus read the Q |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 | 391 |
| 391 static inline void UnregisterCTryCatch() { | 392 static inline void UnregisterCTryCatch() { |
| 392 assembler::arm::Simulator::current()->PopAddress(); | 393 assembler::arm::Simulator::current()->PopAddress(); |
| 393 } | 394 } |
| 394 }; | 395 }; |
| 395 | 396 |
| 396 } } // namespace v8::internal | 397 } } // namespace v8::internal |
| 397 | 398 |
| 398 #endif // !defined(USE_SIMULATOR) | 399 #endif // !defined(USE_SIMULATOR) |
| 399 #endif // V8_ARM_SIMULATOR_ARM_H_ | 400 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |