Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index d472143c136190f63b9babafda1018baaa8088da..ae8a0b58ba87939a2adf6eb2298826082843cb27 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -849,7 +849,7 @@ void RelocInfo::Verify() { |
CHECK(addr != NULL); |
// Check that we can find the right code object. |
Code* code = Code::GetCodeFromTargetAddress(addr); |
- Object* found = HEAP->FindCodeObject(addr); |
+ Object* found = code->GetIsolate()->FindCodeObject(addr); |
CHECK(found->IsCode()); |
CHECK(code->address() == HeapObject::cast(found)->address()); |
break; |