| 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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 case kPPC_DoubleConstruct: | 1069 case kPPC_DoubleConstruct: |
| 1070 #if V8_TARGET_ARCH_PPC64 | 1070 #if V8_TARGET_ARCH_PPC64 |
| 1071 __ MovInt64ComponentsToDouble(i.OutputDoubleRegister(), | 1071 __ MovInt64ComponentsToDouble(i.OutputDoubleRegister(), |
| 1072 i.InputRegister(0), i.InputRegister(1), r0); | 1072 i.InputRegister(0), i.InputRegister(1), r0); |
| 1073 #else | 1073 #else |
| 1074 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0), | 1074 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0), |
| 1075 i.InputRegister(1)); | 1075 i.InputRegister(1)); |
| 1076 #endif | 1076 #endif |
| 1077 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1077 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1078 break; | 1078 break; |
| 1079 case kPPC_BitcastFloat32ToInt32: |
| 1080 __ MovFloatToInt(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 1081 break; |
| 1082 case kPPC_BitcastInt32ToFloat32: |
| 1083 __ MovIntToFloat(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1084 break; |
| 1079 #if V8_TARGET_ARCH_PPC64 | 1085 #if V8_TARGET_ARCH_PPC64 |
| 1080 case kPPC_BitcastDL: | 1086 case kPPC_BitcastDoubleToInt64: |
| 1081 __ mffprd(i.OutputRegister(), i.InputDoubleRegister(0)); | 1087 __ MovDoubleToInt64(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 1082 break; | 1088 break; |
| 1083 case kPPC_BitcastLD: | 1089 case kPPC_BitcastInt64ToDouble: |
| 1084 __ mtfprd(i.OutputDoubleRegister(), i.InputRegister(0)); | 1090 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1085 break; | 1091 break; |
| 1086 #endif | 1092 #endif |
| 1087 case kPPC_LoadWordU8: | 1093 case kPPC_LoadWordU8: |
| 1088 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); | 1094 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); |
| 1089 break; | 1095 break; |
| 1090 case kPPC_LoadWordS8: | 1096 case kPPC_LoadWordS8: |
| 1091 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); | 1097 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); |
| 1092 __ extsb(i.OutputRegister(), i.OutputRegister()); | 1098 __ extsb(i.OutputRegister(), i.OutputRegister()); |
| 1093 break; | 1099 break; |
| 1094 case kPPC_LoadWordU16: | 1100 case kPPC_LoadWordU16: |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 padding_size -= v8::internal::Assembler::kInstrSize; | 1640 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1635 } | 1641 } |
| 1636 } | 1642 } |
| 1637 } | 1643 } |
| 1638 | 1644 |
| 1639 #undef __ | 1645 #undef __ |
| 1640 | 1646 |
| 1641 } // namespace compiler | 1647 } // namespace compiler |
| 1642 } // namespace internal | 1648 } // namespace internal |
| 1643 } // namespace v8 | 1649 } // namespace v8 |
| OLD | NEW |