| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 // Declares a Simulator for PPC instructions if we are not generating a native | 6 // Declares a Simulator for PPC instructions if we are not generating a native |
| 7 // PPC binary. This Simulator allows us to run and debug PPC code generation on | 7 // PPC binary. This Simulator allows us to run and debug PPC code generation on |
| 8 // regular desktop machines. | 8 // regular desktop machines. |
| 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, | 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, |
| 10 // which will start execution in the Simulator or forwards to the real entry | 10 // which will start execution in the Simulator or forwards to the real entry |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 void Trace(Instruction* instr); | 305 void Trace(Instruction* instr); |
| 306 void SetCR0(intptr_t result, bool setSO = false); | 306 void SetCR0(intptr_t result, bool setSO = false); |
| 307 void ExecuteBranchConditional(Instruction* instr, BCType type); | 307 void ExecuteBranchConditional(Instruction* instr, BCType type); |
| 308 void ExecuteExt1(Instruction* instr); | 308 void ExecuteExt1(Instruction* instr); |
| 309 bool ExecuteExt2_10bit(Instruction* instr); | 309 bool ExecuteExt2_10bit(Instruction* instr); |
| 310 bool ExecuteExt2_9bit_part1(Instruction* instr); | 310 bool ExecuteExt2_9bit_part1(Instruction* instr); |
| 311 bool ExecuteExt2_9bit_part2(Instruction* instr); | 311 bool ExecuteExt2_9bit_part2(Instruction* instr); |
| 312 void ExecuteExt2_5bit(Instruction* instr); | 312 void ExecuteExt2_5bit(Instruction* instr); |
| 313 void ExecuteExt2(Instruction* instr); | 313 void ExecuteExt2(Instruction* instr); |
| 314 void ExecuteExt3(Instruction* instr); |
| 314 void ExecuteExt4(Instruction* instr); | 315 void ExecuteExt4(Instruction* instr); |
| 315 #if V8_TARGET_ARCH_PPC64 | 316 #if V8_TARGET_ARCH_PPC64 |
| 316 void ExecuteExt5(Instruction* instr); | 317 void ExecuteExt5(Instruction* instr); |
| 317 #endif | 318 #endif |
| 318 void ExecuteGeneric(Instruction* instr); | 319 void ExecuteGeneric(Instruction* instr); |
| 319 | 320 |
| 320 // Executes one instruction. | 321 // Executes one instruction. |
| 321 void ExecuteInstruction(Instruction* instr); | 322 void ExecuteInstruction(Instruction* instr); |
| 322 | 323 |
| 323 // ICache. | 324 // ICache. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 421 |
| 421 static inline void UnregisterCTryCatch() { | 422 static inline void UnregisterCTryCatch() { |
| 422 Simulator::current(Isolate::Current())->PopAddress(); | 423 Simulator::current(Isolate::Current())->PopAddress(); |
| 423 } | 424 } |
| 424 }; | 425 }; |
| 425 } // namespace internal | 426 } // namespace internal |
| 426 } // namespace v8 | 427 } // namespace v8 |
| 427 | 428 |
| 428 #endif // !defined(USE_SIMULATOR) | 429 #endif // !defined(USE_SIMULATOR) |
| 429 #endif // V8_PPC_SIMULATOR_PPC_H_ | 430 #endif // V8_PPC_SIMULATOR_PPC_H_ |
| OLD | NEW |