Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 1455983002: [turbofan] Implemented the ChangeFloat64ToInt64 TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698