| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index fd8a56aa21a23bc9bc017bcc7688c8392c7b658d..4023d1d3528e7cb41c144beb575aa6e06b355f74 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -933,6 +933,7 @@ void AstGraphBuilder::VisitVariableDeclaration(VariableDeclaration* decl) {
|
| DCHECK(!slot.IsInvalid());
|
| globals()->push_back(handle(Smi::FromInt(slot.ToInt()), isolate()));
|
| globals()->push_back(isolate()->factory()->undefined_value());
|
| + globals()->push_back(isolate()->factory()->undefined_value());
|
| break;
|
| }
|
| case VariableLocation::PARAMETER:
|
| @@ -968,6 +969,12 @@ void AstGraphBuilder::VisitFunctionDeclaration(FunctionDeclaration* decl) {
|
| FeedbackVectorSlot slot = decl->proxy()->VariableFeedbackSlot();
|
| DCHECK(!slot.IsInvalid());
|
| globals()->push_back(handle(Smi::FromInt(slot.ToInt()), isolate()));
|
| +
|
| + // We need the slot where the literals array lives, too.
|
| + slot = decl->fun()->LiteralFeedbackSlot();
|
| + DCHECK(!slot.IsInvalid());
|
| + globals()->push_back(handle(Smi::FromInt(slot.ToInt()), isolate()));
|
| +
|
| globals()->push_back(function);
|
| break;
|
| }
|
|
|