Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index e3c45c4ac6a5ac90e36da322e086dc0f21b18854..882608dd1421b084239d843c05a00e3ba4183407 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10929,7 +10929,10 @@ void Code::Disassemble(const char* name, OStream& os) { // NOLINT |
os << "Instructions (size = " << instruction_size() << ")\n"; |
// TODO(svenpanne) The Disassembler should use streams, too! |
- Disassembler::Decode(stdout, this); |
+ { |
+ CodeTracer::Scope trace_scope(GetIsolate()->GetCodeTracer()); |
+ Disassembler::Decode(trace_scope.file(), this); |
+ } |
os << "\n"; |
if (kind() == FUNCTION) { |