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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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/x64/instruction-codes-x64.h ('k') | test/cctest/compiler/test-run-machops.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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 827 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
828 } 828 }
829 829
830 830
831 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 831 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
832 X64OperandGenerator g(this); 832 X64OperandGenerator g(this);
833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
834 } 834 }
835 835
836 836
837 void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
838 X64OperandGenerator g(this);
839 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
840 }
841
842
837 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { 843 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) {
838 X64OperandGenerator g(this); 844 X64OperandGenerator g(this);
839 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 845 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
840 } 846 }
841 847
842 848
843 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { 849 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) {
844 X64OperandGenerator g(this); 850 X64OperandGenerator g(this);
845 Node* value = node->InputAt(0); 851 Node* value = node->InputAt(0);
846 switch (value->opcode()) { 852 switch (value->opcode()) {
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 MachineOperatorBuilder::kFloat64RoundUp | 1689 MachineOperatorBuilder::kFloat64RoundUp |
1684 MachineOperatorBuilder::kFloat64RoundTruncate | 1690 MachineOperatorBuilder::kFloat64RoundTruncate |
1685 MachineOperatorBuilder::kFloat64RoundTiesEven; 1691 MachineOperatorBuilder::kFloat64RoundTiesEven;
1686 } 1692 }
1687 return flags; 1693 return flags;
1688 } 1694 }
1689 1695
1690 } // namespace compiler 1696 } // namespace compiler
1691 } // namespace internal 1697 } // namespace internal
1692 } // namespace v8 1698 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698