| 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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
| 9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
| 10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 break; | 985 break; |
| 986 case kArm64Int64ToFloat32: | 986 case kArm64Int64ToFloat32: |
| 987 __ Scvtf(i.OutputDoubleRegister().S(), i.InputRegister64(0)); | 987 __ Scvtf(i.OutputDoubleRegister().S(), i.InputRegister64(0)); |
| 988 break; | 988 break; |
| 989 case kArm64Int64ToFloat64: | 989 case kArm64Int64ToFloat64: |
| 990 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister64(0)); | 990 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister64(0)); |
| 991 break; | 991 break; |
| 992 case kArm64Uint32ToFloat64: | 992 case kArm64Uint32ToFloat64: |
| 993 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); | 993 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); |
| 994 break; | 994 break; |
| 995 case kArm64Uint64ToFloat32: |
| 996 __ Ucvtf(i.OutputDoubleRegister().S(), i.InputRegister64(0)); |
| 997 break; |
| 995 case kArm64Uint64ToFloat64: | 998 case kArm64Uint64ToFloat64: |
| 996 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister64(0)); | 999 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister64(0)); |
| 997 break; | 1000 break; |
| 998 case kArm64Float64ExtractLowWord32: | 1001 case kArm64Float64ExtractLowWord32: |
| 999 __ Fmov(i.OutputRegister32(), i.InputFloat32Register(0)); | 1002 __ Fmov(i.OutputRegister32(), i.InputFloat32Register(0)); |
| 1000 break; | 1003 break; |
| 1001 case kArm64Float64ExtractHighWord32: | 1004 case kArm64Float64ExtractHighWord32: |
| 1002 // TODO(arm64): This should use MOV (to general) when NEON is supported. | 1005 // TODO(arm64): This should use MOV (to general) when NEON is supported. |
| 1003 __ Fmov(i.OutputRegister(), i.InputFloat64Register(0)); | 1006 __ Fmov(i.OutputRegister(), i.InputFloat64Register(0)); |
| 1004 __ Lsr(i.OutputRegister(), i.OutputRegister(), 32); | 1007 __ Lsr(i.OutputRegister(), i.OutputRegister(), 32); |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 padding_size -= kInstructionSize; | 1517 padding_size -= kInstructionSize; |
| 1515 } | 1518 } |
| 1516 } | 1519 } |
| 1517 } | 1520 } |
| 1518 | 1521 |
| 1519 #undef __ | 1522 #undef __ |
| 1520 | 1523 |
| 1521 } // namespace compiler | 1524 } // namespace compiler |
| 1522 } // namespace internal | 1525 } // namespace internal |
| 1523 } // namespace v8 | 1526 } // namespace v8 |
| OLD | NEW |