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

Unified Diff: runtime/platform/globals.h

Issue 1149943009: Shrink some fields and add some bounds checks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/object.h » ('j') | runtime/vm/raw_object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h
index c4343b5b6de3cd24d8edfbaaf0535648ce9fcc5c..92b2be7b702c65ed7e1be18d03ca7802e899a1bb 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -341,6 +341,9 @@ const int64_t kSignBitDouble = DART_INT64_C(0x8000000000000000);
typedef intptr_t word;
typedef uintptr_t uword;
+// Size of a class id. We may make this 32-bit on 64-bit architectures.
+typedef uint16_t cid_t;
+
// Byte sizes.
const int kWordSize = sizeof(word);
const int kDoubleSize = sizeof(double); // NOLINT
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698