Reviewers: Rico,

Description:
When aborting optimization attempts for a function, make sure
to clear any eager optimizing hints in the compilation cache.

Please review this at http://codereview.chromium.org/6681031/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/compiler.cc


Index: src/compiler.cc
===================================================================
--- src/compiler.cc     (revision 7153)
+++ src/compiler.cc     (working copy)
@@ -172,6 +172,7 @@
   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();


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to