Chromium Code Reviews

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

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Renamed ChangeInt64ToFloat64 to RoundInt64ToFloat64, and removed the Signed64 type again. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 497 matching lines...)
508 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { 508 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) {
509 VisitRR(this, kMips64CvtDS, node); 509 VisitRR(this, kMips64CvtDS, node);
510 } 510 }
511 511
512 512
513 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { 513 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
514 VisitRR(this, kMips64CvtDW, node); 514 VisitRR(this, kMips64CvtDW, node);
515 } 515 }
516 516
517 517
518 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
519 VisitRR(this, kMips64CvtDL, node);
520 }
521
522
518 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { 523 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
519 VisitRR(this, kMips64CvtDUw, node); 524 VisitRR(this, kMips64CvtDUw, node);
520 } 525 }
521 526
522 527
523 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 528 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
524 VisitRR(this, kMips64TruncWD, node); 529 VisitRR(this, kMips64TruncWD, node);
525 } 530 }
526 531
527 532
(...skipping 763 matching lines...)
1291 // static 1296 // static
1292 MachineOperatorBuilder::Flags 1297 MachineOperatorBuilder::Flags
1293 InstructionSelector::SupportedMachineOperatorFlags() { 1298 InstructionSelector::SupportedMachineOperatorFlags() {
1294 return MachineOperatorBuilder::kFloat64RoundDown | 1299 return MachineOperatorBuilder::kFloat64RoundDown |
1295 MachineOperatorBuilder::kFloat64RoundTruncate; 1300 MachineOperatorBuilder::kFloat64RoundTruncate;
1296 } 1301 }
1297 1302
1298 } // namespace compiler 1303 } // namespace compiler
1299 } // namespace internal 1304 } // namespace internal
1300 } // namespace v8 1305 } // namespace v8
OLDNEW

Powered by Google App Engine