Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 401a1cfa9bb3f4c58134c319ff86516658163d54..b45a52e03a9da2007aed2248699f6a428208a5f6 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1146,6 +1146,14 @@ void BytecodeGraphBuilder::VisitCreateFunctionContext() { |
environment()->BindAccumulator(context); |
} |
+void BytecodeGraphBuilder::VisitCreateEvalContext() { |
+ uint32_t slots = bytecode_iterator().GetUnsignedImmediateOperand(0); |
+ // TODO(littledan): Make an eval context, not a function context |
+ const Operator* op = javascript()->CreateFunctionContext(slots); |
+ Node* context = NewNode(op, GetFunctionClosure()); |
+ environment()->BindAccumulator(context); |
+} |
+ |
void BytecodeGraphBuilder::VisitCreateCatchContext() { |
interpreter::Register reg = bytecode_iterator().GetRegisterOperand(0); |
Node* exception = environment()->LookupRegister(reg); |