| 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 10cdb54b40f377ae083462a48e094d5eeb4e78b7..f5bef7495476b6a6d7feb8317fb597866dbe5961 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -782,6 +782,7 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| switch (variable->location()) {
|
| case VariableLocation::UNALLOCATED: {
|
| DCHECK(!variable->binding_needs_init());
|
| + globals_->Add(variable->name(), zone());
|
| FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
|
| DCHECK(!slot.IsInvalid());
|
| globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| @@ -831,6 +832,7 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| Variable* variable = proxy->var();
|
| switch (variable->location()) {
|
| case VariableLocation::UNALLOCATED: {
|
| + globals_->Add(variable->name(), zone());
|
| FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
|
| DCHECK(!slot.IsInvalid());
|
| globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
|
|