| 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 break; | 793 break; |
| 794 case kArmLslPair: | 794 case kArmLslPair: |
| 795 if (instr->InputAt(2)->IsImmediate()) { | 795 if (instr->InputAt(2)->IsImmediate()) { |
| 796 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 796 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 797 i.InputRegister(1), i.InputInt32(2)); | 797 i.InputRegister(1), i.InputInt32(2)); |
| 798 } else { | 798 } else { |
| 799 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 799 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 800 i.InputRegister(1), kScratchReg, i.InputRegister(2)); | 800 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
| 801 } | 801 } |
| 802 break; | 802 break; |
| 803 case kArmLsrPair: |
| 804 if (instr->InputAt(2)->IsImmediate()) { |
| 805 __ LsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 806 i.InputRegister(1), i.InputInt32(2)); |
| 807 } else { |
| 808 __ LsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 809 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
| 810 } |
| 811 break; |
| 812 case kArmAsrPair: |
| 813 if (instr->InputAt(2)->IsImmediate()) { |
| 814 __ AsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 815 i.InputRegister(1), i.InputInt32(2)); |
| 816 } else { |
| 817 __ AsrPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
| 818 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
| 819 } |
| 820 break; |
| 803 case kArmVcmpF32: | 821 case kArmVcmpF32: |
| 804 if (instr->InputAt(1)->IsDoubleRegister()) { | 822 if (instr->InputAt(1)->IsDoubleRegister()) { |
| 805 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), | 823 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), |
| 806 i.InputFloat32Register(1)); | 824 i.InputFloat32Register(1)); |
| 807 } else { | 825 } else { |
| 808 DCHECK(instr->InputAt(1)->IsImmediate()); | 826 DCHECK(instr->InputAt(1)->IsImmediate()); |
| 809 // 0.0 is the only immediate supported by vcmp instructions. | 827 // 0.0 is the only immediate supported by vcmp instructions. |
| 810 DCHECK(i.InputFloat32(1) == 0.0f); | 828 DCHECK(i.InputFloat32(1) == 0.0f); |
| 811 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1)); | 829 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1)); |
| 812 } | 830 } |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 padding_size -= v8::internal::Assembler::kInstrSize; | 1549 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1532 } | 1550 } |
| 1533 } | 1551 } |
| 1534 } | 1552 } |
| 1535 | 1553 |
| 1536 #undef __ | 1554 #undef __ |
| 1537 | 1555 |
| 1538 } // namespace compiler | 1556 } // namespace compiler |
| 1539 } // namespace internal | 1557 } // namespace internal |
| 1540 } // namespace v8 | 1558 } // namespace v8 |
| OLD | NEW |