Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index f7cb78f488384cabc9285849d6e70767863c4be0..f627fed144d890839fb87977ca7e330878efd770 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); |
} |