| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 __ shr_cl(i.OutputOperand()); | 673 __ shr_cl(i.OutputOperand()); |
| 674 } | 674 } |
| 675 break; | 675 break; |
| 676 case kIA32Sar: | 676 case kIA32Sar: |
| 677 if (HasImmediateInput(instr, 1)) { | 677 if (HasImmediateInput(instr, 1)) { |
| 678 __ sar(i.OutputOperand(), i.InputInt5(1)); | 678 __ sar(i.OutputOperand(), i.InputInt5(1)); |
| 679 } else { | 679 } else { |
| 680 __ sar_cl(i.OutputOperand()); | 680 __ sar_cl(i.OutputOperand()); |
| 681 } | 681 } |
| 682 break; | 682 break; |
| 683 case kIA32AddPair: |
| 684 // i.OutputRegister(0) == i.InputRegister(0) ... left low word. |
| 685 // i.OutputRegister(1) == i.InputRegister(1) ... left high word. |
| 686 // i.InputRegister(2) ... right low word. |
| 687 // i.InputRegister(3) ... right high word. |
| 688 __ add(i.OutputRegister(0), i.InputRegister(2)); |
| 689 __ adc(i.OutputRegister(1), Operand(i.InputRegister(3))); |
| 690 break; |
| 683 case kIA32PairShl: | 691 case kIA32PairShl: |
| 684 if (HasImmediateInput(instr, 2)) { | 692 if (HasImmediateInput(instr, 2)) { |
| 685 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); | 693 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 686 } else { | 694 } else { |
| 687 // Shift has been loaded into CL by the register allocator. | 695 // Shift has been loaded into CL by the register allocator. |
| 688 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); | 696 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); |
| 689 } | 697 } |
| 690 break; | 698 break; |
| 691 case kIA32Ror: | 699 case kIA32Ror: |
| 692 if (HasImmediateInput(instr, 1)) { | 700 if (HasImmediateInput(instr, 1)) { |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1819 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1812 __ Nop(padding_size); | 1820 __ Nop(padding_size); |
| 1813 } | 1821 } |
| 1814 } | 1822 } |
| 1815 | 1823 |
| 1816 #undef __ | 1824 #undef __ |
| 1817 | 1825 |
| 1818 } // namespace compiler | 1826 } // namespace compiler |
| 1819 } // namespace internal | 1827 } // namespace internal |
| 1820 } // namespace v8 | 1828 } // namespace v8 |
| OLD | NEW |