Index: src/crankshaft/x87/lithium-x87.cc |
diff --git a/src/crankshaft/x87/lithium-x87.cc b/src/crankshaft/x87/lithium-x87.cc |
index 1844d241179df023f3d5933a5404250de478e67a..2714f55a5575e46106164a6e1a3a0c7fc6502ed5 100644 |
--- a/src/crankshaft/x87/lithium-x87.cc |
+++ b/src/crankshaft/x87/lithium-x87.cc |
@@ -1981,12 +1981,7 @@ LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
LOperand* context = UseRegisterAtStart(instr->value()); |
- LInstruction* result = |
- DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
- if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
- result = AssignEnvironment(result); |
- } |
- return result; |
+ return DefineAsRegister(new (zone()) LLoadContextSlot(context)); |
} |
@@ -2001,11 +1996,7 @@ LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
value = UseRegister(instr->value()); |
temp = NULL; |
} |
- LInstruction* result = new(zone()) LStoreContextSlot(context, value, temp); |
- if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
- result = AssignEnvironment(result); |
- } |
- return result; |
+ return new (zone()) LStoreContextSlot(context, value, temp); |
} |