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

Unified Diff: src/objects-printer.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-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 357d984a13121bca7719693c38fd6c8ec55ce74c..38b763374f3f791251c84831a71f9ef25991adfa 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -1090,8 +1090,8 @@ void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) {
}
-void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
- HeapObject::PrintHeader(out, "AllocationSiteInfo");
+void AllocationSite::AllocationSitePrint(FILE* out) {
+ HeapObject::PrintHeader(out, "AllocationSite");
PrintF(out, " - payload: ");
if (payload()->IsJSGlobalPropertyCell()) {
JSGlobalPropertyCell* cell = JSGlobalPropertyCell::cast(payload());
@@ -1117,6 +1117,13 @@ void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
}
+void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
+ HeapObject::PrintHeader(out, "AllocationSiteInfo");
+ PrintF(out, " - payload: ");
Hannes Payer (out of office) 2013/06/25 16:35:07 Why don't we call payload AllocationSite? That wou
mvstanton 2013/07/02 13:55:11 Done, but the type has to remain object because it
+ AllocationSite::cast(payload())->Print();
+}
+
+
void Script::ScriptPrint(FILE* out) {
HeapObject::PrintHeader(out, "Script");
PrintF(out, "\n - source: ");

Powered by Google App Engine
This is Rietveld 408576698