Index: runtime/vm/globals.h |
diff --git a/runtime/vm/globals.h b/runtime/vm/globals.h |
index f5eef18dcb9b89ca7d997165126c3a8c854668b0..9b1e89c306a0d4f60f793799c790fb44024cac03 100644 |
--- a/runtime/vm/globals.h |
+++ b/runtime/vm/globals.h |
@@ -27,6 +27,11 @@ const intptr_t kSmiBits = kBitsPerWord - 2; |
const intptr_t kSmiMax = (static_cast<intptr_t>(1) << kSmiBits) - 1; |
const intptr_t kSmiMin = -(static_cast<intptr_t>(1) << kSmiBits); |
+// Hard coded from above but for 32-bit architectures. |
+const intptr_t kSmiBits32 = kBitsPerInt32 - 2; |
+const intptr_t kSmiMax32 = (static_cast<intptr_t>(1) << kSmiBits32) - 1; |
+const intptr_t kSmiMin32 = -(static_cast<intptr_t>(1) << kSmiBits32); |
+ |
#define kPosInfinity bit_cast<double>(DART_UINT64_C(0x7ff0000000000000)) |
#define kNegInfinity bit_cast<double>(DART_UINT64_C(0xfff0000000000000)) |