Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 399ab092a7edb47c7f7e531ecb73a56807a01231..08a250041579e1bbb2a2d766b7e3cea04cb41813 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5377,7 +5377,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() == shared()->code()); |
Kevin Millikin (Chromium)
2010/12/20 12:05:44
For some reason we like to put || on the first lin
antonm
2010/12/20 20:39:24
Done.
|
ReplaceCode(Builtins::builtin(Builtins::LazyRecompile)); |
} |