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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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/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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } 492 }
493 493
494 494
495 void InstructionSelector::VisitUint32Mod(Node* node) { 495 void InstructionSelector::VisitUint32Mod(Node* node) {
496 VisitMod(this, node, kIA32Udiv); 496 VisitMod(this, node, kIA32Udiv);
497 } 497 }
498 498
499 499
500 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { 500 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) {
501 IA32OperandGenerator g(this); 501 IA32OperandGenerator g(this);
502 // TODO(turbofan): IA32 SSE conversions should take an operand. 502 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
503 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
504 } 503 }
505 504
506 505
507 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { 506 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
508 IA32OperandGenerator g(this); 507 IA32OperandGenerator g(this);
509 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 508 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
510 } 509 }
511 510
512 511
513 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { 512 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
(...skipping 195 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