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

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

Issue 435923002: TF: Rename ConvertXToY machine operators to ChangeXToY. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
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 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 void InstructionSelector::VisitInt32UMod(Node* node) { 486 void InstructionSelector::VisitInt32UMod(Node* node) {
487 VisitMod(this, node, kX64Udiv32); 487 VisitMod(this, node, kX64Udiv32);
488 } 488 }
489 489
490 490
491 void InstructionSelector::VisitInt64UMod(Node* node) { 491 void InstructionSelector::VisitInt64UMod(Node* node) {
492 VisitMod(this, node, kX64Udiv); 492 VisitMod(this, node, kX64Udiv);
493 } 493 }
494 494
495 495
496 void InstructionSelector::VisitConvertInt32ToFloat64(Node* node) { 496 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
497 X64OperandGenerator g(this); 497 X64OperandGenerator g(this);
498 Emit(kSSEInt32ToFloat64, g.DefineAsDoubleRegister(node), 498 Emit(kSSEInt32ToFloat64, g.DefineAsDoubleRegister(node),
499 g.Use(node->InputAt(0))); 499 g.Use(node->InputAt(0)));
500 } 500 }
501 501
502 502
503 void InstructionSelector::VisitConvertUint32ToFloat64(Node* node) { 503 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
504 X64OperandGenerator g(this); 504 X64OperandGenerator g(this);
505 // TODO(turbofan): X64 SSE cvtqsi2sd should support operands. 505 // TODO(turbofan): X64 SSE cvtqsi2sd should support operands.
506 Emit(kSSEUint32ToFloat64, g.DefineAsDoubleRegister(node), 506 Emit(kSSEUint32ToFloat64, g.DefineAsDoubleRegister(node),
507 g.UseRegister(node->InputAt(0))); 507 g.UseRegister(node->InputAt(0)));
508 } 508 }
509 509
510 510
511 void InstructionSelector::VisitConvertFloat64ToInt32(Node* node) { 511 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
512 X64OperandGenerator g(this); 512 X64OperandGenerator g(this);
513 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 513 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
514 } 514 }
515 515
516 516
517 void InstructionSelector::VisitConvertFloat64ToUint32(Node* node) { 517 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
518 X64OperandGenerator g(this); 518 X64OperandGenerator g(this);
519 // TODO(turbofan): X64 SSE cvttsd2siq should support operands. 519 // TODO(turbofan): X64 SSE cvttsd2siq should support operands.
520 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), 520 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node),
521 g.UseDoubleRegister(node->InputAt(0))); 521 g.UseDoubleRegister(node->InputAt(0)));
522 } 522 }
523 523
524 524
525 void InstructionSelector::VisitFloat64Add(Node* node) { 525 void InstructionSelector::VisitFloat64Add(Node* node) {
526 X64OperandGenerator g(this); 526 X64OperandGenerator g(this);
527 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node), 527 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node),
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 ASSERT(deoptimization == NULL && continuation == NULL); 725 ASSERT(deoptimization == NULL && continuation == NULL);
726 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); 726 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL);
727 } 727 }
728 } 728 }
729 729
730 #endif 730 #endif
731 731
732 } // namespace compiler 732 } // namespace compiler
733 } // namespace internal 733 } // namespace internal
734 } // namespace v8 734 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | test/cctest/compiler/test-machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698