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: | 624 case kMipsFloat64ExtractLowWord32: |
625 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); | 625 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); |
626 break; | 626 break; |
627 case kMipsFmoveLowDUw: | 627 case kMipsFloat64ExtractHighWord32: |
| 628 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 629 break; |
| 630 case kMipsFloat64InsertLowWord32: |
628 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); | 631 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); |
629 break; | 632 break; |
630 case kMipsFmoveHighUwD: | 633 case kMipsFloat64InsertHighWord32: |
631 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); | |
632 break; | |
633 case kMipsFmoveHighDUw: | |
634 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); | 634 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); |
635 break; | 635 break; |
636 // ... more basic instructions ... | 636 // ... more basic instructions ... |
637 | 637 |
638 case kMipsLbu: | 638 case kMipsLbu: |
639 __ lbu(i.OutputRegister(), i.MemoryOperand()); | 639 __ lbu(i.OutputRegister(), i.MemoryOperand()); |
640 break; | 640 break; |
641 case kMipsLb: | 641 case kMipsLb: |
642 __ lb(i.OutputRegister(), i.MemoryOperand()); | 642 __ lb(i.OutputRegister(), i.MemoryOperand()); |
643 break; | 643 break; |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 } | 1217 } |
1218 } | 1218 } |
1219 MarkLazyDeoptSite(); | 1219 MarkLazyDeoptSite(); |
1220 } | 1220 } |
1221 | 1221 |
1222 #undef __ | 1222 #undef __ |
1223 | 1223 |
1224 } // namespace compiler | 1224 } // namespace compiler |
1225 } // namespace internal | 1225 } // namespace internal |
1226 } // namespace v8 | 1226 } // namespace v8 |
OLD | NEW |