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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 SwVfpRegister scratch = kScratchDoubleReg.low(); | 1105 SwVfpRegister scratch = kScratchDoubleReg.low(); |
1106 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0)); | 1106 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0)); |
1107 __ vmov(i.OutputRegister(), scratch); | 1107 __ vmov(i.OutputRegister(), scratch); |
1108 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 1108 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
1109 break; | 1109 break; |
1110 } | 1110 } |
1111 case kArmVmovU32F32: | 1111 case kArmVmovU32F32: |
1112 __ vmov(i.OutputRegister(), i.InputFloat32Register(0)); | 1112 __ vmov(i.OutputRegister(), i.InputFloat32Register(0)); |
1113 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 1113 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
1114 break; | 1114 break; |
| 1115 case kArmVmovF32U32: |
| 1116 __ vmov(i.OutputFloat32Register(), i.InputRegister(0)); |
| 1117 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 1118 break; |
1115 case kArmVmovLowU32F64: | 1119 case kArmVmovLowU32F64: |
1116 __ VmovLow(i.OutputRegister(), i.InputFloat64Register(0)); | 1120 __ VmovLow(i.OutputRegister(), i.InputFloat64Register(0)); |
1117 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 1121 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
1118 break; | 1122 break; |
1119 case kArmVmovLowF64U32: | 1123 case kArmVmovLowF64U32: |
1120 __ VmovLow(i.OutputFloat64Register(), i.InputRegister(1)); | 1124 __ VmovLow(i.OutputFloat64Register(), i.InputRegister(1)); |
1121 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 1125 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
1122 break; | 1126 break; |
1123 case kArmVmovHighU32F64: | 1127 case kArmVmovHighU32F64: |
1124 __ VmovHigh(i.OutputRegister(), i.InputFloat64Register(0)); | 1128 __ VmovHigh(i.OutputRegister(), i.InputFloat64Register(0)); |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 padding_size -= v8::internal::Assembler::kInstrSize; | 1769 padding_size -= v8::internal::Assembler::kInstrSize; |
1766 } | 1770 } |
1767 } | 1771 } |
1768 } | 1772 } |
1769 | 1773 |
1770 #undef __ | 1774 #undef __ |
1771 | 1775 |
1772 } // namespace compiler | 1776 } // namespace compiler |
1773 } // namespace internal | 1777 } // namespace internal |
1774 } // namespace v8 | 1778 } // namespace v8 |
OLD | NEW |