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

Unified Diff: runtime/vm/stub_code.cc

Issue 1314673008: Migrate logging infrastructure Isolate->Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix test. Created 5 years, 3 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 486531a327fd6d00d69afe28b076a9c2fc17983e..b073e036e817c6d67e1067b79080332b02b9dd06 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -93,11 +93,11 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
stub.set_owner(cls);
cls.set_allocation_stub(stub);
if (FLAG_disassemble_stubs) {
- LogBlock lb(Isolate::Current());
- ISL_Print("Code for allocation stub '%s': {\n", name);
+ LogBlock lb;
+ THR_Print("Code for allocation stub '%s': {\n", name);
DisassembleToStdout formatter;
stub.Disassemble(&formatter);
- ISL_Print("}\n");
+ THR_Print("}\n");
const ObjectPool& object_pool = ObjectPool::Handle(
Instructions::Handle(stub.instructions()).object_pool());
object_pool.DebugPrint();
@@ -131,11 +131,11 @@ RawCode* StubCode::Generate(const char* name,
GenerateStub(&assembler);
const Code& code = Code::Handle(Code::FinalizeCode(name, &assembler));
if (FLAG_disassemble_stubs) {
- LogBlock lb(Isolate::Current());
- ISL_Print("Code for stub '%s': {\n", name);
+ LogBlock lb;
+ THR_Print("Code for stub '%s': {\n", name);
DisassembleToStdout formatter;
code.Disassemble(&formatter);
- ISL_Print("}\n");
+ THR_Print("}\n");
const ObjectPool& object_pool = ObjectPool::Handle(
Instructions::Handle(code.instructions()).object_pool());
object_pool.DebugPrint();
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/thread.h » ('j') | runtime/vm/thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698