Revision: 9115
Author:   [email protected]
Date:     Fri Sep  2 02:29:21 2011
Log:      Allow OSR for closures that reference context slots.
Review URL: http://codereview.chromium.org/7812023
http://code.google.com/p/v8/source/detail?r=9115

Modified:
 /branches/bleeding_edge/src/runtime-profiler.cc

=======================================
--- /branches/bleeding_edge/src/runtime-profiler.cc     Wed Jul 13 02:09:04 2011
+++ /branches/bleeding_edge/src/runtime-profiler.cc     Fri Sep  2 02:29:21 2011
@@ -115,10 +115,8 @@
   }

   SharedFunctionInfo* shared = function->shared();
- // If the code is not optimizable or references context slots, don't try OSR. - if (!shared->code()->optimizable() | | !shared->allows_lazy_compilation()) {
-    return;
-  }
+  // If the code is not optimizable, don't try OSR.
+  if (!shared->code()->optimizable()) return;

   // We are not prepared to do OSR for a function that already has an
   // allocated arguments object.  The optimized code would bypass it for

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

Reply via email to