Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index c545c7e2c4edf6117f353b2727ebceabc4794843..46fa8cc337139fa0089a14b2c79e7b22a6161ed8 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -712,7 +712,8 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
// Get the value from the cell. |
Register result = StoreDescriptor::ValueRegister(); |
- __ Move(result, cell); |
+ Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell); |
+ __ LoadWeakValue(result, weak_cell, &miss); |
__ movp(result, FieldOperand(result, PropertyCell::kValueOffset)); |
// Check for deleted property if property can actually be deleted. |