Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 8910b0784fd8dbc0cd63c97daa83b0fb5febc2fe..41bf297b38799799e5301bd307c08c3dcaa7ea82 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -396,7 +396,7 @@ void Assembler::GrowBuffer() { |
// Some internal data structures overflow for very large buffers, |
// they must ensure that kMaximalBufferSize is not too large. |
if ((desc.buffer_size > kMaximalBufferSize) || |
- (desc.buffer_size > HEAP->MaxOldGenerationSize())) { |
+ (desc.buffer_size > isolate()->heap()->MaxOldGenerationSize())) { |
V8::FatalProcessOutOfMemory("Assembler::GrowBuffer"); |
} |
@@ -1533,7 +1533,7 @@ void Assembler::movq(Register dst, Handle<Object> value, RelocInfo::Mode mode) { |
} else { |
EnsureSpace ensure_space(this); |
ASSERT(value->IsHeapObject()); |
- ASSERT(!HEAP->InNewSpace(*value)); |
+ ASSERT(!isolate()->heap()->InNewSpace(*value)); |
emit_rex_64(dst); |
emit(0xB8 | dst.low_bits()); |
emitp(value.location(), mode); |