Fix overly aggressive ASSERT(!optimization_disabled())
Review URL: https://chromiumcodereview.appspot.com/9748018 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11097 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
64c96ad9c0
commit
a615abd8d3
@ -7380,7 +7380,6 @@ void JSFunction::MarkForLazyRecompilation() {
|
||||
ASSERT(is_compiled() && !IsOptimized());
|
||||
ASSERT(shared()->allows_lazy_compilation() ||
|
||||
code()->optimizable());
|
||||
ASSERT(!shared()->optimization_disabled());
|
||||
Builtins* builtins = GetIsolate()->builtins();
|
||||
ReplaceCode(builtins->builtin(Builtins::kLazyRecompile));
|
||||
}
|
||||
|
@ -268,6 +268,7 @@ void RuntimeProfiler::OptimizeNow() {
|
||||
|
||||
// Do not record non-optimizable functions.
|
||||
if (!function->IsOptimizable()) continue;
|
||||
if (function->shared()->optimization_disabled()) continue;
|
||||
|
||||
// Only record top-level code on top of the execution stack and
|
||||
// avoid optimizing excessively large scripts since top-level code
|
||||
|
Loading…
Reference in New Issue
Block a user