Index: src/ic/ia32/handler-compiler-ia32.cc |
diff --git a/src/ic/ia32/handler-compiler-ia32.cc b/src/ic/ia32/handler-compiler-ia32.cc |
index f02731e4c20c47002595be341656e80dcc74ef06..90512e9bc8797514b401d0cbe0d32e4b2c98a853 100644 |
--- a/src/ic/ia32/handler-compiler-ia32.cc |
+++ b/src/ic/ia32/handler-compiler-ia32.cc |
@@ -724,12 +724,9 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
FrontendHeader(receiver(), name, &miss); |
// Get the value from the cell. |
Register result = StoreDescriptor::ValueRegister(); |
- if (masm()->serializer_enabled()) { |
- __ mov(result, Immediate(cell)); |
- __ mov(result, FieldOperand(result, PropertyCell::kValueOffset)); |
- } else { |
- __ mov(result, Operand::ForCell(cell)); |
- } |
+ Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell); |
+ __ LoadWeakValue(result, weak_cell, &miss); |
+ __ mov(result, FieldOperand(result, PropertyCell::kValueOffset)); |
// Check for deleted property if property can actually be deleted. |
if (is_configurable) { |