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

Unified Diff: runtime/vm/globals.h

Issue 343803002: Finishes removing intptr_t from raw object fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
Index: runtime/vm/globals.h
===================================================================
--- runtime/vm/globals.h (revision 39823)
+++ runtime/vm/globals.h (working copy)
@@ -27,6 +27,14 @@
const intptr_t kSmiMax = (static_cast<intptr_t>(1) << kSmiBits) - 1;
const intptr_t kSmiMin = -(static_cast<intptr_t>(1) << kSmiBits);
+const intptr_t kSmi64Bits = 62;
+const int64_t kSmi64Max = (static_cast<int64_t>(1) << kSmi64Bits) - 1;
+const int64_t kSmi64Min = -(static_cast<int64_t>(1) << kSmi64Bits);
+
siva 2014/09/09 16:47:24 I don't see kSMi64Bits being used anywhere?
zra 2014/09/09 17:42:38 Removed.
+const intptr_t kSmi32Bits = 30;
+const int64_t kSmi32Max = (static_cast<int32_t>(1) << kSmi32Bits) - 1;
+const int64_t kSmi32Min = -(static_cast<int32_t>(1) << kSmi32Bits);
+
// The expression ARRAY_SIZE(array) is a compile-time constant of type
// size_t which represents the number of elements of the given
// array. You should only use ARRAY_SIZE on statically allocated

Powered by Google App Engine
This is Rietveld 408576698