Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index d522419c2155103281491453dad8fd769ef7ccde..603f15173dfc6829d58375912f8be47d41ba6a0b 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1140,7 +1140,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); |
} |