Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index b271b027f9c111bcddd380edce7d29590e29a5ec..a6365149ef9831537438f23007ed32252f1f37f6 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -860,7 +860,9 @@ RegExpEngine::CompilationResult RegExpCompiler::Assemble( |
if (reg_exp_too_big_) return IrregexpRegExpTooBig(); |
Handle<Object> code = macro_assembler_->GetCode(pattern); |
- |
+ if (FLAG_print_code) { |
+ Handle<Code>::cast(code)->Disassemble(*pattern->ToCString()); |
+ } |
work_list_ = NULL; |
#ifdef DEBUG |
if (FLAG_trace_regexp_assembler) { |