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

Side by Side Diff: src/x87/assembler-x87.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
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 // Returns the equivalent of !cc. 232 // Returns the equivalent of !cc.
233 // Negation of the default no_condition (-1) results in a non-default 233 // Negation of the default no_condition (-1) results in a non-default
234 // no_condition value (-2). As long as tests for no_condition check 234 // no_condition value (-2). As long as tests for no_condition check
235 // for condition < 0, this will work as expected. 235 // for condition < 0, this will work as expected.
236 inline Condition NegateCondition(Condition cc) { 236 inline Condition NegateCondition(Condition cc) {
237 return static_cast<Condition>(cc ^ 1); 237 return static_cast<Condition>(cc ^ 1);
238 } 238 }
239 239
240 240
241 // Corresponds to transposing the operands of a comparison. 241 // Commute a condition such that a cond b == b cond' b.
242 inline Condition ReverseCondition(Condition cc) { 242 inline Condition CommuteCondition(Condition cc) {
243 switch (cc) { 243 switch (cc) {
244 case below: 244 case below:
245 return above; 245 return above;
246 case above: 246 case above:
247 return below; 247 return below;
248 case above_equal: 248 case above_equal:
249 return below_equal; 249 return below_equal;
250 case below_equal: 250 case below_equal:
251 return above_equal; 251 return above_equal;
252 case less: 252 case less:
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 private: 1022 private:
1023 Assembler* assembler_; 1023 Assembler* assembler_;
1024 #ifdef DEBUG 1024 #ifdef DEBUG
1025 int space_before_; 1025 int space_before_;
1026 #endif 1026 #endif
1027 }; 1027 };
1028 1028
1029 } } // namespace v8::internal 1029 } } // namespace v8::internal
1030 1030
1031 #endif // V8_X87_ASSEMBLER_X87_H_ 1031 #endif // V8_X87_ASSEMBLER_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698