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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 break; | 1009 break; |
1010 case kArm64Float64ToFloat32: | 1010 case kArm64Float64ToFloat32: |
1011 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); | 1011 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); |
1012 break; | 1012 break; |
1013 case kArm64Float64ToInt32: | 1013 case kArm64Float64ToInt32: |
1014 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1014 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); |
1015 break; | 1015 break; |
1016 case kArm64Float64ToUint32: | 1016 case kArm64Float64ToUint32: |
1017 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1017 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); |
1018 break; | 1018 break; |
1019 case kArm64Float32ToInt64: | |
1020 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); | |
1021 break; | |
1022 case kArm64Float64ToInt64: | 1019 case kArm64Float64ToInt64: |
1023 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0)); | 1020 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0)); |
1024 break; | 1021 break; |
1025 case kArm64Float64ToUint64: | 1022 case kArm64Float64ToUint64: |
1026 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); | 1023 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); |
1027 break; | 1024 break; |
1028 case kArm64Int32ToFloat64: | 1025 case kArm64Int32ToFloat64: |
1029 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); | 1026 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); |
1030 break; | 1027 break; |
1031 case kArm64Int64ToFloat32: | 1028 case kArm64Int64ToFloat32: |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 padding_size -= kInstructionSize; | 1552 padding_size -= kInstructionSize; |
1556 } | 1553 } |
1557 } | 1554 } |
1558 } | 1555 } |
1559 | 1556 |
1560 #undef __ | 1557 #undef __ |
1561 | 1558 |
1562 } // namespace compiler | 1559 } // namespace compiler |
1563 } // namespace internal | 1560 } // namespace internal |
1564 } // namespace v8 | 1561 } // namespace v8 |
OLD | NEW |