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

Side by Side Diff: src/x64/assembler-x64.h

Issue 313283003: Documentation: fix comments for CommuteCondition. (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 | « src/mips/constants-mips.h ('k') | src/x87/assembler-x87.h » ('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 (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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 // Returns the equivalent of !cc. 320 // Returns the equivalent of !cc.
321 // Negation of the default no_condition (-1) results in a non-default 321 // Negation of the default no_condition (-1) results in a non-default
322 // no_condition value (-2). As long as tests for no_condition check 322 // no_condition value (-2). As long as tests for no_condition check
323 // for condition < 0, this will work as expected. 323 // for condition < 0, this will work as expected.
324 inline Condition NegateCondition(Condition cc) { 324 inline Condition NegateCondition(Condition cc) {
325 return static_cast<Condition>(cc ^ 1); 325 return static_cast<Condition>(cc ^ 1);
326 } 326 }
327 327
328 328
329 // Commute a condition such that a cond b == b cond' b. 329 // Commute a condition such that {a cond b == b cond' a}.
330 inline Condition CommuteCondition(Condition cc) { 330 inline Condition CommuteCondition(Condition cc) {
331 switch (cc) { 331 switch (cc) {
332 case below: 332 case below:
333 return above; 333 return above;
334 case above: 334 case above:
335 return below; 335 return below;
336 case above_equal: 336 case above_equal:
337 return below_equal; 337 return below_equal;
338 case below_equal: 338 case below_equal:
339 return above_equal; 339 return above_equal;
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 private: 1581 private:
1582 Assembler* assembler_; 1582 Assembler* assembler_;
1583 #ifdef DEBUG 1583 #ifdef DEBUG
1584 int space_before_; 1584 int space_before_;
1585 #endif 1585 #endif
1586 }; 1586 };
1587 1587
1588 } } // namespace v8::internal 1588 } } // namespace v8::internal
1589 1589
1590 #endif // V8_X64_ASSEMBLER_X64_H_ 1590 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/mips/constants-mips.h ('k') | src/x87/assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698