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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); | 1122 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); |
1123 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1123 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1124 break; | 1124 break; |
1125 case kPPC_Uint32ToDouble: | 1125 case kPPC_Uint32ToDouble: |
1126 __ ConvertUnsignedIntToDouble(i.InputRegister(0), | 1126 __ ConvertUnsignedIntToDouble(i.InputRegister(0), |
1127 i.OutputDoubleRegister()); | 1127 i.OutputDoubleRegister()); |
1128 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1128 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1129 break; | 1129 break; |
1130 case kPPC_DoubleToInt32: | 1130 case kPPC_DoubleToInt32: |
1131 case kPPC_DoubleToUint32: | 1131 case kPPC_DoubleToUint32: |
| 1132 case kPPC_DoubleToInt64: |
1132 __ ConvertDoubleToInt64(i.InputDoubleRegister(0), | 1133 __ ConvertDoubleToInt64(i.InputDoubleRegister(0), |
1133 #if !V8_TARGET_ARCH_PPC64 | 1134 #if !V8_TARGET_ARCH_PPC64 |
1134 kScratchReg, | 1135 kScratchReg, |
1135 #endif | 1136 #endif |
1136 i.OutputRegister(), kScratchDoubleReg); | 1137 i.OutputRegister(), kScratchDoubleReg); |
1137 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1138 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1138 break; | 1139 break; |
1139 case kPPC_DoubleToFloat32: | 1140 case kPPC_DoubleToFloat32: |
1140 ASSEMBLE_FLOAT_UNOP_RC(frsp); | 1141 ASSEMBLE_FLOAT_UNOP_RC(frsp); |
1141 break; | 1142 break; |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 padding_size -= v8::internal::Assembler::kInstrSize; | 1735 padding_size -= v8::internal::Assembler::kInstrSize; |
1735 } | 1736 } |
1736 } | 1737 } |
1737 } | 1738 } |
1738 | 1739 |
1739 #undef __ | 1740 #undef __ |
1740 | 1741 |
1741 } // namespace compiler | 1742 } // namespace compiler |
1742 } // namespace internal | 1743 } // namespace internal |
1743 } // namespace v8 | 1744 } // namespace v8 |
OLD | NEW |