Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 12a5d29d21770df1c39b691df66c3654c3f27946..90b092ff3451e1545820503ed4c34a0ee9e6ff0c 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1127,7 +1127,15 @@ void BytecodeGraphBuilder::VisitCreateBlockContext() { |
void BytecodeGraphBuilder::VisitCreateFunctionContext() { |
uint32_t slots = bytecode_iterator().GetUnsignedImmediateOperand(0); |
- const Operator* op = javascript()->CreateFunctionContext(slots); |
+ const Operator* op = |
+ javascript()->CreateFunctionContext(slots, FUNCTION_SCOPE); |
+ Node* context = NewNode(op, GetFunctionClosure()); |
+ environment()->BindAccumulator(context); |
+} |
+ |
+void BytecodeGraphBuilder::VisitCreateEvalContext() { |
+ uint32_t slots = bytecode_iterator().GetUnsignedImmediateOperand(0); |
+ const Operator* op = javascript()->CreateFunctionContext(slots, EVAL_SCOPE); |
Node* context = NewNode(op, GetFunctionClosure()); |
environment()->BindAccumulator(context); |
} |