Reviewers: ulan,
Description:
Only compile concurrently if enabled, in %OptimizeFunctionOnNextCall.
[email protected]
BUG=326474
LOG=N
Please review this at https://codereview.chromium.org/106403007/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -1 lines):
M src/runtime.cc
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index
8d84fdace2562f4f6f834940706f298bfdf481a5..d60806c5af7d87160f8e6305f5e004ff30eca59e
100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -8541,7 +8541,8 @@ RUNTIME_FUNCTION(MaybeObject*,
Runtime_OptimizeFunctionOnNextCall) {
unoptimized->set_allow_osr_at_loop_nesting_level(i);
isolate->runtime_profiler()->AttemptOnStackReplacement(*function);
}
- } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("concurrent"))) {
+ } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("concurrent")) &&
+ isolate->concurrent_recompilation_enabled()) {
function->MarkForConcurrentRecompilation();
}
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.