Commit 83febb1d authored by verwaest's avatar verwaest Committed by Commit bot

Move has_arguments_parameter_ to DeclarationScope

BUG=v8:5209

Review-Url: https://codereview.chromium.org/2265903003
Cr-Commit-Position: refs/heads/master@{#38786}
parent 33d4a31c
......@@ -178,6 +178,7 @@ void DeclarationScope::SetDefaults() {
has_simple_parameters_ = true;
asm_module_ = false;
asm_function_ = false;
has_arguments_parameter_ = false;
receiver_ = nullptr;
new_target_ = nullptr;
function_ = nullptr;
......@@ -209,7 +210,6 @@ void Scope::SetDefaults() {
scope_calls_eval_ = false;
scope_uses_super_property_ = false;
has_arguments_parameter_ = false;
scope_nonlinear_ = false;
is_hidden_ = false;
is_debug_evaluate_scope_ = false;
......
......@@ -504,8 +504,6 @@ class Scope: public ZoneObject {
bool scope_calls_eval_ : 1;
// This scope uses "super" property ('super.foo').
bool scope_uses_super_property_ : 1;
// This scope has a parameter called "arguments".
bool has_arguments_parameter_ : 1;
// This scope's declarations might not be executed in order (e.g., switch).
bool scope_nonlinear_ : 1;
bool is_hidden_ : 1;
......@@ -855,6 +853,8 @@ class DeclarationScope : public Scope {
bool asm_module_ : 1;
// This scope's outer context is an asm module.
bool asm_function_ : 1;
// This scope has a parameter called "arguments".
bool has_arguments_parameter_ : 1;
// Info about the parameter list of a function.
int arity_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment