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

Side by Side Diff: src/arm64/constants-arm64.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/arm/constants-arm.h ('k') | src/ia32/assembler-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_CONSTANTS_ARM64_H_ 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_
6 #define V8_ARM64_CONSTANTS_ARM64_H_ 6 #define V8_ARM64_CONSTANTS_ARM64_H_
7 7
8 8
9 // Assert that this is an LP64 system. 9 // Assert that this is an LP64 system.
10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 nv = 15 // Behaves as always/al. 258 nv = 15 // Behaves as always/al.
259 }; 259 };
260 260
261 inline Condition NegateCondition(Condition cond) { 261 inline Condition NegateCondition(Condition cond) {
262 // Conditions al and nv behave identically, as "always true". They can't be 262 // Conditions al and nv behave identically, as "always true". They can't be
263 // inverted, because there is no never condition. 263 // inverted, because there is no never condition.
264 ASSERT((cond != al) && (cond != nv)); 264 ASSERT((cond != al) && (cond != nv));
265 return static_cast<Condition>(cond ^ 1); 265 return static_cast<Condition>(cond ^ 1);
266 } 266 }
267 267
268 // Commute a condition such that a cond b == b cond' b. 268 // Commute a condition such that {a cond b == b cond' a}.
269 inline Condition CommuteCondition(Condition cond) { 269 inline Condition CommuteCondition(Condition cond) {
270 switch (cond) { 270 switch (cond) {
271 case lo: 271 case lo:
272 return hi; 272 return hi;
273 case hi: 273 case hi:
274 return lo; 274 return lo;
275 case hs: 275 case hs:
276 return ls; 276 return ls;
277 case ls: 277 case ls:
278 return hs; 278 return hs;
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 }; 1242 };
1243 1243
1244 enum UnallocatedOp { 1244 enum UnallocatedOp {
1245 UnallocatedFixed = 0x00000000, 1245 UnallocatedFixed = 0x00000000,
1246 UnallocatedFMask = 0x00000000 1246 UnallocatedFMask = 0x00000000
1247 }; 1247 };
1248 1248
1249 } } // namespace v8::internal 1249 } } // namespace v8::internal
1250 1250
1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_ 1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698