| Index: src/full-codegen/mips/full-codegen-mips.cc | 
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc | 
| index 4599439c81b4dacd5a6ee7e537e29b2b56460c84..5a15fc92016283d7a377314c7d00c3fe835598cd 100644 | 
| --- a/src/full-codegen/mips/full-codegen-mips.cc | 
| +++ b/src/full-codegen/mips/full-codegen-mips.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: | 
| @@ -799,6 +800,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. | 
|  |