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 1390a4563f6665e546546de3db5729c3412386d7..d3b861bc254b6193f195dedcf7b2a9084d77c9c3 100644 |
--- a/src/ic/mips64/handler-compiler-mips64.cc |
+++ b/src/ic/mips64/handler-compiler-mips64.cc |
@@ -702,7 +702,8 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
// Get the value from the cell. |
Register result = StoreDescriptor::ValueRegister(); |
- __ li(result, Operand(cell)); |
+ Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell); |
+ __ LoadWeakValue(result, weak_cell, &miss); |
__ ld(result, FieldMemOperand(result, Cell::kValueOffset)); |
// Check for deleted property if property can actually be deleted. |