| Index: src/handles.cc
|
| diff --git a/src/handles.cc b/src/handles.cc
|
| index 7b76e923fab6e087c8150df0a39597c16d9b90c2..01464016be22312625a4eaa42fe91d3656acc9bc 100644
|
| --- a/src/handles.cc
|
| +++ b/src/handles.cc
|
| @@ -773,6 +773,7 @@ bool CompileLazy(Handle<JSFunction> function,
|
| ClearExceptionFlag flag) {
|
| if (function->shared()->is_compiled()) {
|
| function->set_code(function->shared()->code());
|
| + function->shared()->set_code_age(0);
|
| return true;
|
| } else {
|
| CompilationInfo info(function, 0, receiver);
|
| @@ -788,6 +789,7 @@ bool CompileLazyInLoop(Handle<JSFunction> function,
|
| ClearExceptionFlag flag) {
|
| if (function->shared()->is_compiled()) {
|
| function->set_code(function->shared()->code());
|
| + function->shared()->set_code_age(0);
|
| return true;
|
| } else {
|
| CompilationInfo info(function, 1, receiver);
|
|
|