Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 7bf95a0dbd29193a2ecf3dd639ef4eb369029d49..dcf5690c9acf22d727b4e9d9817156074eb688c3 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -10323,18 +10323,10 @@ static RawArray* NewDictionary(intptr_t initial_size) { |
} |
-void Library::InitResolvedNamesCache(intptr_t size, |
- SnapshotReader* reader) const { |
+void Library::InitResolvedNamesCache(intptr_t size) const { |
ASSERT(Thread::Current()->IsMutatorThread()); |
- if (reader == NULL) { |
- StorePointer(&raw_ptr()->resolved_names_, |
- HashTables::New<ResolvedNamesMap>(size)); |
- } else { |
- intptr_t len = ResolvedNamesMap::ArrayLengthForNumOccupied(size); |
- *reader->ArrayHandle() ^= reader->NewArray(len); |
- StorePointer(&raw_ptr()->resolved_names_, |
- HashTables::New<ResolvedNamesMap>(*reader->ArrayHandle())); |
- } |
+ StorePointer(&raw_ptr()->resolved_names_, |
+ HashTables::New<ResolvedNamesMap>(size)); |
} |