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 // Declares a Simulator for S390 instructions if we are not generating a native | 5 // Declares a Simulator for S390 instructions if we are not generating a native |
6 // S390 binary. This Simulator allows us to run and debug S390 code generation | 6 // S390 binary. This Simulator allows us to run and debug S390 code generation |
7 // on regular desktop machines. | 7 // on regular desktop machines. |
8 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, | 8 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, |
9 // which will start execution in the Simulator or forwards to the real entry | 9 // which will start execution in the Simulator or forwards to the real entry |
10 // on a S390 hardware platform. | 10 // on a S390 hardware platform. |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 bool DecodeTwoByte(Instruction* instr); | 309 bool DecodeTwoByte(Instruction* instr); |
310 bool DecodeFourByte(Instruction* instr); | 310 bool DecodeFourByte(Instruction* instr); |
311 bool DecodeFourByteArithmetic(Instruction* instr); | 311 bool DecodeFourByteArithmetic(Instruction* instr); |
312 bool DecodeFourByteFloatingPoint(Instruction* instr); | 312 bool DecodeFourByteFloatingPoint(Instruction* instr); |
313 void DecodeFourByteFloatingPointIntConversion(Instruction* instr); | 313 void DecodeFourByteFloatingPointIntConversion(Instruction* instr); |
314 void DecodeFourByteFloatingPointRound(Instruction* instr); | 314 void DecodeFourByteFloatingPointRound(Instruction* instr); |
315 | 315 |
316 bool DecodeSixByte(Instruction* instr); | 316 bool DecodeSixByte(Instruction* instr); |
317 bool DecodeSixByteArithmetic(Instruction* instr); | 317 bool DecodeSixByteArithmetic(Instruction* instr); |
318 bool S390InstructionDecode(Instruction* instr); | 318 bool S390InstructionDecode(Instruction* instr); |
| 319 void DecodeSixByteBitShift(Instruction* instr); |
319 | 320 |
320 // Used by the CL**BR instructions. | 321 // Used by the CL**BR instructions. |
321 template <typename T1, typename T2> | 322 template <typename T1, typename T2> |
322 void SetS390RoundConditionCode(T1 r2_val, T2 max, T2 min) { | 323 void SetS390RoundConditionCode(T1 r2_val, T2 max, T2 min) { |
323 condition_reg_ = 0; | 324 condition_reg_ = 0; |
324 double r2_dval = static_cast<double>(r2_val); | 325 double r2_dval = static_cast<double>(r2_val); |
325 double dbl_min = static_cast<double>(min); | 326 double dbl_min = static_cast<double>(min); |
326 double dbl_max = static_cast<double>(max); | 327 double dbl_max = static_cast<double>(max); |
327 | 328 |
328 if (r2_dval == 0.0) | 329 if (r2_dval == 0.0) |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { | 525 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { |
525 Simulator::current(isolate)->PopAddress(); | 526 Simulator::current(isolate)->PopAddress(); |
526 } | 527 } |
527 }; | 528 }; |
528 | 529 |
529 } // namespace internal | 530 } // namespace internal |
530 } // namespace v8 | 531 } // namespace v8 |
531 | 532 |
532 #endif // !defined(USE_SIMULATOR) | 533 #endif // !defined(USE_SIMULATOR) |
533 #endif // V8_S390_SIMULATOR_S390_H_ | 534 #endif // V8_S390_SIMULATOR_S390_H_ |
OLD | NEW |