Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index 3a3d91599c3ea045893f7b0ef773c6533499ed5a..1f3f2a172ab5196c8a9dfe98216ec2350d41b50f 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -1150,7 +1150,9 @@ RegExpEngine::CompilationResult RegExpCompiler::Assemble( |
work_list_ = NULL; |
#ifdef DEBUG |
if (FLAG_print_code) { |
- Handle<Code>::cast(code)->Disassemble(*pattern->ToCString()); |
+ CodeTracer::Scope trace_scope(heap->isolate()->GetCodeTracer()); |
+ Handle<Code>::cast(code)->Disassemble(*pattern->ToCString(), |
+ trace_scope.file()); |
} |
if (FLAG_trace_regexp_assembler) { |
delete macro_assembler_; |