Lines Matching refs:sim_
38 explicit S390Debugger(Simulator* sim) : sim_(sim) {} in S390Debugger()
52 Simulator* sim_; member in v8::internal::S390Debugger
76 char* msg = *reinterpret_cast<char**>(sim_->get_pc() + sizeof(FourByteInstr)); in Stop()
78 if (sim_->isWatchedStop(code) && !sim_->watched_stops_[code].desc) { in Stop()
79 sim_->watched_stops_[code].desc = msg; in Stop()
87 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr) + kPointerSize); in Stop()
92 return sim_->get_register(regnum); in GetRegisterValue()
96 return sim_->get_double_from_register_pair(regnum); in GetRegisterPairDoubleValue()
100 return sim_->get_double_from_d_register(regnum); in GetFPDoubleRegisterValue()
104 return sim_->get_float32_from_d_register(regnum); in GetFPFloatRegisterValue()
127 *value = sim_->get_double_from_d_register(regnum); in GetFPDoubleValue()
135 if (sim_->break_pc_ != NULL) { in SetBreakpoint()
140 sim_->break_pc_ = break_pc; in SetBreakpoint()
141 sim_->break_instr_ = break_pc->InstructionBits(); in SetBreakpoint()
148 if (sim_->break_pc_ != NULL) { in DeleteBreakpoint()
149 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in DeleteBreakpoint()
152 sim_->break_pc_ = NULL; in DeleteBreakpoint()
153 sim_->break_instr_ = 0; in DeleteBreakpoint()
158 if (sim_->break_pc_ != NULL) { in UndoBreakpoints()
159 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in UndoBreakpoints()
164 if (sim_->break_pc_ != NULL) { in RedoBreakpoints()
165 sim_->break_pc_->SetInstructionBits(kBreakpointInstr); in RedoBreakpoints()
196 while (!done && !sim_->has_bad_pc()) { in Debug()
197 if (last_pc != sim_->get_pc()) { in Debug()
202 dasm.InstructionDecode(buffer, reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
203 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), buffer.start()); in Debug()
204 last_pc = sim_->get_pc(); in Debug()
210 char* last_input = sim_->last_debugger_input(); in Debug()
215 sim_->set_last_debugger_input(line); in Debug()
228 if ((reinterpret_cast<Instruction*>(sim_->get_pc())) in Debug()
230 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr)); in Debug()
232 sim_->ExecuteInstruction( in Debug()
233 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
236 if (argc == 2 && last_pc != sim_->get_pc()) { in Debug()
245 for (int i = 1; (!sim_->has_bad_pc()) && i < value; i++) { in Debug()
247 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
248 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), in Debug()
250 sim_->ExecuteInstruction( in Debug()
251 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
256 while (!sim_->has_bad_pc()) { in Debug()
258 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
265 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), in Debug()
267 sim_->ExecuteInstruction( in Debug()
268 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
274 if ((reinterpret_cast<Instruction*>(sim_->get_pc())) in Debug()
276 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr)); in Debug()
279 sim_->ExecuteInstruction( in Debug()
280 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
301 PrintF(" pc: %08" V8PRIxPTR " cr: %08x\n", sim_->special_reg_pc_, in Debug()
302 sim_->condition_reg_); in Debug()
316 PrintF(" pc: %08" V8PRIxPTR " cr: %08x\n", sim_->special_reg_pc_, in Debug()
317 sim_->condition_reg_); in Debug()
390 sim_->set_pc(value); in Debug()
397 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp)); in Debug()
423 Heap* current_heap = sim_->isolate_->heap(); in Debug()
447 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
460 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
504 PrintF("Condition reg: %08x\n", sim_->condition_reg_); in Debug()
508 sim_->get_pc() - (sizeof(FourByteInstr) + kPointerSize); in Debug()
514 if (sim_->isStopInstruction(stop_instr)) { in Debug()
525 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
526 sim_->PrintStopInfo(i); in Debug()
529 sim_->PrintStopInfo(value); in Debug()
536 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
537 sim_->EnableStop(i); in Debug()
540 sim_->EnableStop(value); in Debug()
547 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
548 sim_->DisableStop(i); in Debug()
551 sim_->DisableStop(value); in Debug()
560 PrintF("%05" PRId64 "\n", sim_->icount_); in Debug()