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

Unified Diff: runtime/vm/il_printer.cc

Issue 2856543002: Use off-heap data for class check instructions (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: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index fde3ffd26294535166b01b1d322ad1caa3c83d22..a98e5689918aab8fdebd203a3dcc8e2cf874f4f1 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -216,7 +216,8 @@ static void PrintTargetsHelper(BufferFormatter* f,
const Class& cls =
Class::Handle(Isolate::Current()->class_table()->At(range.cid_start));
f->Print("%s", String::Handle(cls.Name()).ToCString());
- f->Print(" cnt:%" Pd " trgt:'%s'", count, target.ToQualifiedCString());
+ f->Print(" cid %" Pd " cnt:%" Pd " trgt:'%s'", range.cid_start, count,
+ target.ToQualifiedCString());
} else {
const Class& cls = Class::Handle(range.target->Owner());
f->Print("cid %" Pd "-%" Pd " %s", range.cid_start, range.cid_end,
@@ -1031,11 +1032,7 @@ void CheckClassIdInstr::PrintOperandsTo(BufferFormatter* f) const {
void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const {
value()->PrintTo(f);
- if (FLAG_display_sorted_ic_data) {
- PrintICDataSortedHelper(f, unary_checks());
- } else {
- PrintICDataHelper(f, unary_checks(), FlowGraphPrinter::kPrintAll);
- }
+ PrintTargetsHelper(f, targets_, FlowGraphPrinter::kPrintAll);
if (IsNullCheck()) {
f->Print(" nullcheck");
}

Powered by Google App Engine
This is Rietveld 408576698