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/mips/macro-assembler-mips.h" | 9 #include "src/mips/macro-assembler-mips.h" |
10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 614 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
615 __ mfc1(i.OutputRegister(), scratch); | 615 __ mfc1(i.OutputRegister(), scratch); |
616 break; | 616 break; |
617 } | 617 } |
618 case kMipsTruncUwD: { | 618 case kMipsTruncUwD: { |
619 FPURegister scratch = kScratchDoubleReg; | 619 FPURegister scratch = kScratchDoubleReg; |
620 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 620 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
621 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 621 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
622 break; | 622 break; |
623 } | 623 } |
| 624 case kMipsFmoveLowUwD: |
| 625 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 626 break; |
| 627 case kMipsFmoveLowDUw: |
| 628 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); |
| 629 break; |
| 630 case kMipsFmoveHighUwD: |
| 631 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 632 break; |
| 633 case kMipsFmoveHighDUw: |
| 634 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); |
| 635 break; |
624 // ... more basic instructions ... | 636 // ... more basic instructions ... |
625 | 637 |
626 case kMipsLbu: | 638 case kMipsLbu: |
627 __ lbu(i.OutputRegister(), i.MemoryOperand()); | 639 __ lbu(i.OutputRegister(), i.MemoryOperand()); |
628 break; | 640 break; |
629 case kMipsLb: | 641 case kMipsLb: |
630 __ lb(i.OutputRegister(), i.MemoryOperand()); | 642 __ lb(i.OutputRegister(), i.MemoryOperand()); |
631 break; | 643 break; |
632 case kMipsSb: | 644 case kMipsSb: |
633 __ sb(i.InputRegister(2), i.MemoryOperand()); | 645 __ sb(i.InputRegister(2), i.MemoryOperand()); |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 } | 1217 } |
1206 } | 1218 } |
1207 MarkLazyDeoptSite(); | 1219 MarkLazyDeoptSite(); |
1208 } | 1220 } |
1209 | 1221 |
1210 #undef __ | 1222 #undef __ |
1211 | 1223 |
1212 } // namespace compiler | 1224 } // namespace compiler |
1213 } // namespace internal | 1225 } // namespace internal |
1214 } // namespace v8 | 1226 } // namespace v8 |
OLD | NEW |