Index: src/ic/arm/handler-compiler-arm.cc |
diff --git a/src/ic/arm/handler-compiler-arm.cc b/src/ic/arm/handler-compiler-arm.cc |
index 778b59e23ef191cc430bf29c3a5161d289869510..5e8cb75450a855e57df620dd6f33dd43431a83fb 100644 |
--- a/src/ic/arm/handler-compiler-arm.cc |
+++ b/src/ic/arm/handler-compiler-arm.cc |
@@ -201,7 +201,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)); |
__ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
__ cmp(scratch, ip); |