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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 } | 681 } |
682 break; | 682 break; |
683 case kIA32PairShl: | 683 case kIA32PairShl: |
684 if (HasImmediateInput(instr, 2)) { | 684 if (HasImmediateInput(instr, 2)) { |
685 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); | 685 __ PairShl(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 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); |
689 } | 689 } |
690 break; | 690 break; |
| 691 case kIA32PairShr: |
| 692 if (HasImmediateInput(instr, 2)) { |
| 693 __ PairShr(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 694 } else { |
| 695 // Shift has been loaded into CL by the register allocator. |
| 696 __ PairShr_cl(i.InputRegister(1), i.InputRegister(0)); |
| 697 } |
| 698 break; |
| 699 case kIA32PairSar: |
| 700 if (HasImmediateInput(instr, 2)) { |
| 701 __ PairSar(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 702 } else { |
| 703 // Shift has been loaded into CL by the register allocator. |
| 704 __ PairSar_cl(i.InputRegister(1), i.InputRegister(0)); |
| 705 } |
| 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: |
699 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); | 715 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); |
700 break; | 716 break; |
(...skipping 1110 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 |