| 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 __ shr_cl(i.OutputOperand()); | 625 __ shr_cl(i.OutputOperand()); |
| 626 } | 626 } |
| 627 break; | 627 break; |
| 628 case kIA32Sar: | 628 case kIA32Sar: |
| 629 if (HasImmediateInput(instr, 1)) { | 629 if (HasImmediateInput(instr, 1)) { |
| 630 __ sar(i.OutputOperand(), i.InputInt5(1)); | 630 __ sar(i.OutputOperand(), i.InputInt5(1)); |
| 631 } else { | 631 } else { |
| 632 __ sar_cl(i.OutputOperand()); | 632 __ sar_cl(i.OutputOperand()); |
| 633 } | 633 } |
| 634 break; | 634 break; |
| 635 case kIA32PairShl: |
| 636 if (HasImmediateInput(instr, 2)) { |
| 637 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |
| 638 } else { |
| 639 // Shift has been loaded into CL by the register allocator. |
| 640 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); |
| 641 } |
| 642 break; |
| 635 case kIA32Ror: | 643 case kIA32Ror: |
| 636 if (HasImmediateInput(instr, 1)) { | 644 if (HasImmediateInput(instr, 1)) { |
| 637 __ ror(i.OutputOperand(), i.InputInt5(1)); | 645 __ ror(i.OutputOperand(), i.InputInt5(1)); |
| 638 } else { | 646 } else { |
| 639 __ ror_cl(i.OutputOperand()); | 647 __ ror_cl(i.OutputOperand()); |
| 640 } | 648 } |
| 641 break; | 649 break; |
| 642 case kIA32Lzcnt: | 650 case kIA32Lzcnt: |
| 643 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); | 651 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); |
| 644 break; | 652 break; |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1764 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1757 __ Nop(padding_size); | 1765 __ Nop(padding_size); |
| 1758 } | 1766 } |
| 1759 } | 1767 } |
| 1760 | 1768 |
| 1761 #undef __ | 1769 #undef __ |
| 1762 | 1770 |
| 1763 } // namespace compiler | 1771 } // namespace compiler |
| 1764 } // namespace internal | 1772 } // namespace internal |
| 1765 } // namespace v8 | 1773 } // namespace v8 |
| OLD | NEW |