OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 break; | 654 break; |
655 case kMips64MulHighU: | 655 case kMips64MulHighU: |
656 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 656 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
657 break; | 657 break; |
658 case kMips64DMulHigh: | 658 case kMips64DMulHigh: |
659 __ Dmulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 659 __ Dmulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
660 break; | 660 break; |
661 case kMips64Div: | 661 case kMips64Div: |
662 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 662 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
663 if (kArchVariant == kMips64r6) { | 663 if (kArchVariant == kMips64r6) { |
664 __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); | 664 __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
665 } else { | 665 } else { |
666 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); | 666 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
667 } | 667 } |
668 break; | 668 break; |
669 case kMips64DivU: | 669 case kMips64DivU: |
670 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 670 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
671 if (kArchVariant == kMips64r6) { | 671 if (kArchVariant == kMips64r6) { |
672 __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); | 672 __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
673 } else { | 673 } else { |
674 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); | 674 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
675 } | 675 } |
676 break; | 676 break; |
677 case kMips64Mod: | 677 case kMips64Mod: |
678 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 678 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
679 break; | 679 break; |
680 case kMips64ModU: | 680 case kMips64ModU: |
681 __ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 681 __ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
682 break; | 682 break; |
683 case kMips64Dmul: | 683 case kMips64Dmul: |
684 __ Dmul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 684 __ Dmul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
685 break; | 685 break; |
686 case kMips64Ddiv: | 686 case kMips64Ddiv: |
687 __ Ddiv(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 687 __ Ddiv(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
688 if (kArchVariant == kMips64r6) { | 688 if (kArchVariant == kMips64r6) { |
689 __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); | 689 __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
690 } else { | 690 } else { |
691 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); | 691 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
692 } | 692 } |
693 break; | 693 break; |
694 case kMips64DdivU: | 694 case kMips64DdivU: |
695 __ Ddivu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 695 __ Ddivu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
696 if (kArchVariant == kMips64r6) { | 696 if (kArchVariant == kMips64r6) { |
697 __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); | 697 __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
698 } else { | 698 } else { |
699 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); | 699 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
700 } | 700 } |
701 break; | 701 break; |
702 case kMips64Dmod: | 702 case kMips64Dmod: |
703 __ Dmod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 703 __ Dmod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
704 break; | 704 break; |
705 case kMips64DmodU: | 705 case kMips64DmodU: |
706 __ Dmodu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 706 __ Dmodu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
707 break; | 707 break; |
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 padding_size -= v8::internal::Assembler::kInstrSize; | 1885 padding_size -= v8::internal::Assembler::kInstrSize; |
1886 } | 1886 } |
1887 } | 1887 } |
1888 } | 1888 } |
1889 | 1889 |
1890 #undef __ | 1890 #undef __ |
1891 | 1891 |
1892 } // namespace compiler | 1892 } // namespace compiler |
1893 } // namespace internal | 1893 } // namespace internal |
1894 } // namespace v8 | 1894 } // namespace v8 |
OLD | NEW |