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

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

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (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/arm64/instruction-codes-arm64.h ('k') | src/compiler/instruction-selector.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/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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), 1284 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()),
1285 g.UseImmediate(m.right().node())); 1285 g.UseImmediate(m.right().node()));
1286 return; 1286 return;
1287 } 1287 }
1288 } 1288 }
1289 1289
1290 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); 1290 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
1291 } 1291 }
1292 1292
1293 1293
1294 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) {
1295 VisitRR(this, kArm64Int64ToFloat32, node);
1296 }
1297
1298
1294 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 1299 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1295 VisitRR(this, kArm64Int64ToFloat64, node); 1300 VisitRR(this, kArm64Int64ToFloat64, node);
1296 } 1301 }
1297 1302
1298 1303
1299 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { 1304 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
1300 VisitRR(this, kArm64Float64ExtractLowWord32, node); 1305 VisitRR(this, kArm64Float64ExtractLowWord32, node);
1301 } 1306 }
1302 1307
1303 1308
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 MachineOperatorBuilder::kFloat64RoundTruncate | 2014 MachineOperatorBuilder::kFloat64RoundTruncate |
2010 MachineOperatorBuilder::kFloat64RoundTiesAway | 2015 MachineOperatorBuilder::kFloat64RoundTiesAway |
2011 MachineOperatorBuilder::kWord32ShiftIsSafe | 2016 MachineOperatorBuilder::kWord32ShiftIsSafe |
2012 MachineOperatorBuilder::kInt32DivIsSafe | 2017 MachineOperatorBuilder::kInt32DivIsSafe |
2013 MachineOperatorBuilder::kUint32DivIsSafe; 2018 MachineOperatorBuilder::kUint32DivIsSafe;
2014 } 2019 }
2015 2020
2016 } // namespace compiler 2021 } // namespace compiler
2017 } // namespace internal 2022 } // namespace internal
2018 } // namespace v8 2023 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-codes-arm64.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698