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

Unified Diff: src/objects.cc

Issue 2811183005: Do not use new struct type where unnecessary. (Closed)
Patch Set: Created 3 years, 8 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.cc
diff --git a/src/objects.cc b/src/objects.cc
index cc8056402d88dc3859facd8fe85e530a686a196c..3cdb0b908026d5dc249006a194d5156b7d95b335 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -14840,7 +14840,11 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
}
#ifdef OBJECT_PRINT
if (!type_feedback_info()->IsUndefined(GetIsolate())) {
- TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os);
+ TypeFeedbackInfo* info = TypeFeedbackInfo::cast(type_feedback_info());
+ HeapObject::PrintHeader(os, "TypeFeedbackInfo");
+ os << "\n - ic_total_count: " << info->ic_total_count()
+ << ", ic_with_type_info_count: " << info->ic_with_type_info_count()
+ << ", ic_generic_count: " << info->ic_generic_count() << "\n";
os << "\n";
}
#endif

Powered by Google App Engine
This is Rietveld 408576698