Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a0872c6a2492154f2320c4e9b926c0e4ebf310ec..efcff1dd9c304ff7e0f8b48c6896260f20da1bc6 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7380,6 +7380,7 @@ void JSFunction::MarkForLazyRecompilation() { |
ASSERT(is_compiled() && !IsOptimized()); |
ASSERT(shared()->allows_lazy_compilation() || |
code()->optimizable()); |
+ ASSERT(!shared()->optimization_disabled()); |
Builtins* builtins = GetIsolate()->builtins(); |
ReplaceCode(builtins->builtin(Builtins::kLazyRecompile)); |
} |