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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 __ ConvertUnsignedInt64ToFloat(i.InputRegister(0), | 1187 __ ConvertUnsignedInt64ToFloat(i.InputRegister(0), |
1188 i.OutputDoubleRegister()); | 1188 i.OutputDoubleRegister()); |
1189 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1189 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1190 break; | 1190 break; |
1191 case kPPC_Uint64ToDouble: | 1191 case kPPC_Uint64ToDouble: |
1192 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0), | 1192 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0), |
1193 i.OutputDoubleRegister()); | 1193 i.OutputDoubleRegister()); |
1194 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1194 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1195 break; | 1195 break; |
1196 #endif | 1196 #endif |
| 1197 case kPPC_Int32ToFloat32: |
| 1198 __ ConvertIntToFloat(i.OutputDoubleRegister(), i.InputRegister(0), |
| 1199 kScratchReg); |
| 1200 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1201 break; |
1197 case kPPC_Int32ToDouble: | 1202 case kPPC_Int32ToDouble: |
1198 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); | 1203 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); |
1199 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1204 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1200 break; | 1205 break; |
1201 case kPPC_Uint32ToDouble: | 1206 case kPPC_Uint32ToDouble: |
1202 __ ConvertUnsignedIntToDouble(i.InputRegister(0), | 1207 __ ConvertUnsignedIntToDouble(i.InputRegister(0), |
1203 i.OutputDoubleRegister()); | 1208 i.OutputDoubleRegister()); |
1204 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1209 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1205 break; | 1210 break; |
1206 case kPPC_DoubleToInt32: | 1211 case kPPC_DoubleToInt32: |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 padding_size -= v8::internal::Assembler::kInstrSize; | 1850 padding_size -= v8::internal::Assembler::kInstrSize; |
1846 } | 1851 } |
1847 } | 1852 } |
1848 } | 1853 } |
1849 | 1854 |
1850 #undef __ | 1855 #undef __ |
1851 | 1856 |
1852 } // namespace compiler | 1857 } // namespace compiler |
1853 } // namespace internal | 1858 } // namespace internal |
1854 } // namespace v8 | 1859 } // namespace v8 |
OLD | NEW |