| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 i.InputInt8(2)); | 761 i.InputInt8(2)); |
| 762 break; | 762 break; |
| 763 case kMips64Ins: | 763 case kMips64Ins: |
| 764 if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { | 764 if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { |
| 765 __ Ins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); | 765 __ Ins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); |
| 766 } else { | 766 } else { |
| 767 __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 767 __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 768 i.InputInt8(2)); | 768 i.InputInt8(2)); |
| 769 } | 769 } |
| 770 break; | 770 break; |
| 771 case kMips64Dext: | 771 case kMips64Dext: { |
| 772 __ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 772 int16_t pos = i.InputInt8(1); |
| 773 i.InputInt8(2)); | 773 int16_t size = i.InputInt8(2); |
| 774 if (size > 0 && size <= 32 && pos >= 0 && pos < 32) { |
| 775 __ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 776 i.InputInt8(2)); |
| 777 } else if (size > 32 && size <= 64 && pos > 0 && pos < 32) { |
| 778 __ Dextm(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 779 i.InputInt8(2)); |
| 780 } else { |
| 781 DCHECK(size > 0 && size <= 32 && pos >= 32 && pos < 64); |
| 782 __ Dextu(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 783 i.InputInt8(2)); |
| 784 } |
| 774 break; | 785 break; |
| 786 } |
| 775 case kMips64Dins: | 787 case kMips64Dins: |
| 776 if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { | 788 if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { |
| 777 __ Dins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); | 789 __ Dins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); |
| 778 } else { | 790 } else { |
| 779 __ Dins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 791 __ Dins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 780 i.InputInt8(2)); | 792 i.InputInt8(2)); |
| 781 } | 793 } |
| 782 break; | 794 break; |
| 783 case kMips64Dshl: | 795 case kMips64Dshl: |
| 784 if (instr->InputAt(1)->IsRegister()) { | 796 if (instr->InputAt(1)->IsRegister()) { |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 padding_size -= v8::internal::Assembler::kInstrSize; | 1928 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1917 } | 1929 } |
| 1918 } | 1930 } |
| 1919 } | 1931 } |
| 1920 | 1932 |
| 1921 #undef __ | 1933 #undef __ |
| 1922 | 1934 |
| 1923 } // namespace compiler | 1935 } // namespace compiler |
| 1924 } // namespace internal | 1936 } // namespace internal |
| 1925 } // namespace v8 | 1937 } // namespace v8 |
| OLD | NEW |