| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 void EnableStop(uint32_t code); | 302 void EnableStop(uint32_t code); |
| 303 void DisableStop(uint32_t code); | 303 void DisableStop(uint32_t code); |
| 304 void IncreaseStopCounter(uint32_t code); | 304 void IncreaseStopCounter(uint32_t code); |
| 305 void PrintStopInfo(uint32_t code); | 305 void PrintStopInfo(uint32_t code); |
| 306 | 306 |
| 307 | 307 |
| 308 // Executes one instruction. | 308 // Executes one instruction. |
| 309 void InstructionDecode(Instruction* instr); | 309 void InstructionDecode(Instruction* instr); |
| 310 // Execute one instruction placed in a branch delay slot. | 310 // Execute one instruction placed in a branch delay slot. |
| 311 void BranchDelayInstructionDecode(Instruction* instr) { | 311 void BranchDelayInstructionDecode(Instruction* instr) { |
| 312 if (instr->InstructionBits() == nopInstr) { |
| 313 // Short-cut generic nop instructions. They are always valid and they |
| 314 // never change the simulator state. |
| 315 set_register(pc, reinterpret_cast<int32_t>(instr) + |
| 316 Instruction::kInstrSize); |
| 317 return; |
| 318 } |
| 319 |
| 312 if (instr->IsForbiddenInBranchDelay()) { | 320 if (instr->IsForbiddenInBranchDelay()) { |
| 313 V8_Fatal(__FILE__, __LINE__, | 321 V8_Fatal(__FILE__, __LINE__, |
| 314 "Eror:Unexpected %i opcode in a branch delay slot.", | 322 "Eror:Unexpected %i opcode in a branch delay slot.", |
| 315 instr->OpcodeValue()); | 323 instr->OpcodeValue()); |
| 316 } | 324 } |
| 317 InstructionDecode(instr); | 325 InstructionDecode(instr); |
| 318 } | 326 } |
| 319 | 327 |
| 320 // ICache. | 328 // ICache. |
| 321 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); | 329 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 431 |
| 424 static inline void UnregisterCTryCatch() { | 432 static inline void UnregisterCTryCatch() { |
| 425 Simulator::current(Isolate::Current())->PopAddress(); | 433 Simulator::current(Isolate::Current())->PopAddress(); |
| 426 } | 434 } |
| 427 }; | 435 }; |
| 428 | 436 |
| 429 } } // namespace v8::internal | 437 } } // namespace v8::internal |
| 430 | 438 |
| 431 #endif // !defined(USE_SIMULATOR) | 439 #endif // !defined(USE_SIMULATOR) |
| 432 #endif // V8_MIPS_SIMULATOR_MIPS_H_ | 440 #endif // V8_MIPS_SIMULATOR_MIPS_H_ |
| OLD | NEW |