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 |