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

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: Platform ports and perf bugfix 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 c0c0e477bf8dd65c5a76c4ca79eb3c56cc8417c0..177ab518e44d767196b2c37973e9fa517a24c937 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -912,10 +912,15 @@ void TypeSwitchInfo::TypeSwitchInfoVerify() {
}
+void AllocationSite::AllocationSiteVerify() {
+ CHECK(IsAllocationSite());
+}
+
+
void AllocationSiteInfo::AllocationSiteInfoVerify() {
CHECK(IsAllocationSiteInfo());
- VerifyHeapPointer(payload());
- CHECK(payload()->IsObject());
+ VerifyHeapPointer(allocation_site());
+ CHECK(!site_is_valid() || allocation_site()->IsAllocationSite());
}

Powered by Google App Engine
This is Rietveld 408576698