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

Unified Diff: runtime/vm/object.h

Issue 2026643004: Don't overload FreeListElement for become. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 30cc72d28048467bf8a0342987bb51cb3a229403..984a718d1b86a73f2b9edda5a31e25d5de47eaaf 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -8521,6 +8521,7 @@ DART_FORCE_INLINE void Object::SetRaw(RawObject* value) {
intptr_t cid = value->GetClassId();
// Free-list elements cannot be wrapped in a handle.
siva 2016/06/02 00:23:36 Update comment (Free List and Forwarding corpse) e
ASSERT(cid != kFreeListElement);
+ ASSERT(cid != kForwardingCorpse);
if (cid >= kNumPredefinedCids) {
cid = kInstanceCid;
}

Powered by Google App Engine
This is Rietveld 408576698