| 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 kIA32PairShl: | 683 case kIA32ShlPair: |
| 684 if (HasImmediateInput(instr, 2)) { | 684 if (HasImmediateInput(instr, 2)) { |
| 685 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); | 685 __ ShlPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 686 } else { | 686 } else { |
| 687 // Shift has been loaded into CL by the register allocator. | 687 // Shift has been loaded into CL by the register allocator. |
| 688 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); | 688 __ ShlPair_cl(i.InputRegister(1), i.InputRegister(0)); |
| 689 } |
| 690 break; |
| 691 case kIA32ShrPair: |
| 692 if (HasImmediateInput(instr, 2)) { |
| 693 __ ShrPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 694 } else { |
| 695 // Shift has been loaded into CL by the register allocator. |
| 696 __ ShrPair_cl(i.InputRegister(1), i.InputRegister(0)); |
| 697 } |
| 698 break; |
| 699 case kIA32SarPair: |
| 700 if (HasImmediateInput(instr, 2)) { |
| 701 __ SarPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 702 } else { |
| 703 // Shift has been loaded into CL by the register allocator. |
| 704 __ SarPair_cl(i.InputRegister(1), i.InputRegister(0)); |
| 689 } | 705 } |
| 690 break; | 706 break; |
| 691 case kIA32Ror: | 707 case kIA32Ror: |
| 692 if (HasImmediateInput(instr, 1)) { | 708 if (HasImmediateInput(instr, 1)) { |
| 693 __ ror(i.OutputOperand(), i.InputInt5(1)); | 709 __ ror(i.OutputOperand(), i.InputInt5(1)); |
| 694 } else { | 710 } else { |
| 695 __ ror_cl(i.OutputOperand()); | 711 __ ror_cl(i.OutputOperand()); |
| 696 } | 712 } |
| 697 break; | 713 break; |
| 698 case kIA32Lzcnt: | 714 case kIA32Lzcnt: |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1827 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1812 __ Nop(padding_size); | 1828 __ Nop(padding_size); |
| 1813 } | 1829 } |
| 1814 } | 1830 } |
| 1815 | 1831 |
| 1816 #undef __ | 1832 #undef __ |
| 1817 | 1833 |
| 1818 } // namespace compiler | 1834 } // namespace compiler |
| 1819 } // namespace internal | 1835 } // namespace internal |
| 1820 } // namespace v8 | 1836 } // namespace v8 |
| OLD | NEW |