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

Unified Diff: src/objects-debug.cc

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some cleanup Created 7 years, 6 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: 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());
}

Powered by Google App Engine
This is Rietveld 408576698