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

Unified Diff: runtime/vm/object.cc

Issue 1151013005: Serialize maps without hashes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: _getIndexSize and name constant Created 5 years, 7 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 | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 14145e174eac03865cd32547993a280831277f5e..d59b81cdce3732aabf69a7443d4ddbf9d7dc2e0f 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -19669,9 +19669,6 @@ typedef EnumIndexHashMap<DefaultHashTraits> EnumIndexDefaultMap;
RawLinkedHashMap* LinkedHashMap::NewDefault(Heap::Space space) {
- // 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);
const Array& data = Array::Handle(Array::New(kInitialIndexSize, space));
const TypedData& index = TypedData::Handle(TypedData::New(
kTypedDataUint32ArrayCid, kInitialIndexSize, space));
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698