Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index bac274c31a6797465207eaf2141fa65c1fd4a988..44da473f7b0eb9ae943f1f9aceb5f405854708fc 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1142,7 +1142,10 @@ Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, |
masm_.GetCode(&desc); |
Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject()); |
#ifdef ENABLE_DISASSEMBLER |
- if (FLAG_print_code_stubs) code->Disassemble(name); |
+ if (FLAG_print_code_stubs) { |
+ CodeTracer::Scope trace_scope(isolate()->GetCodeTracer()); |
+ code->Disassemble(name, trace_scope.file()); |
+ } |
#endif |
return code; |
} |