Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cbfb9203dc05969281f451b425dbd9eda1249cb5..36a8e5c2aabc360e74cb58a40acd35fb6f4ed151 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5399,7 +5399,8 @@ void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { |
void JSFunction::MarkForLazyRecompilation() { |
ASSERT(is_compiled() && !IsOptimized()); |
- ASSERT(shared()->allows_lazy_compilation()); |
+ ASSERT(shared()->allows_lazy_compilation() || |
+ code()->optimizable()); |
ReplaceCode(Builtins::builtin(Builtins::LazyRecompile)); |
} |