Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forgot to save a file. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 } 633 }
634 break; 634 break;
635 case kIA32PairShl: 635 case kIA32PairShl:
636 if (HasImmediateInput(instr, 2)) { 636 if (HasImmediateInput(instr, 2)) {
637 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); 637 __ PairShl(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
638 } else { 638 } else {
639 // Shift has been loaded into CL by the register allocator. 639 // Shift has been loaded into CL by the register allocator.
640 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0)); 640 __ PairShl_cl(i.InputRegister(1), i.InputRegister(0));
641 } 641 }
642 break; 642 break;
643 case kIA32PairShr:
644 if (HasImmediateInput(instr, 2)) {
645 __ PairShr(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
646 } else {
647 // Shift has been loaded into CL by the register allocator.
648 __ PairShr_cl(i.InputRegister(1), i.InputRegister(0));
649 }
650 break;
651 case kIA32PairSar:
652 if (HasImmediateInput(instr, 2)) {
653 __ PairSar(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
654 } else {
655 // Shift has been loaded into CL by the register allocator.
656 __ PairSar_cl(i.InputRegister(1), i.InputRegister(0));
657 }
658 break;
643 case kIA32Ror: 659 case kIA32Ror:
644 if (HasImmediateInput(instr, 1)) { 660 if (HasImmediateInput(instr, 1)) {
645 __ ror(i.OutputOperand(), i.InputInt5(1)); 661 __ ror(i.OutputOperand(), i.InputInt5(1));
646 } else { 662 } else {
647 __ ror_cl(i.OutputOperand()); 663 __ ror_cl(i.OutputOperand());
648 } 664 }
649 break; 665 break;
650 case kIA32Lzcnt: 666 case kIA32Lzcnt:
651 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); 667 __ Lzcnt(i.OutputRegister(), i.InputOperand(0));
652 break; 668 break;
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1780 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1765 __ Nop(padding_size); 1781 __ Nop(padding_size);
1766 } 1782 }
1767 } 1783 }
1768 1784
1769 #undef __ 1785 #undef __
1770 1786
1771 } // namespace compiler 1787 } // namespace compiler
1772 } // namespace internal 1788 } // namespace internal
1773 } // namespace v8 1789 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698