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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 break; | 800 break; |
801 case kArmLslPair: | 801 case kArmLslPair: |
802 if (instr->InputAt(2)->IsImmediate()) { | 802 if (instr->InputAt(2)->IsImmediate()) { |
803 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 803 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
804 i.InputRegister(1), i.InputInt32(2)); | 804 i.InputRegister(1), i.InputInt32(2)); |
805 } else { | 805 } else { |
806 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 806 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
807 i.InputRegister(1), kScratchReg, i.InputRegister(2)); | 807 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
808 } | 808 } |
809 break; | 809 break; |
| 810 case kArmLsrPair: |
| 811 if (instr->InputAt(2)->IsImmediate()) { |
| 812 __ LsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 813 i.InputRegister(1), i.InputInt32(2)); |
| 814 } else { |
| 815 __ LsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 816 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
| 817 } |
| 818 break; |
| 819 case kArmAsrPair: |
| 820 if (instr->InputAt(2)->IsImmediate()) { |
| 821 __ AsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 822 i.InputRegister(1), i.InputInt32(2)); |
| 823 } else { |
| 824 __ AsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 825 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
| 826 } |
| 827 break; |
810 case kArmVcmpF32: | 828 case kArmVcmpF32: |
811 if (instr->InputAt(1)->IsDoubleRegister()) { | 829 if (instr->InputAt(1)->IsDoubleRegister()) { |
812 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), | 830 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), |
813 i.InputFloat32Register(1)); | 831 i.InputFloat32Register(1)); |
814 } else { | 832 } else { |
815 DCHECK(instr->InputAt(1)->IsImmediate()); | 833 DCHECK(instr->InputAt(1)->IsImmediate()); |
816 // 0.0 is the only immediate supported by vcmp instructions. | 834 // 0.0 is the only immediate supported by vcmp instructions. |
817 DCHECK(i.InputFloat32(1) == 0.0f); | 835 DCHECK(i.InputFloat32(1) == 0.0f); |
818 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1)); | 836 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1)); |
819 } | 837 } |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 padding_size -= v8::internal::Assembler::kInstrSize; | 1556 padding_size -= v8::internal::Assembler::kInstrSize; |
1539 } | 1557 } |
1540 } | 1558 } |
1541 } | 1559 } |
1542 | 1560 |
1543 #undef __ | 1561 #undef __ |
1544 | 1562 |
1545 } // namespace compiler | 1563 } // namespace compiler |
1546 } // namespace internal | 1564 } // namespace internal |
1547 } // namespace v8 | 1565 } // namespace v8 |
OLD | NEW |