Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index b3336e6eabbce0f7b9d49033035e622b2150cc37..9dcb9d1689841bbb757e52b25da82ad1ad5f0130 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -4921,8 +4921,8 @@ void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) { |
void MacroAssembler::TestJSArrayForAllocationMemento( |
Register receiver_reg, |
- Register scratch_reg) { |
- Label no_memento_available; |
+ Register scratch_reg, |
+ Label* no_memento_found) { |
ExternalReference new_space_start = |
ExternalReference::new_space_start(isolate()); |
ExternalReference new_space_allocation_top = |
@@ -4932,12 +4932,11 @@ void MacroAssembler::TestJSArrayForAllocationMemento( |
JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); |
movq(kScratchRegister, new_space_start); |
cmpq(scratch_reg, kScratchRegister); |
- j(less, &no_memento_available); |
+ j(less, no_memento_found); |
cmpq(scratch_reg, ExternalOperand(new_space_allocation_top)); |
- j(greater, &no_memento_available); |
+ j(greater, no_memento_found); |
CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), |
Heap::kAllocationMementoMapRootIndex); |
- bind(&no_memento_available); |
} |