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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 break; | 680 break; |
681 } | 681 } |
682 case kMips64TruncUwD: { | 682 case kMips64TruncUwD: { |
683 FPURegister scratch = kScratchDoubleReg; | 683 FPURegister scratch = kScratchDoubleReg; |
684 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 684 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
685 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 685 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
686 break; | 686 break; |
687 } | 687 } |
688 case kMips64FmoveLowUwD: | 688 case kMips64FmoveLowUwD: |
689 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); | 689 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); |
690 // remove sign. | |
691 __ dsll32(i.OutputRegister(), i.OutputRegister(), 0); | |
692 __ dsrl32(i.OutputRegister(), i.OutputRegister(), 0); | |
693 break; | 690 break; |
694 case kMips64FmoveLowDUw: | 691 case kMips64FmoveLowDUw: |
695 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); | 692 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); |
696 break; | 693 break; |
697 case kMips64FmoveHighUwD: | 694 case kMips64FmoveHighUwD: |
698 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); | 695 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); |
699 break; | 696 break; |
700 case kMips64FmoveHighDUw: | 697 case kMips64FmoveHighDUw: |
701 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); | 698 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); |
702 break; | 699 break; |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 } | 1377 } |
1381 } | 1378 } |
1382 MarkLazyDeoptSite(); | 1379 MarkLazyDeoptSite(); |
1383 } | 1380 } |
1384 | 1381 |
1385 #undef __ | 1382 #undef __ |
1386 | 1383 |
1387 } // namespace compiler | 1384 } // namespace compiler |
1388 } // namespace internal | 1385 } // namespace internal |
1389 } // namespace v8 | 1386 } // namespace v8 |
OLD | NEW |