Lines Matching defs:sim_
38 explicit PPCDebugger(Simulator* sim) : sim_(sim) {}
48 Simulator* sim_;
87 reinterpret_cast<char**>(sim_->get_pc() + Instruction::kInstrSize);
105 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize + kPointerSize);
119 *reinterpret_cast<char**>(sim_->get_pc() + Instruction::kInstrSize);
121 if (sim_->isWatchedStop(code) && !sim_->watched_stops_[code].desc) {
122 sim_->watched_stops_[code].desc = msg;
130 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize + kPointerSize);
137 return sim_->get_register(regnum);
142 return sim_->get_double_from_register_pair(regnum);
147 return sim_->get_double_from_d_register(regnum);
172 *value = sim_->get_double_from_d_register(regnum);
181 if (sim_->break_pc_ != NULL) {
186 sim_->break_pc_ = break_pc;
187 sim_->break_instr_ = break_pc->InstructionBits();
195 if (sim_->break_pc_ != NULL) {
196 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
199 sim_->break_pc_ = NULL;
200 sim_->break_instr_ = 0;
206 if (sim_->break_pc_ != NULL) {
207 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
213 if (sim_->break_pc_ != NULL) {
214 sim_->break_pc_->SetInstructionBits(kBreakpointInstr);
246 while (!done && !sim_->has_bad_pc()) {
247 if (last_pc != sim_->get_pc()) {
252 dasm.InstructionDecode(buffer, reinterpret_cast<byte*>(sim_->get_pc()));
253 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), buffer.start());
254 last_pc = sim_->get_pc();
260 char* last_input = sim_->last_debugger_input();
264 // Ownership is transferred to sim_;
265 sim_->set_last_debugger_input(line);
278 if ((reinterpret_cast<Instruction*>(sim_->get_pc()))
280 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize);
282 sim_->ExecuteInstruction(
283 reinterpret_cast<Instruction*>(sim_->get_pc()));
286 if (argc == 2 && last_pc != sim_->get_pc() && GetValue(arg1, &value)) {
293 reinterpret_cast<byte*>(sim_->get_pc()));
294 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(),
296 sim_->ExecuteInstruction(
297 reinterpret_cast<Instruction*>(sim_->get_pc()));
302 if ((reinterpret_cast<Instruction*>(sim_->get_pc()))
304 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize);
307 sim_->ExecuteInstruction(
308 reinterpret_cast<Instruction*>(sim_->get_pc()));
332 sim_->special_reg_pc_, sim_->special_reg_lr_,
333 sim_->special_reg_ctr_, sim_->special_reg_xer_,
334 sim_->condition_reg_);
351 sim_->special_reg_pc_, sim_->special_reg_lr_,
352 sim_->special_reg_ctr_, sim_->special_reg_xer_,
353 sim_->condition_reg_);
418 sim_->set_pc(value);
425 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp));
451 Heap* current_heap = sim_->isolate_->heap();
476 cur = reinterpret_cast<byte*>(sim_->get_pc());
492 cur = reinterpret_cast<byte*>(sim_->get_pc());
534 PrintF("Condition reg: %08x\n", sim_->condition_reg_);
536 PrintF("Link reg: %08" V8PRIxPTR "\n", sim_->special_reg_lr_);
538 PrintF("Ctr reg: %08" V8PRIxPTR "\n", sim_->special_reg_ctr_);
540 PrintF("XER: %08x\n", sim_->special_reg_xer_);
542 PrintF("FPSCR: %08x\n", sim_->fp_condition_reg_);
546 sim_->get_pc() - (Instruction::kInstrSize + kPointerSize);
552 if (sim_->isStopInstruction(stop_instr)) {
563 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) {
564 sim_->PrintStopInfo(i);
567 sim_->PrintStopInfo(value);
574 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) {
575 sim_->EnableStop(i);
578 sim_->EnableStop(value);
585 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) {
586 sim_->DisableStop(i);
589 sim_->DisableStop(value);