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

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: 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/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.h » ('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/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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 switch (TruncationModeOf(node->op())) { 577 switch (TruncationModeOf(node->op())) {
578 case TruncationMode::kJavaScript: 578 case TruncationMode::kJavaScript:
579 return VisitRR(this, kArchTruncateDoubleToI, node); 579 return VisitRR(this, kArchTruncateDoubleToI, node);
580 case TruncationMode::kRoundToZero: 580 case TruncationMode::kRoundToZero:
581 return VisitRR(this, kMips64TruncWD, node); 581 return VisitRR(this, kMips64TruncWD, node);
582 } 582 }
583 UNREACHABLE(); 583 UNREACHABLE();
584 } 584 }
585 585
586 586
587 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
588 VisitRR(this, kMips64CvtDL, node);
589 }
590
591
587 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { 592 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
588 VisitRR(this, kMips64Float64ExtractLowWord32, node); 593 VisitRR(this, kMips64Float64ExtractLowWord32, node);
589 } 594 }
590 595
591 596
592 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { 597 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
593 VisitRR(this, kMips64BitcastDL, node); 598 VisitRR(this, kMips64BitcastDL, node);
594 } 599 }
595 600
596 601
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698