Lines Matching refs:sim_

39   explicit S390Debugger(Simulator* sim) : sim_(sim) {}  in S390Debugger()
53 Simulator* sim_; member in v8::internal::S390Debugger
77 char* msg = *reinterpret_cast<char**>(sim_->get_pc() + sizeof(FourByteInstr)); in Stop()
79 if (sim_->isWatchedStop(code) && !sim_->watched_stops_[code].desc) { in Stop()
80 sim_->watched_stops_[code].desc = msg; in Stop()
88 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr) + kPointerSize); in Stop()
93 return sim_->get_register(regnum); in GetRegisterValue()
97 return sim_->get_double_from_register_pair(regnum); in GetRegisterPairDoubleValue()
101 return sim_->get_double_from_d_register(regnum); in GetFPDoubleRegisterValue()
105 return sim_->get_float32_from_d_register(regnum); in GetFPFloatRegisterValue()
128 *value = sim_->get_double_from_d_register(regnum); in GetFPDoubleValue()
136 if (sim_->break_pc_ != nullptr) { in SetBreakpoint()
141 sim_->break_pc_ = break_pc; in SetBreakpoint()
142 sim_->break_instr_ = break_pc->InstructionBits(); in SetBreakpoint()
149 if (sim_->break_pc_ != nullptr) { in DeleteBreakpoint()
150 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in DeleteBreakpoint()
153 sim_->break_pc_ = nullptr; in DeleteBreakpoint()
154 sim_->break_instr_ = 0; in DeleteBreakpoint()
159 if (sim_->break_pc_ != nullptr) { in UndoBreakpoints()
160 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in UndoBreakpoints()
165 if (sim_->break_pc_ != nullptr) { in RedoBreakpoints()
166 sim_->break_pc_->SetInstructionBits(kBreakpointInstr); in RedoBreakpoints()
197 while (!done && !sim_->has_bad_pc()) { in Debug()
198 if (last_pc != sim_->get_pc()) { in Debug()
203 dasm.InstructionDecode(buffer, reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
204 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), buffer.start()); in Debug()
205 last_pc = sim_->get_pc(); in Debug()
211 char* last_input = sim_->last_debugger_input(); in Debug()
216 sim_->set_last_debugger_input(line); in Debug()
229 if ((reinterpret_cast<Instruction*>(sim_->get_pc())) in Debug()
231 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr)); in Debug()
233 sim_->ExecuteInstruction( in Debug()
234 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
237 if (argc == 2 && last_pc != sim_->get_pc()) { in Debug()
246 for (int i = 1; (!sim_->has_bad_pc()) && i < value; i++) { in Debug()
248 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
249 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), in Debug()
251 sim_->ExecuteInstruction( in Debug()
252 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
257 while (!sim_->has_bad_pc()) { in Debug()
259 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
266 PrintF(" 0x%08" V8PRIxPTR " %s\n", sim_->get_pc(), in Debug()
268 sim_->ExecuteInstruction( in Debug()
269 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
275 if ((reinterpret_cast<Instruction*>(sim_->get_pc())) in Debug()
277 sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr)); in Debug()
280 sim_->ExecuteInstruction( in Debug()
281 reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
302 PrintF(" pc: %08" V8PRIxPTR " cr: %08x\n", sim_->special_reg_pc_, in Debug()
303 sim_->condition_reg_); in Debug()
317 PrintF(" pc: %08" V8PRIxPTR " cr: %08x\n", sim_->special_reg_pc_, in Debug()
318 sim_->condition_reg_); in Debug()
391 sim_->set_pc(value); in Debug()
398 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp)); in Debug()
424 Heap* current_heap = sim_->isolate_->heap(); in Debug()
448 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
461 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
505 PrintF("Condition reg: %08x\n", sim_->condition_reg_); in Debug()
509 sim_->get_pc() - (sizeof(FourByteInstr) + kPointerSize); in Debug()
515 if (sim_->isStopInstruction(stop_instr)) { in Debug()
526 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
527 sim_->PrintStopInfo(i); in Debug()
530 sim_->PrintStopInfo(value); in Debug()
537 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
538 sim_->EnableStop(i); in Debug()
541 sim_->EnableStop(value); in Debug()
548 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
549 sim_->DisableStop(i); in Debug()
552 sim_->DisableStop(value); in Debug()
561 PrintF("%05" PRId64 "\n", sim_->icount_); in Debug()