Review URL: http://codereview.chromium.org/
7812023
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9115
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
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