| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 9fe36bcce89e84cd04dcffd116456cc75e224c38..f564f13bea920c2e176254c21172b7a696444beb 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -4400,7 +4400,7 @@ bool HOptimizedGraphBuilder::BuildGraph() {
|
| return false;
|
| }
|
|
|
| - Scope* scope = current_info()->scope();
|
| + DeclarationScope* scope = current_info()->scope();
|
| SetUpScope(scope);
|
|
|
| // Add an edge to the body entry. This is warty: the graph's start
|
| @@ -4605,8 +4605,7 @@ HInstruction* HOptimizedGraphBuilder::PreProcessCall(Instruction* call) {
|
| return call;
|
| }
|
|
|
| -
|
| -void HOptimizedGraphBuilder::SetUpScope(Scope* scope) {
|
| +void HOptimizedGraphBuilder::SetUpScope(DeclarationScope* scope) {
|
| HEnvironment* prolog_env = environment();
|
| int parameter_count = environment()->parameter_count();
|
| ZoneList<HValue*> parameters(parameter_count, zone());
|
| @@ -4692,7 +4691,7 @@ void HOptimizedGraphBuilder::VisitBlock(Block* stmt) {
|
| if (scope != NULL) {
|
| if (scope->NeedsContext()) {
|
| // Load the function object.
|
| - Scope* declaration_scope = scope->DeclarationScope();
|
| + DeclarationScope* declaration_scope = scope->GetDeclarationScope();
|
| HInstruction* function;
|
| HValue* outer_context = environment()->context();
|
| if (declaration_scope->is_script_scope() ||
|
| @@ -12782,7 +12781,7 @@ HEnvironment::HEnvironment(HEnvironment* outer,
|
| push_count_(0),
|
| ast_id_(BailoutId::None()),
|
| zone_(zone) {
|
| - Scope* declaration_scope = scope->DeclarationScope();
|
| + DeclarationScope* declaration_scope = scope->GetDeclarationScope();
|
| Initialize(declaration_scope->num_parameters() + 1,
|
| declaration_scope->num_stack_slots(), 0);
|
| }
|
|
|