Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 4008181bad410dcc32881cb571bf2318a316cf1b..9f2bb42669d6d8b8da261995577168047972d252 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -888,10 +888,17 @@ void TypeSwitchInfo::TypeSwitchInfoVerify() { |
} |
+void AllocationSite::AllocationSiteVerify() { |
+ CHECK(IsAllocationSite()); |
+} |
+ |
+ |
void AllocationSiteInfo::AllocationSiteInfoVerify() { |
CHECK(IsAllocationSiteInfo()); |
VerifyHeapPointer(payload()); |
- CHECK(payload()->IsObject()); |
+ // TODO(mvstanton): remove the IsJSGlobalPropertyCell check when |
+ // constructed arrays uses the site too. |
+ CHECK(payload()->IsAllocationSite() || payload()->IsJSGlobalPropertyCell()); |
} |