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

Side by Side Diff: src/arm/constants-arm.h

Issue 313083006: Rename ReverseCondition to CommuteCondition, a more standard term. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/arm/lithium-codegen-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_ARM_CONSTANTS_ARM_H_ 5 #ifndef V8_ARM_CONSTANTS_ARM_H_
6 #define V8_ARM_CONSTANTS_ARM_H_ 6 #define V8_ARM_CONSTANTS_ARM_H_
7 7
8 // ARM EABI is required. 8 // ARM EABI is required.
9 #if defined(__arm__) && !defined(__ARM_EABI__) 9 #if defined(__arm__) && !defined(__ARM_EABI__)
10 #error ARM EABI support is required. 10 #error ARM EABI support is required.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 lo = cc // C clear Unsigned lower. 82 lo = cc // C clear Unsigned lower.
83 }; 83 };
84 84
85 85
86 inline Condition NegateCondition(Condition cond) { 86 inline Condition NegateCondition(Condition cond) {
87 ASSERT(cond != al); 87 ASSERT(cond != al);
88 return static_cast<Condition>(cond ^ ne); 88 return static_cast<Condition>(cond ^ ne);
89 } 89 }
90 90
91 91
92 // Corresponds to transposing the operands of a comparison. 92 // Commute a condition such that a cond b == b cond' b.
Jakob Kummerow 2014/06/04 18:04:55 Where by "b", you mean "a", right? :-P
93 inline Condition ReverseCondition(Condition cond) { 93 inline Condition CommuteCondition(Condition cond) {
94 switch (cond) { 94 switch (cond) {
95 case lo: 95 case lo:
96 return hi; 96 return hi;
97 case hi: 97 case hi:
98 return lo; 98 return lo;
99 case hs: 99 case hs:
100 return ls; 100 return ls;
101 case ls: 101 case ls:
102 return hs; 102 return hs;
103 case lt: 103 case lt:
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 static int Number(const char* name, bool* is_double); 741 static int Number(const char* name, bool* is_double);
742 742
743 private: 743 private:
744 static const char* names_[kNumVFPRegisters]; 744 static const char* names_[kNumVFPRegisters];
745 }; 745 };
746 746
747 747
748 } } // namespace v8::internal 748 } } // namespace v8::internal
749 749
750 #endif // V8_ARM_CONSTANTS_ARM_H_ 750 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698