Index: src/code-stubs.cc |
=================================================================== |
--- src/code-stubs.cc (revision 12497) |
+++ src/code-stubs.cc (working copy) |
@@ -142,7 +142,9 @@ |
} |
Activate(code); |
- ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code)); |
+ ASSERT(!NeedsImmovableCode() || |
+ heap->lo_space()->Contains(code) || |
+ heap->code_space()->FirstPage()->Contains(code->address())); |
return Handle<Code>(code, isolate); |
} |