| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 static void InitializeCoverage() {} | 133 static void InitializeCoverage() {} |
| 134 | 134 |
| 135 | 135 |
| 136 void Debugger::Stop(Instruction* instr) { | 136 void Debugger::Stop(Instruction* instr) { |
| 137 const char* str = reinterpret_cast<char*>(instr->InstructionBits()); | 137 const char* str = reinterpret_cast<char*>(instr->InstructionBits()); |
| 138 PrintF("Simulator hit %s\n", str); | 138 PrintF("Simulator hit %s\n", str); |
| 139 sim_->set_pc(sim_->get_pc() + Instruction::kInstructionSize); | 139 sim_->set_pc(sim_->get_pc() + Instruction::kInstructionSize); |
| 140 Debug(); | 140 Debug(); |
| 141 } | 141 } |
| 142 #endif // def GENERATED_CODE_COVERAGE | 142 #endif // GENERATED_CODE_COVERAGE |
| 143 | 143 |
| 144 | 144 |
| 145 int32_t Debugger::GetRegisterValue(int regnum) { | 145 int32_t Debugger::GetRegisterValue(int regnum) { |
| 146 if (regnum == kNumSimuRegisters) { | 146 if (regnum == kNumSimuRegisters) { |
| 147 return sim_->get_pc(); | 147 return sim_->get_pc(); |
| 148 } else { | 148 } else { |
| 149 return sim_->get_register(regnum); | 149 return sim_->get_register(regnum); |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 | 152 |
| (...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 uintptr_t address = *stack_slot; | 1637 uintptr_t address = *stack_slot; |
| 1638 set_register(sp, current_sp + sizeof(uintptr_t)); | 1638 set_register(sp, current_sp + sizeof(uintptr_t)); |
| 1639 return address; | 1639 return address; |
| 1640 } | 1640 } |
| 1641 | 1641 |
| 1642 | 1642 |
| 1643 #undef UNSUPPORTED | 1643 #undef UNSUPPORTED |
| 1644 | 1644 |
| 1645 } } // namespace assembler::mips | 1645 } } // namespace assembler::mips |
| 1646 | 1646 |
| 1647 #endif // !defined(__mips) | 1647 #endif // __mips |
| 1648 | 1648 |
| OLD | NEW |