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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 break; | 1015 break; |
1016 case kArm64Float64ToFloat32: | 1016 case kArm64Float64ToFloat32: |
1017 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); | 1017 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); |
1018 break; | 1018 break; |
1019 case kArm64Float64ToInt32: | 1019 case kArm64Float64ToInt32: |
1020 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1020 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); |
1021 break; | 1021 break; |
1022 case kArm64Float64ToUint32: | 1022 case kArm64Float64ToUint32: |
1023 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1023 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); |
1024 break; | 1024 break; |
| 1025 case kArm64Float32ToInt64: |
| 1026 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); |
| 1027 break; |
1025 case kArm64Float64ToInt64: | 1028 case kArm64Float64ToInt64: |
1026 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0)); | 1029 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0)); |
1027 break; | 1030 break; |
1028 case kArm64Float64ToUint64: | 1031 case kArm64Float64ToUint64: |
1029 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); | 1032 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); |
1030 break; | 1033 break; |
1031 case kArm64Int32ToFloat64: | 1034 case kArm64Int32ToFloat64: |
1032 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); | 1035 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); |
1033 break; | 1036 break; |
1034 case kArm64Int64ToFloat32: | 1037 case kArm64Int64ToFloat32: |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 padding_size -= kInstructionSize; | 1561 padding_size -= kInstructionSize; |
1559 } | 1562 } |
1560 } | 1563 } |
1561 } | 1564 } |
1562 | 1565 |
1563 #undef __ | 1566 #undef __ |
1564 | 1567 |
1565 } // namespace compiler | 1568 } // namespace compiler |
1566 } // namespace internal | 1569 } // namespace internal |
1567 } // namespace v8 | 1570 } // namespace v8 |
OLD | NEW |