Index: src/ic/mips64/handler-compiler-mips64.cc |
diff --git a/src/ic/mips64/handler-compiler-mips64.cc b/src/ic/mips64/handler-compiler-mips64.cc |
index a64b9440f59f40011266ad4c12d09b40f9fcaa0e..bfebaea7eebd8d5acc7c0a6689dd5e30231b5c12 100644 |
--- a/src/ic/mips64/handler-compiler-mips64.cc |
+++ b/src/ic/mips64/handler-compiler-mips64.cc |
@@ -198,7 +198,8 @@ void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
Register scratch, Label* miss) { |
Handle<Cell> cell = JSGlobalObject::EnsurePropertyCell(global, name); |
DCHECK(cell->value()->IsTheHole()); |
- __ li(scratch, Operand(cell)); |
+ Handle<WeakCell> weak_cell = masm->isolate()->factory()->NewWeakCell(cell); |
+ __ LoadWeakValue(scratch, weak_cell, miss); |
__ ld(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); |
__ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
__ Branch(miss, ne, scratch, Operand(at)); |