diff options
Diffstat (limited to 'deps/v8/src/arm64/macro-assembler-arm64.cc')
-rw-r--r-- | deps/v8/src/arm64/macro-assembler-arm64.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/v8/src/arm64/macro-assembler-arm64.cc b/deps/v8/src/arm64/macro-assembler-arm64.cc index f674dd53e7..87ea1eb9d5 100644 --- a/deps/v8/src/arm64/macro-assembler-arm64.cc +++ b/deps/v8/src/arm64/macro-assembler-arm64.cc @@ -1571,9 +1571,8 @@ void MacroAssembler::InNewSpace(Register object, Label* branch) { DCHECK(cond == eq || cond == ne); UseScratchRegisterScope temps(this); - const int mask = - (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); - CheckPageFlag(object, temps.AcquireSameSizeAs(object), mask, cond, branch); + CheckPageFlag(object, temps.AcquireSameSizeAs(object), + MemoryChunk::kIsInNewSpaceMask, cond, branch); } @@ -3037,7 +3036,7 @@ void MacroAssembler::Allocate(int object_size, Register scratch2, Label* gc_required, AllocationFlags flags) { - DCHECK(object_size <= Page::kMaxRegularHeapObjectSize); + DCHECK(object_size <= kMaxRegularHeapObjectSize); DCHECK((flags & ALLOCATION_FOLDED) == 0); if (!FLAG_inline_new) { if (emit_debug_code()) { @@ -3196,7 +3195,7 @@ void MacroAssembler::Allocate(Register object_size, Register result, void MacroAssembler::FastAllocate(int object_size, Register result, Register scratch1, Register scratch2, AllocationFlags flags) { - DCHECK(object_size <= Page::kMaxRegularHeapObjectSize); + DCHECK(object_size <= kMaxRegularHeapObjectSize); DCHECK(!AreAliased(result, scratch1, scratch2)); DCHECK(result.Is64Bits() && scratch1.Is64Bits() && scratch2.Is64Bits()); |