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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 // i.InputRegister(0) ... left low word. | 784 // i.InputRegister(0) ... left low word. |
785 // i.InputRegister(1) ... left high word. | 785 // i.InputRegister(1) ... left high word. |
786 // i.InputRegister(2) ... right low word. | 786 // i.InputRegister(2) ... right low word. |
787 // i.InputRegister(3) ... right high word. | 787 // i.InputRegister(3) ... right high word. |
788 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2), | 788 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2), |
789 SBit::SetCC); | 789 SBit::SetCC); |
790 __ adc(i.OutputRegister(1), i.InputRegister(1), | 790 __ adc(i.OutputRegister(1), i.InputRegister(1), |
791 Operand(i.InputRegister(3))); | 791 Operand(i.InputRegister(3))); |
792 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 792 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
793 break; | 793 break; |
| 794 case kArmSubPair: |
| 795 // i.InputRegister(0) ... left low word. |
| 796 // i.InputRegister(1) ... left high word. |
| 797 // i.InputRegister(2) ... right low word. |
| 798 // i.InputRegister(3) ... right high word. |
| 799 __ sub(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2), |
| 800 SBit::SetCC); |
| 801 __ sbc(i.OutputRegister(1), i.InputRegister(1), |
| 802 Operand(i.InputRegister(3))); |
| 803 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 804 break; |
794 case kArmPairLsl: | 805 case kArmPairLsl: |
795 if (instr->InputAt(2)->IsImmediate()) { | 806 if (instr->InputAt(2)->IsImmediate()) { |
796 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 807 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
797 i.InputRegister(1), i.InputInt32(2)); | 808 i.InputRegister(1), i.InputInt32(2)); |
798 } else { | 809 } else { |
799 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), | 810 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), |
800 i.InputRegister(1), kScratchReg, i.InputRegister(2)); | 811 i.InputRegister(1), kScratchReg, i.InputRegister(2)); |
801 } | 812 } |
802 break; | 813 break; |
803 case kArmVcmpF32: | 814 case kArmVcmpF32: |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 padding_size -= v8::internal::Assembler::kInstrSize; | 1542 padding_size -= v8::internal::Assembler::kInstrSize; |
1532 } | 1543 } |
1533 } | 1544 } |
1534 } | 1545 } |
1535 | 1546 |
1536 #undef __ | 1547 #undef __ |
1537 | 1548 |
1538 } // namespace compiler | 1549 } // namespace compiler |
1539 } // namespace internal | 1550 } // namespace internal |
1540 } // namespace v8 | 1551 } // namespace v8 |
OLD | NEW |