Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 753d522d6f6d8d00556781f21bd44d552c005a5f..c039e40c93317668b25bed72c6c743a4e40abba7 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -151,7 +151,7 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
isolate->factory()->NewCode(desc, flags, masm->CodeObject(), |
false, is_crankshafted, |
info->prologue_offset(), |
- info->is_debug()); |
+ info->is_debug() && !is_crankshafted); |
isolate->counters()->total_compiled_code_size()->Increment( |
code->instruction_size()); |
isolate->heap()->IncrementCodeGeneratedBytes(is_crankshafted, |