Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 88a5f2229b2f5d200a5b4cfb95d550ea893f1f36..c9385d17b2d3d0e0ab48047e5bf9048f0c225432 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -111,7 +111,8 @@ void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
Register scratch, Label* miss) { |
Handle<Cell> cell = JSGlobalObject::EnsurePropertyCell(global, name); |
DCHECK(cell->value()->IsTheHole()); |
- __ Mov(scratch, Operand(cell)); |
+ Handle<WeakCell> weak_cell = masm->isolate()->factory()->NewWeakCell(cell); |
+ __ LoadWeakValue(scratch, weak_cell, miss); |
__ Ldr(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); |
__ JumpIfNotRoot(scratch, Heap::kTheHoleValueRootIndex, miss); |
} |