Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 0713ac98669186eaba4e3e7deaeda739b3e7a392..1746e40b254b4c87c286de91ac6baeefd8a1d10f 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1311,7 +1311,11 @@ void BytecodeGraphBuilder::BuildCastOperator(const Operator* js_op) { |
} |
void BytecodeGraphBuilder::VisitToName() { |
- BuildCastOperator(javascript()->ToName()); |
+ FrameStateBeforeAndAfter states(this); |
+ Node* value = |
+ NewNode(javascript()->ToName(), environment()->LookupAccumulator()); |
+ environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), value, |
+ &states); |
} |
void BytecodeGraphBuilder::VisitToObject() { |