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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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/ia32/code-generator-ia32.cc ('k') | src/compiler/x64/code-generator-x64.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 "src/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 523
524 524
525 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 525 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
526 IA32OperandGenerator g(this); 526 IA32OperandGenerator g(this);
527 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 527 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
528 } 528 }
529 529
530 530
531 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 531 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
532 IA32OperandGenerator g(this); 532 IA32OperandGenerator g(this);
533 // TODO(turbofan): IA32 SSE conversions should take an operand. 533 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
534 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
535 } 534 }
536 535
537 536
538 void InstructionSelector::VisitFloat64Add(Node* node) { 537 void InstructionSelector::VisitFloat64Add(Node* node) {
539 IA32OperandGenerator g(this); 538 IA32OperandGenerator g(this);
540 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node), 539 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node),
541 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); 540 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)));
542 } 541 }
543 542
544 543
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 call_instr->MarkAsCall(); 708 call_instr->MarkAsCall();
710 if (deoptimization != NULL) { 709 if (deoptimization != NULL) {
711 DCHECK(continuation != NULL); 710 DCHECK(continuation != NULL);
712 call_instr->MarkAsControl(); 711 call_instr->MarkAsControl();
713 } 712 }
714 } 713 }
715 714
716 } // namespace compiler 715 } // namespace compiler
717 } // namespace internal 716 } // namespace internal
718 } // namespace v8 717 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698