Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 78e3e561fc301a67d4eb3ce819013bf1e4b52310..69abc5454f0eea0a4287ed0ca1bca3844e7049da 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -285,16 +285,17 @@ void MacroAssembler::InNewSpace(Register object, |
cmpq(scratch, kScratchRegister); |
j(cc, branch, distance); |
} else { |
- ASSERT(is_int32(static_cast<int64_t>(HEAP->NewSpaceMask()))); |
+ ASSERT(is_int32(static_cast<int64_t>(isolate()->heap()->NewSpaceMask()))); |
intptr_t new_space_start = |
- reinterpret_cast<intptr_t>(HEAP->NewSpaceStart()); |
+ reinterpret_cast<intptr_t>(isolate()->heap()->NewSpaceStart()); |
movq(kScratchRegister, -new_space_start, RelocInfo::NONE64); |
if (scratch.is(object)) { |
addq(scratch, kScratchRegister); |
} else { |
lea(scratch, Operand(object, kScratchRegister, times_1, 0)); |
} |
- and_(scratch, Immediate(static_cast<int32_t>(HEAP->NewSpaceMask()))); |
+ and_(scratch, |
+ Immediate(static_cast<int32_t>(isolate()->heap()->NewSpaceMask()))); |
j(cc, branch, distance); |
} |
} |