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
This commit is contained in:
parent
4389c29cce
commit
82c0fec545
@ -7873,6 +7873,11 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
|
|||||||
code()->ClearInlineCaches();
|
code()->ClearInlineCaches();
|
||||||
code()->set_profiler_ticks(0);
|
code()->set_profiler_ticks(0);
|
||||||
set_ic_age(new_ic_age);
|
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);
|
set_opt_count(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user