Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 1ca0b7ec8645223c974af7462d7f29158f0b1462..ab220838893099e1c9a07fbd808225b6e30951f2 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1106,12 +1106,14 @@ void BytecodeGraphBuilder::VisitPopContext() { |
void BytecodeGraphBuilder::VisitCreateClosure() { |
Handle<SharedFunctionInfo> shared_info = Handle<SharedFunctionInfo>::cast( |
bytecode_iterator().GetConstantForIndexOperand(0)); |
+ int const slot_id = bytecode_iterator().GetIndexOperand(1); |
+ VectorSlotPair pair = CreateVectorSlotPair(slot_id); |
PretenureFlag tenured = |
interpreter::CreateClosureFlags::PretenuredBit::decode( |
- bytecode_iterator().GetFlagOperand(1)) |
+ bytecode_iterator().GetFlagOperand(2)) |
? TENURED |
: NOT_TENURED; |
- const Operator* op = javascript()->CreateClosure(shared_info, tenured); |
+ const Operator* op = javascript()->CreateClosure(shared_info, pair, tenured); |
Node* closure = NewNode(op); |
environment()->BindAccumulator(closure); |
} |