Commit 82c0fec5 authored by ulan@chromium.org's avatar ulan@chromium.org

Reset the optimization_disabled flag in function info after context disposal.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9873022

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11174 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4389c29c
......@@ -7873,6 +7873,11 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
code()->ClearInlineCaches();
code()->set_profiler_ticks(0);
set_ic_age(new_ic_age);
if (optimization_disabled() && opt_count() >= Compiler::kDefaultMaxOptCount) {
// Re-enable optimizations if they were disabled due to opt_count limit.
set_optimization_disabled(false);
code()->set_optimizable(true);
}
set_opt_count(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment