| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 7808551c4ecbb3aacf111e7cee0fbf5a1e8d941d..088612151f343bed44067252db4cdcad19a8bb51 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -2025,13 +2025,12 @@ Variable* Parser::Declare(Declaration* declaration,
|
| // In a var binding in a sloppy direct eval, pollute the enclosing scope
|
| // with this new binding by doing the following:
|
| // The proxy is bound to a lookup variable to force a dynamic declaration
|
| - // using the DeclareLookupSlot runtime function.
|
| + // using the DeclareEvalVar or DeclareEvalFunction runtime functions.
|
| Variable::Kind kind = Variable::NORMAL;
|
| // TODO(sigurds) figure out if kNotAssigned is OK here
|
| var = new (zone()) Variable(declaration_scope, name, mode, kind,
|
| declaration->initialization(), kNotAssigned);
|
| var->AllocateTo(VariableLocation::LOOKUP, -1);
|
| - var->SetFromEval();
|
| resolve = true;
|
| }
|
|
|
| @@ -2051,7 +2050,7 @@ Variable* Parser::Declare(Declaration* declaration,
|
| // same variable if it is declared several times. This is not a
|
| // semantic issue as long as we keep the source order, but it may be
|
| // a performance issue since it may lead to repeated
|
| - // RuntimeHidden_DeclareLookupSlot calls.
|
| + // DeclareEvalVar or DeclareEvalFunction calls.
|
| declaration_scope->AddDeclaration(declaration);
|
|
|
| // If requested and we have a local variable, bind the proxy to the variable
|
|
|