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

Unified Diff: src/objects-debug.cc

Issue 1029783003: Populate PrototypeInfo with prototype_object value (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index ed1a53cfff39f9b17eb73f36f234bd60801c0ce6..397c27950e41701851d39cf33af47d38c27724cc 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -882,13 +882,13 @@ void Box::BoxVerify() {
void PrototypeInfo::PrototypeInfoVerify() {
CHECK(IsPrototypeInfo());
- CHECK(prototype_object()->IsJSObject());
+ CHECK(prototype_object()->IsJSObject() || prototype_object()->IsSmi());
if (prototype_users()->IsWeakFixedArray()) {
WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
} else {
CHECK(prototype_users()->IsSmi());
}
- CHECK(validity_cell()->IsCell() || validity_cell()->IsCell());
+ CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
}
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698