| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 99015c770cd5518296bdd6b44e02acae58114fc2..8404c1cec15440d7611b7975c736ec664b2c0d2f 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -2334,7 +2334,7 @@ HGraph* HGraphBuilder::CreateGraph() {
|
| // Handle implicit declaration of the function name in named function
|
| // expressions before other declarations.
|
| if (scope->is_function_scope() && scope->function() != NULL) {
|
| - HandleDeclaration(scope->function(), CONST, NULL);
|
| + HandleVariableDeclaration(scope->function(), CONST, NULL);
|
| }
|
| VisitDeclarations(scope->declarations());
|
| AddSimulate(AstNode::kDeclarationsId);
|
| @@ -6430,14 +6430,14 @@ void HGraphBuilder::VisitThisFunction(ThisFunction* expr) {
|
| }
|
|
|
|
|
| -void HGraphBuilder::VisitDeclaration(Declaration* decl) {
|
| - HandleDeclaration(decl->proxy(), decl->mode(), decl->fun());
|
| +void HGraphBuilder::VisitVariableDeclaration(VariableDeclaration* decl) {
|
| + HandleVariableDeclaration(decl->proxy(), decl->mode(), decl->fun());
|
| }
|
|
|
|
|
| -void HGraphBuilder::HandleDeclaration(VariableProxy* proxy,
|
| - VariableMode mode,
|
| - FunctionLiteral* function) {
|
| +void HGraphBuilder::HandleVariableDeclaration(VariableProxy* proxy,
|
| + VariableMode mode,
|
| + FunctionLiteral* function) {
|
| Variable* var = proxy->var();
|
| bool binding_needs_init =
|
| (mode == CONST || mode == CONST_HARMONY || mode == LET);
|
|
|