Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: src/full-codegen/x87/full-codegen-x87.cc

Issue 2212383003: Revert of Separate Scope into DeclarationScope and Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/x87/full-codegen-x87.cc
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
index 041092e35e906d909b664766d3b1e815c2bbd901..2e90ca1a8317753496f6541c54f83f787106b199 100644
--- a/src/full-codegen/x87/full-codegen-x87.cc
+++ b/src/full-codegen/x87/full-codegen-x87.cc
@@ -196,8 +196,7 @@
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) ? info->scope()->receiver() : info->scope()->parameter(i);
+ Variable* var = (i == -1) ? scope()->receiver() : scope()->parameter(i);
if (var->IsContextSlot()) {
int parameter_offset = StandardFrameConstants::kCallerSPOffset +
(num_parameters - 1 - i) * kPointerSize;
@@ -228,7 +227,7 @@
// Possibly set up a local binding to the this function which is used in
// derived constructors with super calls.
- Variable* this_function_var = info->scope()->this_function_var();
+ Variable* this_function_var = scope()->this_function_var();
if (this_function_var != nullptr) {
Comment cmnt(masm_, "[ This function");
if (!function_in_register) {
@@ -239,7 +238,7 @@
}
// Possibly set up a local binding to the new target value.
- Variable* new_target_var = info->scope()->new_target_var();
+ Variable* new_target_var = scope()->new_target_var();
if (new_target_var != nullptr) {
Comment cmnt(masm_, "[ new.target");
SetVar(new_target_var, edx, ebx, ecx);
@@ -247,7 +246,7 @@
// Possibly allocate RestParameters
int rest_index;
- Variable* rest_param = info->scope()->rest_parameter(&rest_index);
+ Variable* rest_param = scope()->rest_parameter(&rest_index);
if (rest_param) {
Comment cmnt(masm_, "[ Allocate rest parameter array");
if (!function_in_register) {
@@ -259,7 +258,7 @@
SetVar(rest_param, eax, ebx, edx);
}
- Variable* arguments = info->scope()->arguments();
+ Variable* arguments = scope()->arguments();
if (arguments != NULL) {
// Arguments object must be allocated after the context object, in
// case the "arguments" or ".arguments" variables are in the context.
@@ -3518,7 +3517,7 @@
void FullCodeGenerator::PushFunctionArgumentForContextAllocation() {
- DeclarationScope* closure_scope = scope()->GetClosureScope();
+ Scope* closure_scope = scope()->ClosureScope();
if (closure_scope->is_script_scope() ||
closure_scope->is_module_scope()) {
// Contexts nested in the native context have a canonical empty function
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698