Lines Matching refs:sim_

35   explicit ArmDebugger(Simulator* sim) : sim_(sim) { }  in ArmDebugger()
45 Simulator* sim_; member in v8::internal::ArmDebugger
73 sim_->set_pc(sim_->get_pc() + 2 * Instruction::kInstrSize); in Stop()
79 return sim_->get_pc(); in GetRegisterValue()
81 return sim_->get_register(regnum); in GetRegisterValue()
86 return sim_->get_double_from_register_pair(regnum); in GetRegisterPairDoubleValue()
91 return sim_->get_double_from_d_register(regnum); in GetVFPDoubleRegisterValue()
115 *value = sim_->get_float_from_s_register(regnum); in GetVFPSingleValue()
126 *value = sim_->get_double_from_d_register(regnum); in GetVFPDoubleValue()
135 if (sim_->break_pc_ != NULL) { in SetBreakpoint()
140 sim_->break_pc_ = breakpc; in SetBreakpoint()
141 sim_->break_instr_ = breakpc->InstructionBits(); in SetBreakpoint()
149 if (sim_->break_pc_ != NULL) { in DeleteBreakpoint()
150 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in DeleteBreakpoint()
153 sim_->break_pc_ = NULL; in DeleteBreakpoint()
154 sim_->break_instr_ = 0; in DeleteBreakpoint()
160 if (sim_->break_pc_ != NULL) { in UndoBreakpoints()
161 sim_->break_pc_->SetInstructionBits(sim_->break_instr_); in UndoBreakpoints()
167 if (sim_->break_pc_ != NULL) { in RedoBreakpoints()
168 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()
204 reinterpret_cast<byte*>(sim_->get_pc())); in Debug()
205 PrintF(" 0x%08x %s\n", sim_->get_pc(), buffer.start()); in Debug()
206 last_pc = sim_->get_pc(); in Debug()
212 char* last_input = sim_->last_debugger_input(); in Debug()
217 sim_->set_last_debugger_input(line); in Debug()
227 sim_->InstructionDecode(reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
230 sim_->InstructionDecode(reinterpret_cast<Instruction*>(sim_->get_pc())); in Debug()
310 cur = reinterpret_cast<int32_t*>(sim_->get_register(Simulator::sp)); in Debug()
336 Heap* current_heap = sim_->isolate_->heap(); in Debug()
361 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
377 cur = reinterpret_cast<byte*>(sim_->get_pc()); in Debug()
419 PrintF("N flag: %d; ", sim_->n_flag_); in Debug()
420 PrintF("Z flag: %d; ", sim_->z_flag_); in Debug()
421 PrintF("C flag: %d; ", sim_->c_flag_); in Debug()
422 PrintF("V flag: %d\n", sim_->v_flag_); in Debug()
423 PrintF("INVALID OP flag: %d; ", sim_->inv_op_vfp_flag_); in Debug()
424 PrintF("DIV BY ZERO flag: %d; ", sim_->div_zero_vfp_flag_); in Debug()
425 PrintF("OVERFLOW flag: %d; ", sim_->overflow_vfp_flag_); in Debug()
426 PrintF("UNDERFLOW flag: %d; ", sim_->underflow_vfp_flag_); in Debug()
427 PrintF("INEXACT flag: %d;\n", sim_->inexact_vfp_flag_); in Debug()
430 intptr_t stop_pc = sim_->get_pc() - 2 * Instruction::kInstrSize; in Debug()
436 if (sim_->isStopInstruction(stop_instr)) { in Debug()
447 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
448 sim_->PrintStopInfo(i); in Debug()
451 sim_->PrintStopInfo(value); in Debug()
458 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
459 sim_->EnableStop(i); in Debug()
462 sim_->EnableStop(value); in Debug()
469 for (uint32_t i = 0; i < sim_->kNumOfWatchedStops; i++) { in Debug()
470 sim_->DisableStop(i); in Debug()
473 sim_->DisableStop(value); in Debug()