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

Unified Diff: runtime/platform/globals.h

Issue 10695009: Add a platform-independent max uword value. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
===================================================================
--- runtime/platform/globals.h (revision 9175)
+++ runtime/platform/globals.h (working copy)
@@ -151,8 +151,10 @@
const int kWordSize = sizeof(word);
#ifdef ARCH_IS_32_BIT
const int kWordSizeLog2 = 2;
+const uword kUwordMax = kMaxUint32;
#else
const int kWordSizeLog2 = 3;
+const uword kUwordMax = kMaxUint64;
#endif
// Bit sizes.
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698