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