| 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
| 7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/osr.h" | 9 #include "src/compiler/osr.h" |
| 10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 } | 656 } |
| 657 break; | 657 break; |
| 658 case kMipsSar: | 658 case kMipsSar: |
| 659 if (instr->InputAt(1)->IsRegister()) { | 659 if (instr->InputAt(1)->IsRegister()) { |
| 660 __ srav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); | 660 __ srav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
| 661 } else { | 661 } else { |
| 662 int32_t imm = i.InputOperand(1).immediate(); | 662 int32_t imm = i.InputOperand(1).immediate(); |
| 663 __ sra(i.OutputRegister(), i.InputRegister(0), imm); | 663 __ sra(i.OutputRegister(), i.InputRegister(0), imm); |
| 664 } | 664 } |
| 665 break; | 665 break; |
| 666 case kMipsExt: |
| 667 __ Ext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
| 668 i.InputInt8(2)); |
| 669 break; |
| 666 case kMipsRor: | 670 case kMipsRor: |
| 667 __ Ror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 671 __ Ror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
| 668 break; | 672 break; |
| 669 case kMipsTst: | 673 case kMipsTst: |
| 670 // Pseudo-instruction used for tst/branch. No opcode emitted here. | 674 // Pseudo-instruction used for tst/branch. No opcode emitted here. |
| 671 break; | 675 break; |
| 672 case kMipsCmp: | 676 case kMipsCmp: |
| 673 // Pseudo-instruction used for cmp/branch. No opcode emitted here. | 677 // Pseudo-instruction used for cmp/branch. No opcode emitted here. |
| 674 break; | 678 break; |
| 675 case kMipsMov: | 679 case kMipsMov: |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 padding_size -= v8::internal::Assembler::kInstrSize; | 1580 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1577 } | 1581 } |
| 1578 } | 1582 } |
| 1579 } | 1583 } |
| 1580 | 1584 |
| 1581 #undef __ | 1585 #undef __ |
| 1582 | 1586 |
| 1583 } // namespace compiler | 1587 } // namespace compiler |
| 1584 } // namespace internal | 1588 } // namespace internal |
| 1585 } // namespace v8 | 1589 } // namespace v8 |
| OLD | NEW |