| Index: src/full-codegen/ia32/full-codegen-ia32.cc
|
| diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| index db895c38bb0a8d8ab3ec8a002692255d0340715a..c97d7d6db89bf00b48a4fdc57d86e603e4450184 100644
|
| --- a/src/full-codegen/ia32/full-codegen-ia32.cc
|
| +++ b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| @@ -709,6 +709,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:
|
| @@ -733,6 +734,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.
|
|
|