| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 428 |
| 429 // A stop is enabled, meaning the simulator will stop when meeting the | 429 // A stop is enabled, meaning the simulator will stop when meeting the |
| 430 // instruction, if bit 31 of watched_stops_[code].count is unset. | 430 // instruction, if bit 31 of watched_stops_[code].count is unset. |
| 431 // The value watched_stops_[code].count & ~(1 << 31) indicates how many times | 431 // The value watched_stops_[code].count & ~(1 << 31) indicates how many times |
| 432 // the breakpoint was hit or gone through. | 432 // the breakpoint was hit or gone through. |
| 433 struct StopCountAndDesc { | 433 struct StopCountAndDesc { |
| 434 uint32_t count; | 434 uint32_t count; |
| 435 char* desc; | 435 char* desc; |
| 436 }; | 436 }; |
| 437 StopCountAndDesc watched_stops_[kNumOfWatchedStops]; | 437 StopCountAndDesc watched_stops_[kNumOfWatchedStops]; |
| 438 |
| 439 // Sets Intel x87 FPU precision to 64-bit. |
| 440 inline void set_host_fp_precision(); |
| 438 }; | 441 }; |
| 439 | 442 |
| 440 | 443 |
| 441 // When running with the simulator transition into simulated execution at this | 444 // When running with the simulator transition into simulated execution at this |
| 442 // point. | 445 // point. |
| 443 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ | 446 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ |
| 444 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \ | 447 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \ |
| 445 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4)) | 448 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4)) |
| 446 | 449 |
| 447 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \ | 450 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 472 | 475 |
| 473 static inline void UnregisterCTryCatch() { | 476 static inline void UnregisterCTryCatch() { |
| 474 Simulator::current(Isolate::Current())->PopAddress(); | 477 Simulator::current(Isolate::Current())->PopAddress(); |
| 475 } | 478 } |
| 476 }; | 479 }; |
| 477 | 480 |
| 478 } } // namespace v8::internal | 481 } } // namespace v8::internal |
| 479 | 482 |
| 480 #endif // !defined(USE_SIMULATOR) | 483 #endif // !defined(USE_SIMULATOR) |
| 481 #endif // V8_ARM_SIMULATOR_ARM_H_ | 484 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |