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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.cc

Issue 1512023002: [turbofan] Change TruncateFloat32ToUint64 to TryTruncateFloat32ToUint64. (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
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/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1252
1253 Node* success_output = NodeProperties::FindProjection(node, 1); 1253 Node* success_output = NodeProperties::FindProjection(node, 1);
1254 if (success_output) { 1254 if (success_output) {
1255 outputs[output_count++] = g.DefineAsRegister(success_output); 1255 outputs[output_count++] = g.DefineAsRegister(success_output);
1256 } 1256 }
1257 1257
1258 Emit(kArm64Float64ToInt64, output_count, outputs, 1, inputs); 1258 Emit(kArm64Float64ToInt64, output_count, outputs, 1, inputs);
1259 } 1259 }
1260 1260
1261 1261
1262 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { 1262 void InstructionSelector::VisitTryTruncateFloat32ToUint64(Node* node) {
1263 VisitRR(this, kArm64Float32ToUint64, node); 1263 Arm64OperandGenerator g(this);
1264
1265 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))};
1266 InstructionOperand outputs[2];
1267 size_t output_count = 0;
1268 outputs[output_count++] = g.DefineAsRegister(node);
1269
1270 Node* success_output = NodeProperties::FindProjection(node, 1);
1271 if (success_output) {
1272 outputs[output_count++] = g.DefineAsRegister(success_output);
1273 }
1274
1275 Emit(kArm64Float32ToUint64, output_count, outputs, 1, inputs);
1264 } 1276 }
1265 1277
1266 1278
1267 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { 1279 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) {
1268 Arm64OperandGenerator g(this); 1280 Arm64OperandGenerator g(this);
1269 1281
1270 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; 1282 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))};
1271 InstructionOperand outputs[2]; 1283 InstructionOperand outputs[2];
1272 size_t output_count = 0; 1284 size_t output_count = 0;
1273 outputs[output_count++] = g.DefineAsRegister(node); 1285 outputs[output_count++] = g.DefineAsRegister(node);
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 MachineOperatorBuilder::kFloat32RoundTiesEven | 2146 MachineOperatorBuilder::kFloat32RoundTiesEven |
2135 MachineOperatorBuilder::kFloat64RoundTiesEven | 2147 MachineOperatorBuilder::kFloat64RoundTiesEven |
2136 MachineOperatorBuilder::kWord32ShiftIsSafe | 2148 MachineOperatorBuilder::kWord32ShiftIsSafe |
2137 MachineOperatorBuilder::kInt32DivIsSafe | 2149 MachineOperatorBuilder::kInt32DivIsSafe |
2138 MachineOperatorBuilder::kUint32DivIsSafe; 2150 MachineOperatorBuilder::kUint32DivIsSafe;
2139 } 2151 }
2140 2152
2141 } // namespace compiler 2153 } // namespace compiler
2142 } // namespace internal 2154 } // namespace internal
2143 } // namespace v8 2155 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698