Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 39a57ba80d8ff26963d8dbc03075a943054417e9..1accd627c857483bc05cd8b3cf631d4b970ea748 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -7236,6 +7236,10 @@ class LinkedHashMap : public Instance { |
private: |
FINAL_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap, Instance); |
+ // Keep this in sync with Dart implementation (lib/compact_hash.dart). |
+ static const intptr_t kInitialIndexBits = 3; |
+ static const intptr_t kInitialIndexSize = 1 << (kInitialIndexBits + 1); |
+ |
// Allocate a map, but leave all fields set to null. |
// Used during deserialization (since map might contain itself as key/value). |
static RawLinkedHashMap* NewUninitialized(Heap::Space space = Heap::kNew); |