Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 97365e0d582aa0c0a4b1ea894edfebe7800039de..4250de18c9459dd5bb8ba387c7204b81f1618473 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -611,6 +611,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
if (result->ic_age() != HEAP->global_ic_age()) { |
result->ResetForNewContext(HEAP->global_ic_age()); |
} |
+ result->code()->MakeYoung(); |
} |
if (result.is_null()) isolate->ReportPendingMessages(); |
@@ -672,6 +673,7 @@ Handle<SharedFunctionInfo> Compiler::CompileEval(Handle<String> source, |
if (result->ic_age() != HEAP->global_ic_age()) { |
result->ResetForNewContext(HEAP->global_ic_age()); |
} |
+ result->code()->MakeYoung(); |
} |
return result; |