Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 92b46bae0fb67688e962d68e118741999af3745c..032fdb30b394dcc6d6720dbd33b8962a1b423651 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -193,8 +193,7 @@ Handle<Code> CodeStub::GetCode() { |
} |
Activate(code); |
- DCHECK(!NeedsImmovableCode() || |
- heap->lo_space()->Contains(code) || |
+ DCHECK(!NeedsImmovableCode() || Heap::IsImmovable(code) || |
heap->code_space()->FirstPage()->Contains(code->address())); |
return Handle<Code>(code, isolate()); |
} |