Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index b135a9c6705bb8866ae0d66b3c1f34ff79d526d5..ab17eb5b4f6e2b1ffc0b996cbe345269fc25dcde 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -673,7 +673,11 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
function_info->allows_lazy_compilation() && |
!function_info->optimization_disabled() && |
!isolate()->DebuggerHasBreakPoints()) { |
- result->MarkForLazyRecompilation(); |
+ if (FLAG_parallel_recompilation) { |
+ result->MarkForParallelRecompilation(); |
+ } else { |
+ result->MarkForLazyRecompilation(); |
+ } |
} |
return result; |
} |