Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 2b066aeab6796e57747bc640443af8ced850cb88..6234f4a908b62f64bd81d024f3defe3cd27f28b6 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -964,8 +964,10 @@ void BytecodeGraphBuilder::VisitCreateCatchContext() { |
void BytecodeGraphBuilder::VisitCreateWithContext() { |
Node* object = |
environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); |
+ Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::cast( |
+ bytecode_iterator().GetConstantForIndexOperand(1)); |
- const Operator* op = javascript()->CreateWithContext(); |
+ const Operator* op = javascript()->CreateWithContext(scope_info); |
Node* context = NewNode(op, object, environment()->LookupAccumulator()); |
environment()->BindAccumulator(context); |
} |