Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index b02033cfdfb465c0d72095422f0493787f21a141..22b35943f25e1d3f148fdce3c830e31cb0b10cbb 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1249,6 +1249,7 @@ MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function, |
if (!GetUnoptimizedCodeCommon(&nested).ToHandle(¤t_code)) { |
return MaybeHandle<Code>(); |
} |
+ shared->ReplaceCode(*current_code); |
} |
int compiled_size = shared->end_position() - shared->start_position(); |
isolate->counters()->total_compile_size()->Increment(compiled_size); |