Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 59a836062b86fe57cd120f4a50a9418144e2fd1d..b31328bc7a58b1ee82d6ce8198b8d15757410290 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -5395,7 +5395,7 @@ void MacroAssembler::JumpIfWhite(Register value, Register bitmap_scratch, |
} |
-void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) { |
+void MacroAssembler::CheckEnumCache(Label* call_runtime) { |
Label next, start; |
Register empty_fixed_array_value = r8; |
LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); |
@@ -5436,10 +5436,11 @@ void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) { |
bind(&no_elements); |
movp(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); |
- cmpp(rcx, null_value); |
+ CompareRoot(rcx, Heap::kNullValueRootIndex); |
j(not_equal, &next); |
} |
+ |
void MacroAssembler::TestJSArrayForAllocationMemento( |
Register receiver_reg, |
Register scratch_reg, |