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

Unified Diff: runtime/vm/stub_code.cc

Issue 1147303002: Support untagged object pool entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 5 years, 7 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/stub_code.cc
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
index 2f41ba0b4f2285ee9c979a098a74b427e6323f36..38fd62391a7aa19689137751429d770a84474b83 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -156,6 +156,9 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
DisassembleToStdout formatter;
stub.Disassemble(&formatter);
ISL_Print("}\n");
+ const ObjectPool& object_pool = ObjectPool::Handle(
+ Instructions::Handle(stub.instructions()).object_pool());
+ object_pool.DebugPrint();
}
stub.set_entry_patch_pc_offset(entry_patch_offset);
stub.set_patch_code_pc_offset(patch_code_offset);
@@ -190,6 +193,9 @@ RawCode* StubCode::Generate(const char* name,
DisassembleToStdout formatter;
code.Disassemble(&formatter);
ISL_Print("}\n");
+ const ObjectPool& object_pool = ObjectPool::Handle(
+ Instructions::Handle(code.instructions()).object_pool());
+ object_pool.DebugPrint();
}
return code.raw();
}

Powered by Google App Engine
This is Rietveld 408576698