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

Unified Diff: runtime/vm/object.cc

Issue 2161853002: Remove dead full snapshot support from the recursive descent serializer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 5 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 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));
}
« 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