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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 388 |
389 // A stop is enabled, meaning the simulator will stop when meeting the | 389 // A stop is enabled, meaning the simulator will stop when meeting the |
390 // instruction, if bit 31 of watched_stops_[code].count is unset. | 390 // instruction, if bit 31 of watched_stops_[code].count is unset. |
391 // The value watched_stops_[code].count & ~(1 << 31) indicates how many times | 391 // The value watched_stops_[code].count & ~(1 << 31) indicates how many times |
392 // the breakpoint was hit or gone through. | 392 // the breakpoint was hit or gone through. |
393 struct StopCountAndDesc { | 393 struct StopCountAndDesc { |
394 uint32_t count; | 394 uint32_t count; |
395 char* desc; | 395 char* desc; |
396 }; | 396 }; |
397 StopCountAndDesc watched_stops_[kMaxStopCode + 1]; | 397 StopCountAndDesc watched_stops_[kMaxStopCode + 1]; |
| 398 |
| 399 // Sets Intel x87 FPU precision to 64-bit. |
| 400 inline void set_host_fp_precision(); |
398 }; | 401 }; |
399 | 402 |
400 | 403 |
401 // When running with the simulator transition into simulated execution at this | 404 // When running with the simulator transition into simulated execution at this |
402 // point. | 405 // point. |
403 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ | 406 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ |
404 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \ | 407 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \ |
405 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4)) | 408 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4)) |
406 | 409 |
407 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \ | 410 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \ |
(...skipping 24 matching lines...) Expand all Loading... |
432 | 435 |
433 static inline void UnregisterCTryCatch() { | 436 static inline void UnregisterCTryCatch() { |
434 Simulator::current(Isolate::Current())->PopAddress(); | 437 Simulator::current(Isolate::Current())->PopAddress(); |
435 } | 438 } |
436 }; | 439 }; |
437 | 440 |
438 } } // namespace v8::internal | 441 } } // namespace v8::internal |
439 | 442 |
440 #endif // !defined(USE_SIMULATOR) | 443 #endif // !defined(USE_SIMULATOR) |
441 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 444 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
OLD | NEW |