Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 37cb564864f6a15abffaa22450804b6caa13fedb..7bec8be6c5a4edca2da351b5f44937116d4f523e 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1224,6 +1224,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); |