| 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 5e80dd32807ad947aea50ea20423bbd2e77274e1..502886c677ea2711264b27f4e64414d76eab7315 100644
|
| --- a/src/full-codegen/ia32/full-codegen-ia32.cc
|
| +++ b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| @@ -731,6 +731,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());
|
| @@ -779,6 +780,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());
|
|
|