Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 2e359cfab60ea823fa5441e13391b8f2c82d797e..4d926c4579ac689da819effd730659dc401373c1 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -212,7 +212,8 @@ void FullCodeGenerator::Generate() { |
int num_parameters = info->scope()->num_parameters(); |
int first_parameter = info->scope()->has_this_declaration() ? -1 : 0; |
for (int i = first_parameter; i < num_parameters; i++) { |
- Variable* var = (i == -1) ? scope()->receiver() : scope()->parameter(i); |
+ Variable* var = |
+ (i == -1) ? info->scope()->receiver() : info->scope()->parameter(i); |
if (var->IsContextSlot()) { |
int parameter_offset = StandardFrameConstants::kCallerSPOffset + |
(num_parameters - 1 - i) * kPointerSize; |
@@ -244,7 +245,7 @@ void FullCodeGenerator::Generate() { |
// Possibly set up a local binding to the this function which is used in |
// derived constructors with super calls. |
- Variable* this_function_var = scope()->this_function_var(); |
+ Variable* this_function_var = info->scope()->this_function_var(); |
if (this_function_var != nullptr) { |
Comment cmnt(masm_, "[ This function"); |
if (!function_in_register_a1) { |
@@ -255,7 +256,7 @@ void FullCodeGenerator::Generate() { |
} |
// Possibly set up a local binding to the new target value. |
- Variable* new_target_var = scope()->new_target_var(); |
+ Variable* new_target_var = info->scope()->new_target_var(); |
if (new_target_var != nullptr) { |
Comment cmnt(masm_, "[ new.target"); |
SetVar(new_target_var, a3, a0, a2); |
@@ -263,7 +264,7 @@ void FullCodeGenerator::Generate() { |
// Possibly allocate RestParameters |
int rest_index; |
- Variable* rest_param = scope()->rest_parameter(&rest_index); |
+ Variable* rest_param = info->scope()->rest_parameter(&rest_index); |
if (rest_param) { |
Comment cmnt(masm_, "[ Allocate rest parameter array"); |
if (!function_in_register_a1) { |
@@ -275,7 +276,7 @@ void FullCodeGenerator::Generate() { |
SetVar(rest_param, v0, a1, a2); |
} |
- Variable* arguments = scope()->arguments(); |
+ Variable* arguments = info->scope()->arguments(); |
if (arguments != NULL) { |
// Function uses arguments object. |
Comment cmnt(masm_, "[ Allocate arguments object"); |
@@ -3630,7 +3631,7 @@ void FullCodeGenerator::LoadContextField(Register dst, int context_index) { |
void FullCodeGenerator::PushFunctionArgumentForContextAllocation() { |
- Scope* closure_scope = scope()->ClosureScope(); |
+ DeclarationScope* closure_scope = scope()->GetClosureScope(); |
if (closure_scope->is_script_scope() || |
closure_scope->is_module_scope()) { |
// Contexts nested in the native context have a canonical empty function |