Lines Matching refs:sim_
71 explicit MipsDebugger(Simulator* sim) : sim_(sim) { } in MipsDebugger()
85 Simulator* sim_; member in v8::internal::MipsDebugger
125 reinterpret_cast<char**>(sim_->get_pc() + Instr::kInstrSize); in Stop()
144 sim_->set_pc(sim_->get_pc() + 3 * Instruction::kInstructionSize); in Stop()
159 char* msg = *reinterpret_cast<char**>(sim_->get_pc() + in Stop()
162 if (!sim_->watched_stops_[code].desc) { in Stop()
163 sim_->watched_stops_[code].desc = msg; in Stop()
167 sim_->set_pc(sim_->get_pc() + 3 * Instruction::kInstrSize); in Stop()
175 return sim_->get_pc(); in GetRegisterValue()
177 return sim_->get_register(regnum); in GetRegisterValue()
184 return sim_->get_pc(); in GetFPURegisterValue()
186 return sim_->get_fpu_register(regnum); in GetFPURegisterValue()
193 return sim_->get_pc(); in GetFPURegisterValueFloat()
195 return sim_->get_fpu_register_float(regnum); in GetFPURegisterValueFloat()
202 return sim_->get_pc(); in GetFPURegisterValueDouble()
204 return sim_->get_fpu_register_double(regnum); in GetFPURegisterValueDouble()
231 if (sim_->break_pc_ != NULL) { in SetBreakpoint()
236 sim_->break_pc_ = breakpc; in SetBreakpoint()
237 sim_->break_instr_ = breakpc->InstructionBits(); in SetBreakpoint()
245 if (sim_->break_pc_ != NULL) { in DeleteBreakpoint()
246 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in DeleteBreakpoint()
249 sim_->break_pc_ = NULL; in DeleteBreakpoint()
250 sim_->break_instr_ = 0; in DeleteBreakpoint()
256 if (sim_->break_pc_ != NULL) { in UndoBreakpoints()
257 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in UndoBreakpoints()
263 if (sim_->break_pc_ != NULL) { in RedoBreakpoints()
264 sim_->break_pc_->SetInstructionBits(kBreakpointInstr); in RedoBreakpoints()
380 while (!done && (sim_->get_pc() != Simulator::end_sim_pc)) { in Debug()
381 if (last_pc != sim_->get_pc()) { in Debug()
387 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
388 PrintF(" 0x%016lx %s\n", sim_->get_pc(), buffer.start()); in Debug()
389 last_pc = sim_->get_pc(); in Debug()
395 char* last_input = sim_->last_debugger_input(); in Debug()
400 sim_->set_last_debugger_input(line); in Debug()
410 Instruction* instr = reinterpret_cast<Instruction*>(sim_->get_pc()); in Debug()
413 sim_->InstructionDecode( in Debug()
414 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
418 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize); in Debug()
422 sim_->InstructionDecode(reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
497 cur = reinterpret_cast<int64_t*>(sim_->get_register(Simulator::sp)); in Debug()
549 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
565 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
610 intptr_t stop_pc = sim_->get_pc() - in Debug()
618 if (sim_->IsStopInstruction(stop_instr)) { in Debug()
632 sim_->PrintStopInfo(i); in Debug()
635 sim_->PrintStopInfo(value); in Debug()
645 sim_->EnableStop(i); in Debug()
648 sim_->EnableStop(value); in Debug()
658 sim_->DisableStop(i); in Debug()
661 sim_->DisableStop(value); in Debug()
683 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()