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

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

Issue 1504363002: [turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); 1030 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0));
1031 break; 1031 break;
1032 case kArm64Float64ToInt32: 1032 case kArm64Float64ToInt32:
1033 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); 1033 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0));
1034 break; 1034 break;
1035 case kArm64Float64ToUint32: 1035 case kArm64Float64ToUint32:
1036 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); 1036 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0));
1037 break; 1037 break;
1038 case kArm64Float32ToInt64: 1038 case kArm64Float32ToInt64:
1039 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); 1039 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0));
1040 if (i.OutputCount() > 1) {
1041 __ Cmp(i.OutputRegister(0), 1);
1042 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc);
1043 __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc);
jbramley 2015/12/08 13:53:08 InputFloat32Register, surely.
ahaas 2015/12/09 11:15:01 Done.
1044 __ Cset(i.OutputRegister(1), vc);
1045 }
1040 break; 1046 break;
1041 case kArm64Float64ToInt64: 1047 case kArm64Float64ToInt64:
1042 __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0)); 1048 __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0));
1043 if (i.OutputCount() > 1) { 1049 if (i.OutputCount() > 1) {
1044 __ Cmp(i.OutputRegister(0), 1); 1050 __ Cmp(i.OutputRegister(0), 1);
1045 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); 1051 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc);
1046 __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc); 1052 __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc);
1047 __ Cset(i.OutputRegister(1), vc); 1053 __ Cset(i.OutputRegister(1), vc);
1048 } 1054 }
1049 break; 1055 break;
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 padding_size -= kInstructionSize; 1607 padding_size -= kInstructionSize;
1602 } 1608 }
1603 } 1609 }
1604 } 1610 }
1605 1611
1606 #undef __ 1612 #undef __
1607 1613
1608 } // namespace compiler 1614 } // namespace compiler
1609 } // namespace internal 1615 } // namespace internal
1610 } // namespace v8 1616 } // 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