| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index 51b3009cd091a6ba2b1b0247104b43fb18cb0761..dba374379ed29c1ea36cff48f5eb92fafec3808d 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -778,6 +778,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());
|
| @@ -827,6 +828,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());
|
|
|