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

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

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Fixed the type of RoundInt64ToFloat64 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), 1275 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()),
1276 g.UseImmediate(m.right().node())); 1276 g.UseImmediate(m.right().node()));
1277 return; 1277 return;
1278 } 1278 }
1279 } 1279 }
1280 1280
1281 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); 1281 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
1282 } 1282 }
1283 1283
1284 1284
1285 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1286 VisitRR(this, kArm64Int64ToFloat64, node);
1287 }
1288
1289
1285 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { 1290 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
1286 VisitRR(this, kArm64Float64ExtractLowWord32, node); 1291 VisitRR(this, kArm64Float64ExtractLowWord32, node);
1287 } 1292 }
1288 1293
1289 1294
1290 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { 1295 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
1291 VisitRR(this, kArm64U64MoveFloat64, node); 1296 VisitRR(this, kArm64U64MoveFloat64, node);
1292 } 1297 }
1293 1298
1294 1299
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 MachineOperatorBuilder::kFloat64RoundTruncate | 1979 MachineOperatorBuilder::kFloat64RoundTruncate |
1975 MachineOperatorBuilder::kFloat64RoundTiesAway | 1980 MachineOperatorBuilder::kFloat64RoundTiesAway |
1976 MachineOperatorBuilder::kWord32ShiftIsSafe | 1981 MachineOperatorBuilder::kWord32ShiftIsSafe |
1977 MachineOperatorBuilder::kInt32DivIsSafe | 1982 MachineOperatorBuilder::kInt32DivIsSafe |
1978 MachineOperatorBuilder::kUint32DivIsSafe; 1983 MachineOperatorBuilder::kUint32DivIsSafe;
1979 } 1984 }
1980 1985
1981 } // namespace compiler 1986 } // namespace compiler
1982 } // namespace internal 1987 } // namespace internal
1983 } // namespace v8 1988 } // 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