| 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 641 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 642 break; | 642 break; |
| 643 case kMipsMulHigh: | 643 case kMipsMulHigh: |
| 644 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 644 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 645 break; | 645 break; |
| 646 case kMipsMulHighU: | 646 case kMipsMulHighU: |
| 647 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 647 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 648 break; | 648 break; |
| 649 case kMipsDiv: | 649 case kMipsDiv: |
| 650 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 650 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 651 if (IsMipsArchVariant(kMips32r6)) { |
| 652 __ seleqz(i.OutputRegister(), i.InputRegister(0), i.InputRegister(0)); |
| 653 } else { |
| 654 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
| 655 } |
| 651 break; | 656 break; |
| 652 case kMipsDivU: | 657 case kMipsDivU: |
| 653 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 658 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 659 if (IsMipsArchVariant(kMips32r6)) { |
| 660 __ seleqz(i.OutputRegister(), i.InputRegister(0), i.InputRegister(0)); |
| 661 } else { |
| 662 __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
| 663 } |
| 654 break; | 664 break; |
| 655 case kMipsMod: | 665 case kMipsMod: |
| 656 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 666 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 657 break; | 667 break; |
| 658 case kMipsModU: | 668 case kMipsModU: |
| 659 __ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 669 __ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 660 break; | 670 break; |
| 661 case kMipsAnd: | 671 case kMipsAnd: |
| 662 __ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 672 __ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 663 break; | 673 break; |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 padding_size -= v8::internal::Assembler::kInstrSize; | 1661 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1652 } | 1662 } |
| 1653 } | 1663 } |
| 1654 } | 1664 } |
| 1655 | 1665 |
| 1656 #undef __ | 1666 #undef __ |
| 1657 | 1667 |
| 1658 } // namespace compiler | 1668 } // namespace compiler |
| 1659 } // namespace internal | 1669 } // namespace internal |
| 1660 } // namespace v8 | 1670 } // namespace v8 |
| OLD | NEW |