| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 3bfb10f80e8afc4e15ff2cbd9012f41d2f403823..6c0512cccb167a74c59cc1729f31094851483db0 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -1908,7 +1908,17 @@ void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) {
|
|
|
| void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
|
| Register value = ToRegister(instr->InputAt(0));
|
| - __ mov(Operand::Cell(instr->hydrogen()->cell()), value);
|
| + Operand cell_operand = Operand::Cell(instr->hydrogen()->cell());
|
| +
|
| + // If the cell we are storing to contains the hole it could have
|
| + // been deleted from the property dictionary. In that case, we need
|
| + // to update the property details in the property dictionary to mark
|
| + // it as no longer deleted. We deoptimize in that case.
|
| + __ cmp(cell_operand, Factory::the_hole_value());
|
| + DeoptimizeIf(equal, instr->environment());
|
| +
|
| + // Store the value.
|
| + __ mov(cell_operand, value);
|
| }
|
|
|
|
|
|
|