| 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 838 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 839 break; | 839 break; |
| 840 } | 840 } |
| 841 case kArmVcvtF64U32: { | 841 case kArmVcvtF64U32: { |
| 842 SwVfpRegister scratch = kScratchDoubleReg.low(); | 842 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 843 __ vmov(scratch, i.InputRegister(0)); | 843 __ vmov(scratch, i.InputRegister(0)); |
| 844 __ vcvt_f64_u32(i.OutputFloat64Register(), scratch); | 844 __ vcvt_f64_u32(i.OutputFloat64Register(), scratch); |
| 845 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 845 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 846 break; | 846 break; |
| 847 } | 847 } |
| 848 case kArmVcvtS32F32: { |
| 849 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 850 __ vcvt_s32_f32(scratch, i.InputFloat32Register(0)); |
| 851 __ vmov(i.OutputRegister(), scratch); |
| 852 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 853 break; |
| 854 } |
| 848 case kArmVcvtS32F64: { | 855 case kArmVcvtS32F64: { |
| 849 SwVfpRegister scratch = kScratchDoubleReg.low(); | 856 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 850 __ vcvt_s32_f64(scratch, i.InputFloat64Register(0)); | 857 __ vcvt_s32_f64(scratch, i.InputFloat64Register(0)); |
| 851 __ vmov(i.OutputRegister(), scratch); | 858 __ vmov(i.OutputRegister(), scratch); |
| 852 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 859 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 853 break; | 860 break; |
| 854 } | 861 } |
| 855 case kArmVcvtU32F64: { | 862 case kArmVcvtU32F64: { |
| 856 SwVfpRegister scratch = kScratchDoubleReg.low(); | 863 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 857 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0)); | 864 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0)); |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 padding_size -= v8::internal::Assembler::kInstrSize; | 1384 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1378 } | 1385 } |
| 1379 } | 1386 } |
| 1380 } | 1387 } |
| 1381 | 1388 |
| 1382 #undef __ | 1389 #undef __ |
| 1383 | 1390 |
| 1384 } // namespace compiler | 1391 } // namespace compiler |
| 1385 } // namespace internal | 1392 } // namespace internal |
| 1386 } // namespace v8 | 1393 } // namespace v8 |
| OLD | NEW |