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

Side by Side Diff: src/compiler/arm/instruction-selector-arm.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
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.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-intrinsics.h" 7 #include "src/compiler-intrinsics.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 void InstructionSelector::VisitInt32Mod(Node* node) { 698 void InstructionSelector::VisitInt32Mod(Node* node) {
699 VisitMod(this, node, kArmSdiv, kArmVcvtF64S32, kArmVcvtS32F64); 699 VisitMod(this, node, kArmSdiv, kArmVcvtF64S32, kArmVcvtS32F64);
700 } 700 }
701 701
702 702
703 void InstructionSelector::VisitInt32UMod(Node* node) { 703 void InstructionSelector::VisitInt32UMod(Node* node) {
704 VisitMod(this, node, kArmUdiv, kArmVcvtF64U32, kArmVcvtU32F64); 704 VisitMod(this, node, kArmUdiv, kArmVcvtF64U32, kArmVcvtU32F64);
705 } 705 }
706 706
707 707
708 void InstructionSelector::VisitConvertInt32ToFloat64(Node* node) { 708 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
709 ArmOperandGenerator g(this); 709 ArmOperandGenerator g(this);
710 Emit(kArmVcvtF64S32, g.DefineAsDoubleRegister(node), 710 Emit(kArmVcvtF64S32, g.DefineAsDoubleRegister(node),
711 g.UseRegister(node->InputAt(0))); 711 g.UseRegister(node->InputAt(0)));
712 } 712 }
713 713
714 714
715 void InstructionSelector::VisitConvertUint32ToFloat64(Node* node) { 715 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
716 ArmOperandGenerator g(this); 716 ArmOperandGenerator g(this);
717 Emit(kArmVcvtF64U32, g.DefineAsDoubleRegister(node), 717 Emit(kArmVcvtF64U32, g.DefineAsDoubleRegister(node),
718 g.UseRegister(node->InputAt(0))); 718 g.UseRegister(node->InputAt(0)));
719 } 719 }
720 720
721 721
722 void InstructionSelector::VisitConvertFloat64ToInt32(Node* node) { 722 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
723 ArmOperandGenerator g(this); 723 ArmOperandGenerator g(this);
724 Emit(kArmVcvtS32F64, g.DefineAsRegister(node), 724 Emit(kArmVcvtS32F64, g.DefineAsRegister(node),
725 g.UseDoubleRegister(node->InputAt(0))); 725 g.UseDoubleRegister(node->InputAt(0)));
726 } 726 }
727 727
728 728
729 void InstructionSelector::VisitConvertFloat64ToUint32(Node* node) { 729 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
730 ArmOperandGenerator g(this); 730 ArmOperandGenerator g(this);
731 Emit(kArmVcvtU32F64, g.DefineAsRegister(node), 731 Emit(kArmVcvtU32F64, g.DefineAsRegister(node),
732 g.UseDoubleRegister(node->InputAt(0))); 732 g.UseDoubleRegister(node->InputAt(0)));
733 } 733 }
734 734
735 735
736 void InstructionSelector::VisitFloat64Add(Node* node) { 736 void InstructionSelector::VisitFloat64Add(Node* node) {
737 ArmOperandGenerator g(this); 737 ArmOperandGenerator g(this);
738 Int32BinopMatcher m(node); 738 Int32BinopMatcher m(node);
739 if (m.left().IsFloat64Mul() && CanCover(node, m.left().node())) { 739 if (m.left().IsFloat64Mul() && CanCover(node, m.left().node())) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 ASSERT(cont->IsSet()); 947 ASSERT(cont->IsSet());
948 Emit(cont->Encode(kArmVcmpF64), g.DefineAsRegister(cont->result()), 948 Emit(cont->Encode(kArmVcmpF64), g.DefineAsRegister(cont->result()),
949 g.UseDoubleRegister(m.left().node()), 949 g.UseDoubleRegister(m.left().node()),
950 g.UseDoubleRegister(m.right().node())); 950 g.UseDoubleRegister(m.right().node()));
951 } 951 }
952 } 952 }
953 953
954 } // namespace compiler 954 } // namespace compiler
955 } // namespace internal 955 } // namespace internal
956 } // namespace v8 956 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698