| Index: runtime/vm/stub_code.cc
|
| diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
|
| index a6992bffe568575ad7c41b4406fab1ae73e23e74..53a06cba0fe3cc251041c70feaeb81aa8bab4931 100644
|
| --- a/runtime/vm/stub_code.cc
|
| +++ b/runtime/vm/stub_code.cc
|
| @@ -183,20 +183,20 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
|
| isolate->heap()->CollectAllGarbage();
|
| }
|
| }
|
| +#ifndef PRODUCT
|
| if (FLAG_support_disassembler && FLAG_disassemble_stubs) {
|
| LogBlock lb;
|
| THR_Print("Code for allocation stub '%s': {\n", name);
|
| -#ifndef PRODUCT
|
| DisassembleToStdout formatter;
|
| stub.Disassemble(&formatter);
|
| -#endif
|
| THR_Print("}\n");
|
| const ObjectPool& object_pool = ObjectPool::Handle(stub.object_pool());
|
| object_pool.DebugPrint();
|
| }
|
| +#endif // !PRODUCT
|
| }
|
| return stub.raw();
|
| -#endif
|
| +#endif // !DBC
|
| UNIMPLEMENTED();
|
| return Code::null();
|
| }
|
| @@ -229,6 +229,7 @@ RawCode* StubCode::Generate(const char* name,
|
| GenerateStub(&assembler);
|
| const Code& code = Code::Handle(
|
| Code::FinalizeCode(name, &assembler, false /* optimized */));
|
| +#ifndef PRODUCT
|
| if (FLAG_support_disassembler && FLAG_disassemble_stubs) {
|
| LogBlock lb;
|
| THR_Print("Code for stub '%s': {\n", name);
|
| @@ -238,6 +239,7 @@ RawCode* StubCode::Generate(const char* name,
|
| const ObjectPool& object_pool = ObjectPool::Handle(code.object_pool());
|
| object_pool.DebugPrint();
|
| }
|
| +#endif // !PRODUCT
|
| return code.raw();
|
| }
|
|
|
|
|