Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index f32f407a8dd2fb43878161d302bc3aabf35b8620..438ef5006d879fcbe5c542ffe140ffea720ed8b4 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -78,7 +78,8 @@ void Assembler::emit_code_target(Handle<Code> target, |
void Assembler::emit_runtime_entry(Address entry, RelocInfo::Mode rmode) { |
DCHECK(RelocInfo::IsRuntimeEntry(rmode)); |
RecordRelocInfo(rmode); |
- emitl(static_cast<uint32_t>(entry - isolate()->code_range()->start())); |
+ emitl(static_cast<uint32_t>( |
+ entry - isolate()->heap()->memory_allocator()->code_range()->start())); |
} |
@@ -299,7 +300,8 @@ Handle<Object> Assembler::code_target_object_handle_at(Address pc) { |
Address Assembler::runtime_entry_at(Address pc) { |
- return Memory::int32_at(pc) + isolate()->code_range()->start(); |
+ return Memory::int32_at(pc) + |
+ isolate()->heap()->memory_allocator()->code_range()->start(); |
} |
// ----------------------------------------------------------------------------- |