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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 __ trunc_l_d(scratch, i.InputDoubleRegister(0)); | 980 __ trunc_l_d(scratch, i.InputDoubleRegister(0)); |
981 __ dmfc1(i.OutputRegister(), scratch); | 981 __ dmfc1(i.OutputRegister(), scratch); |
982 break; | 982 break; |
983 } | 983 } |
984 case kMips64TruncUwD: { | 984 case kMips64TruncUwD: { |
985 FPURegister scratch = kScratchDoubleReg; | 985 FPURegister scratch = kScratchDoubleReg; |
986 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 986 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
987 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 987 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
988 break; | 988 break; |
989 } | 989 } |
| 990 case kMips64TruncUlD: { |
| 991 FPURegister scratch = kScratchDoubleReg; |
| 992 // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function. |
| 993 __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
| 994 break; |
| 995 } |
990 case kMips64BitcastDL: | 996 case kMips64BitcastDL: |
991 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); | 997 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); |
992 break; | 998 break; |
993 case kMips64BitcastLD: | 999 case kMips64BitcastLD: |
994 __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister()); | 1000 __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister()); |
995 break; | 1001 break; |
996 case kMips64Float64ExtractLowWord32: | 1002 case kMips64Float64ExtractLowWord32: |
997 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); | 1003 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); |
998 break; | 1004 break; |
999 case kMips64Float64ExtractHighWord32: | 1005 case kMips64Float64ExtractHighWord32: |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 padding_size -= v8::internal::Assembler::kInstrSize; | 1707 padding_size -= v8::internal::Assembler::kInstrSize; |
1702 } | 1708 } |
1703 } | 1709 } |
1704 } | 1710 } |
1705 | 1711 |
1706 #undef __ | 1712 #undef __ |
1707 | 1713 |
1708 } // namespace compiler | 1714 } // namespace compiler |
1709 } // namespace internal | 1715 } // namespace internal |
1710 } // namespace v8 | 1716 } // namespace v8 |
OLD | NEW |