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

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

Issue 639283003: [turbofan] IA: TruncateFloat64ToFloat32 supports mem operand (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ia32 port Created 6 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/ia32/assembler-ia32.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/compiler/generic-node-inl.h" 5 #include "src/compiler/generic-node-inl.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 644
645 645
646 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { 646 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) {
647 X64OperandGenerator g(this); 647 X64OperandGenerator g(this);
648 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 648 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
649 } 649 }
650 650
651 651
652 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 652 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
653 X64OperandGenerator g(this); 653 X64OperandGenerator g(this);
654 // TODO(turbofan): X64 SSE conversions should take an operand. 654 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
655 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
656 } 655 }
657 656
658 657
659 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { 658 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) {
660 X64OperandGenerator g(this); 659 X64OperandGenerator g(this);
661 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 660 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
662 } 661 }
663 662
664 663
665 void InstructionSelector::VisitFloat64Add(Node* node) { 664 void InstructionSelector::VisitFloat64Add(Node* node) {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 call_instr->MarkAsCall(); 851 call_instr->MarkAsCall();
853 if (deoptimization != NULL) { 852 if (deoptimization != NULL) {
854 DCHECK(continuation != NULL); 853 DCHECK(continuation != NULL);
855 call_instr->MarkAsControl(); 854 call_instr->MarkAsControl();
856 } 855 }
857 } 856 }
858 857
859 } // namespace compiler 858 } // namespace compiler
860 } // namespace internal 859 } // namespace internal
861 } // namespace v8 860 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698