OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 void PrintStopInfo(uint32_t code); | 309 void PrintStopInfo(uint32_t code); |
310 | 310 |
311 | 311 |
312 // Executes one instruction. | 312 // Executes one instruction. |
313 void InstructionDecode(Instruction* instr); | 313 void InstructionDecode(Instruction* instr); |
314 // Execute one instruction placed in a branch delay slot. | 314 // Execute one instruction placed in a branch delay slot. |
315 void BranchDelayInstructionDecode(Instruction* instr) { | 315 void BranchDelayInstructionDecode(Instruction* instr) { |
316 if (instr->InstructionBits() == nopInstr) { | 316 if (instr->InstructionBits() == nopInstr) { |
317 // Short-cut generic nop instructions. They are always valid and they | 317 // Short-cut generic nop instructions. They are always valid and they |
318 // never change the simulator state. | 318 // never change the simulator state. |
319 set_register(pc, reinterpret_cast<int32_t>(instr) + | |
320 Instruction::kInstrSize); | |
321 return; | 319 return; |
322 } | 320 } |
323 | 321 |
324 if (instr->IsForbiddenInBranchDelay()) { | 322 if (instr->IsForbiddenInBranchDelay()) { |
325 V8_Fatal(__FILE__, __LINE__, | 323 V8_Fatal(__FILE__, __LINE__, |
326 "Eror:Unexpected %i opcode in a branch delay slot.", | 324 "Eror:Unexpected %i opcode in a branch delay slot.", |
327 instr->OpcodeValue()); | 325 instr->OpcodeValue()); |
328 } | 326 } |
329 InstructionDecode(instr); | 327 InstructionDecode(instr); |
330 } | 328 } |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 432 |
435 static inline void UnregisterCTryCatch() { | 433 static inline void UnregisterCTryCatch() { |
436 Simulator::current(Isolate::Current())->PopAddress(); | 434 Simulator::current(Isolate::Current())->PopAddress(); |
437 } | 435 } |
438 }; | 436 }; |
439 | 437 |
440 } } // namespace v8::internal | 438 } } // namespace v8::internal |
441 | 439 |
442 #endif // !defined(USE_SIMULATOR) | 440 #endif // !defined(USE_SIMULATOR) |
443 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 441 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
OLD | NEW |