Lines Matching refs:sim_

38   explicit PPCDebugger(Simulator* sim) : sim_(sim) {}  in PPCDebugger()
47 Simulator* sim_; member in v8::internal::PPCDebugger
71 *reinterpret_cast<char**>(sim_->get_pc() + Instruction::kInstrSize); in Stop()
73 if (sim_->isWatchedStop(code) && !sim_->watched_stops_[code].desc) { in Stop()
74 sim_->watched_stops_[code].desc = msg; in Stop()
82 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize + kPointerSize); in Stop()
87 return sim_->get_register(regnum); in GetRegisterValue()
92 return sim_->get_double_from_register_pair(regnum); in GetRegisterPairDoubleValue()
97 return sim_->get_double_from_d_register(regnum); in GetFPDoubleRegisterValue()
122 *value = sim_->get_double_from_d_register(regnum); in GetFPDoubleValue()
131 if (sim_->break_pc_ != NULL) { in SetBreakpoint()
136 sim_->break_pc_ = break_pc; in SetBreakpoint()
137 sim_->break_instr_ = break_pc->InstructionBits(); in SetBreakpoint()
145 if (sim_->break_pc_ != NULL) { in DeleteBreakpoint()
146 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in DeleteBreakpoint()
149 sim_->break_pc_ = NULL; in DeleteBreakpoint()
150 sim_->break_instr_ = 0; in DeleteBreakpoint()
156 if (sim_->break_pc_ != NULL) { in UndoBreakpoints()
157 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in UndoBreakpoints()
163 if (sim_->break_pc_ != NULL) { in RedoBreakpoints()
164 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() + Instruction::kInstrSize); 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() && GetValue(arg1, &value)) { in Debug()
243 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
244 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), in Debug()
246 sim_->ExecuteInstruction( in Debug()
247 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
252 if ((reinterpret_cast<Instruction*>(sim_->get_pc())) in Debug()
254 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize); in Debug()
257 sim_->ExecuteInstruction( in Debug()
258 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
282 sim_->special_reg_pc_, sim_->special_reg_lr_, in Debug()
283 sim_->special_reg_ctr_, sim_->special_reg_xer_, in Debug()
284 sim_->condition_reg_); in Debug()
301 sim_->special_reg_pc_, sim_->special_reg_lr_, in Debug()
302 sim_->special_reg_ctr_, sim_->special_reg_xer_, in Debug()
303 sim_->condition_reg_); in Debug()
368 sim_->set_pc(value); in Debug()
375 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp)); in Debug()
401 Heap* current_heap = sim_->isolate_->heap(); in Debug()
426 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
442 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
484 PrintF("Condition reg: %08x\n", sim_->condition_reg_); in Debug()
486 PrintF("Link reg: %08" V8PRIxPTR "\n", sim_->special_reg_lr_); in Debug()
488 PrintF("Ctr reg: %08" V8PRIxPTR "\n", sim_->special_reg_ctr_); in Debug()
490 PrintF("XER: %08x\n", sim_->special_reg_xer_); in Debug()
492 PrintF("FPSCR: %08x\n", sim_->fp_condition_reg_); in Debug()
496 sim_->get_pc() - (Instruction::kInstrSize + kPointerSize); in Debug()
502 if (sim_->isStopInstruction(stop_instr)) { in Debug()
513 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
514 sim_->PrintStopInfo(i); in Debug()
517 sim_->PrintStopInfo(value); in Debug()
524 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
525 sim_->EnableStop(i); in Debug()
528 sim_->EnableStop(value); in Debug()
535 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
536 sim_->DisableStop(i); in Debug()
539 sim_->DisableStop(value); in Debug()