| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 568e48e412c03f4151f6fb9ae30323efd0a0182b..8012d429e51a092222e8ae4528c4c323af3df23e 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -144,8 +144,11 @@ void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) {
|
| PrintF("]\n");
|
| }
|
|
|
| - // The next call to the function will trigger optimization.
|
| - function->MarkForLazyRecompilation();
|
| + if (FLAG_optimize_in_parallel) {
|
| + function->RecompileInParallel();
|
| + } else {
|
| + function->MarkForLazyRecompilation();
|
| + }
|
| }
|
|
|
|
|
|
|