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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 uintptr_t PopAddress(); | 193 uintptr_t PopAddress(); |
194 | 194 |
195 // ICache checking. | 195 // ICache checking. |
196 static void FlushICache(v8::internal::HashMap* i_cache, void* start, | 196 static void FlushICache(v8::internal::HashMap* i_cache, void* start, |
197 size_t size); | 197 size_t size); |
198 | 198 |
199 // Returns true if pc register contains one of the 'special_values' defined | 199 // Returns true if pc register contains one of the 'special_values' defined |
200 // below (bad_lr, end_sim_pc). | 200 // below (bad_lr, end_sim_pc). |
201 bool has_bad_pc() const; | 201 bool has_bad_pc() const; |
202 | 202 |
| 203 // EABI variant for double arguments in use. |
| 204 bool use_eabi_hardfloat() { |
| 205 #if USE_EABI_HARDFLOAT |
| 206 return true; |
| 207 #else |
| 208 return false; |
| 209 #endif |
| 210 } |
| 211 |
203 private: | 212 private: |
204 enum special_values { | 213 enum special_values { |
205 // Known bad pc value to ensure that the simulator does not execute | 214 // Known bad pc value to ensure that the simulator does not execute |
206 // without being properly setup. | 215 // without being properly setup. |
207 bad_lr = -1, | 216 bad_lr = -1, |
208 // A pc value used to signal the simulator to stop execution. Generally | 217 // A pc value used to signal the simulator to stop execution. Generally |
209 // the lr is set to this value on transition from native C code to | 218 // the lr is set to this value on transition from native C code to |
210 // simulated execution, so that the simulator can "return" to the native | 219 // simulated execution, so that the simulator can "return" to the native |
211 // C code. | 220 // C code. |
212 end_sim_pc = -2 | 221 end_sim_pc = -2 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 419 |
411 static inline void UnregisterCTryCatch() { | 420 static inline void UnregisterCTryCatch() { |
412 Simulator::current(Isolate::Current())->PopAddress(); | 421 Simulator::current(Isolate::Current())->PopAddress(); |
413 } | 422 } |
414 }; | 423 }; |
415 | 424 |
416 } } // namespace v8::internal | 425 } } // namespace v8::internal |
417 | 426 |
418 #endif // !defined(USE_SIMULATOR) | 427 #endif // !defined(USE_SIMULATOR) |
419 #endif // V8_ARM_SIMULATOR_ARM_H_ | 428 #endif // V8_ARM_SIMULATOR_ARM_H_ |
OLD | NEW |