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

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

Issue 1455983002: [turbofan] Implemented the ChangeFloat64ToInt64 TurboFan operator. (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/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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 700 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
701 VisitRR(this, kMips64TruncWD, node); 701 VisitRR(this, kMips64TruncWD, node);
702 } 702 }
703 703
704 704
705 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 705 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
706 VisitRR(this, kMips64TruncUwD, node); 706 VisitRR(this, kMips64TruncUwD, node);
707 } 707 }
708 708
709 709
710 void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
711 VisitRR(this, kMips64TruncLD, node);
712 }
713
714
710 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { 715 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) {
711 Mips64OperandGenerator g(this); 716 Mips64OperandGenerator g(this);
712 Emit(kMips64Shl, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)), 717 Emit(kMips64Shl, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)),
713 g.TempImmediate(0)); 718 g.TempImmediate(0));
714 } 719 }
715 720
716 721
717 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { 722 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) {
718 Mips64OperandGenerator g(this); 723 Mips64OperandGenerator g(this);
719 Emit(kMips64Dext, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)), 724 Emit(kMips64Dext, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)),
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 MachineOperatorBuilder::kFloat32Max | 1558 MachineOperatorBuilder::kFloat32Max |
1554 MachineOperatorBuilder::kFloat64RoundDown | 1559 MachineOperatorBuilder::kFloat64RoundDown |
1555 MachineOperatorBuilder::kFloat64RoundUp | 1560 MachineOperatorBuilder::kFloat64RoundUp |
1556 MachineOperatorBuilder::kFloat64RoundTruncate | 1561 MachineOperatorBuilder::kFloat64RoundTruncate |
1557 MachineOperatorBuilder::kFloat64RoundTiesEven; 1562 MachineOperatorBuilder::kFloat64RoundTiesEven;
1558 } 1563 }
1559 1564
1560 } // namespace compiler 1565 } // namespace compiler
1561 } // namespace internal 1566 } // namespace internal
1562 } // namespace v8 1567 } // 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