| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index fec1460e8f21b82c3afe841402accd825d748ed9..4ec6f1964af547e0d527748eae720376d4479b8b 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -8043,8 +8043,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyRecompile) {
|
| ASSERT(args.length() == 1);
|
| Handle<JSFunction> function = args.at<JSFunction>(0);
|
|
|
| - function->shared()->set_profiler_ticks(0);
|
| -
|
| // If the function is not compiled ignore the lazy
|
| // recompilation. This can happen if the debugger is activated and
|
| // the function is returned to the not compiled state.
|
| @@ -8067,6 +8065,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyRecompile) {
|
| function->ReplaceCode(function->shared()->code());
|
| return function->code();
|
| }
|
| + function->shared()->code()->set_profiler_ticks(0);
|
| if (JSFunction::CompileOptimized(function,
|
| AstNode::kNoNumber,
|
| CLEAR_EXCEPTION)) {
|
|
|