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

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

Issue 1512023002: [turbofan] Change TruncateFloat32ToUint64 to TryTruncateFloat32ToUint64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added better mips64 code. Created 5 years 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 | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('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 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0)); 1051 __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0));
1052 if (i.OutputCount() > 1) { 1052 if (i.OutputCount() > 1) {
1053 __ Cmp(i.OutputRegister(0), 1); 1053 __ Cmp(i.OutputRegister(0), 1);
1054 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); 1054 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc);
1055 __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc); 1055 __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc);
1056 __ Cset(i.OutputRegister(1), vc); 1056 __ Cset(i.OutputRegister(1), vc);
1057 } 1057 }
1058 break; 1058 break;
1059 case kArm64Float32ToUint64: 1059 case kArm64Float32ToUint64:
1060 __ Fcvtzu(i.OutputRegister64(), i.InputFloat32Register(0)); 1060 __ Fcvtzu(i.OutputRegister64(), i.InputFloat32Register(0));
1061 if (i.OutputCount() > 1) {
1062 __ Fcmp(i.InputFloat32Register(0), 0.0);
1063 __ Ccmp(i.OutputRegister(0), -1, ZFlag, ge);
1064 __ Cset(i.OutputRegister(1), ne);
1065 }
1061 break; 1066 break;
1062 case kArm64Float64ToUint64: 1067 case kArm64Float64ToUint64:
1063 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); 1068 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0));
1064 if (i.OutputCount() > 1) { 1069 if (i.OutputCount() > 1) {
1065 __ Fcmp(i.InputDoubleRegister(0), 0.0); 1070 __ Fcmp(i.InputDoubleRegister(0), 0.0);
1066 __ Ccmp(i.OutputRegister(0), -1, ZFlag, ge); 1071 __ Ccmp(i.OutputRegister(0), -1, ZFlag, ge);
1067 __ Cset(i.OutputRegister(1), ne); 1072 __ Cset(i.OutputRegister(1), ne);
1068 } 1073 }
1069 break; 1074 break;
1070 case kArm64Int32ToFloat64: 1075 case kArm64Int32ToFloat64:
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 padding_size -= kInstructionSize; 1620 padding_size -= kInstructionSize;
1616 } 1621 }
1617 } 1622 }
1618 } 1623 }
1619 1624
1620 #undef __ 1625 #undef __
1621 1626
1622 } // namespace compiler 1627 } // namespace compiler
1623 } // namespace internal 1628 } // namespace internal
1624 } // namespace v8 1629 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698