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

Unified Diff: runtime/vm/snapshot.cc

Issue 1151013005: Serialize maps without hashes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Make assertion actually hold 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
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index d9249db1d39e92b68cd45b38f272bac9b389c73b..8fde1097de1312fab4389c6768b43ff5e628ee01 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -1127,11 +1127,9 @@ void SnapshotReader::ArrayReadFrom(const Array& result,
result.SetTypeArguments(*TypeArgumentsHandle());
bool is_canonical = RawObject::IsCanonical(tags);
- Object& obj = Object::Handle(isolate());
for (intptr_t i = 0; i < len; i++) {
*PassiveObjectHandle() = is_canonical ? ReadObjectImpl() : ReadObjectRef();
- obj = (*PassiveObjectHandle()).raw();
result.SetAt(i, *PassiveObjectHandle());
}
}

Powered by Google App Engine
This is Rietveld 408576698