When aborting optimization attempts for a function, make sure

to clear any eager optimizing hints in the compilation cache.
Review URL: http://codereview.chromium.org/6681031

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7154 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kasperl@chromium.org 2011-03-14 11:26:19 +00:00
parent f6e1b82fd4
commit e94a5f909e

View File

@ -172,6 +172,7 @@ static void AbortAndDisable(CompilationInfo* info) {
ASSERT(code->kind() == Code::FUNCTION);
code->set_optimizable(false);
info->SetCode(code);
CompilationCache::MarkForLazyOptimizing(info->closure());
if (FLAG_trace_opt) {
PrintF("[disabled optimization for: ");
info->closure()->PrintName();