Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index b614904c9f468ba08708c8a3bb96710598415ab2..758967ec08d875ce5ccab732d4d120366e6a5079 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1750,9 +1750,10 @@ void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { |
builtins_[i] = code; |
#ifdef ENABLE_DISASSEMBLER |
if (FLAG_print_builtin_code) { |
- PrintF("Builtin: %s\n", functions[i].s_name); |
- Code::cast(code)->Disassemble(functions[i].s_name); |
- PrintF("\n"); |
+ CodeTracer::Scope trace_scope(isolate->GetCodeTracer()); |
+ PrintF(trace_scope.file(), "Builtin: %s\n", functions[i].s_name); |
+ Code::cast(code)->Disassemble(functions[i].s_name, trace_scope.file()); |
+ PrintF(trace_scope.file(), "\n"); |
} |
#endif |
} else { |