| 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 __ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0)); | 967 __ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 968 break; | 968 break; |
| 969 } | 969 } |
| 970 case kMips64TruncWD: { | 970 case kMips64TruncWD: { |
| 971 FPURegister scratch = kScratchDoubleReg; | 971 FPURegister scratch = kScratchDoubleReg; |
| 972 // Other arches use round to zero here, so we follow. | 972 // Other arches use round to zero here, so we follow. |
| 973 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 973 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
| 974 __ mfc1(i.OutputRegister(), scratch); | 974 __ mfc1(i.OutputRegister(), scratch); |
| 975 break; | 975 break; |
| 976 } | 976 } |
| 977 case kMips64TruncLD: { |
| 978 FPURegister scratch = kScratchDoubleReg; |
| 979 // Other arches use round to zero here, so we follow. |
| 980 __ trunc_l_d(scratch, i.InputDoubleRegister(0)); |
| 981 __ dmfc1(i.OutputRegister(), scratch); |
| 982 break; |
| 983 } |
| 977 case kMips64TruncUwD: { | 984 case kMips64TruncUwD: { |
| 978 FPURegister scratch = kScratchDoubleReg; | 985 FPURegister scratch = kScratchDoubleReg; |
| 979 // 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. |
| 980 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 987 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
| 981 break; | 988 break; |
| 982 } | 989 } |
| 983 case kMips64BitcastDL: | 990 case kMips64BitcastDL: |
| 984 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); | 991 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 985 break; | 992 break; |
| 986 case kMips64BitcastLD: | 993 case kMips64BitcastLD: |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 padding_size -= v8::internal::Assembler::kInstrSize; | 1701 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1695 } | 1702 } |
| 1696 } | 1703 } |
| 1697 } | 1704 } |
| 1698 | 1705 |
| 1699 #undef __ | 1706 #undef __ |
| 1700 | 1707 |
| 1701 } // namespace compiler | 1708 } // namespace compiler |
| 1702 } // namespace internal | 1709 } // namespace internal |
| 1703 } // namespace v8 | 1710 } // namespace v8 |
| OLD | NEW |