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

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

Issue 641153003: [turbofan]IA: ChangeFloat32ToFloat64 supports mem operand (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: 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
« 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 } 601 }
602 602
603 603
604 void InstructionSelector::VisitUint64Mod(Node* node) { 604 void InstructionSelector::VisitUint64Mod(Node* node) {
605 VisitMod(this, node, kX64Udiv); 605 VisitMod(this, node, kX64Udiv);
606 } 606 }
607 607
608 608
609 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { 609 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) {
610 X64OperandGenerator g(this); 610 X64OperandGenerator g(this);
611 // TODO(turbofan): X64 SSE conversions should take an operand. 611 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
612 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
613 } 612 }
614 613
615 614
616 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { 615 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
617 X64OperandGenerator g(this); 616 X64OperandGenerator g(this);
618 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 617 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
619 } 618 }
620 619
621 620
622 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { 621 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
(...skipping 229 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