| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index aac335950cea30f499fba747c4fc5c8ac2fe42d9..bcaed018775c299c9bec05bfe3da5befc52475aa 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -760,6 +760,7 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| DCHECK(!slot.IsInvalid());
|
| globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| globals_->Add(isolate()->factory()->undefined_value(), zone());
|
| + globals_->Add(isolate()->factory()->undefined_value(), zone());
|
| break;
|
| }
|
| case VariableLocation::PARAMETER:
|
| @@ -784,6 +785,12 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
|
| DCHECK(!slot.IsInvalid());
|
| globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| +
|
| + // We need the slot where the literals array lives, too.
|
| + slot = declaration->fun()->LiteralFeedbackSlot();
|
| + DCHECK(!slot.IsInvalid());
|
| + globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| +
|
| Handle<SharedFunctionInfo> function =
|
| Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
|
| // Check for stack-overflow exception.
|
|
|