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

Unified Diff: src/interpreter/bytecode-generator.cc

Issue 2209573002: Separate Scope into DeclarationScope and Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move has_simple_parameters_ to DeclarationScope 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
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index 7a1a7a051154bf4c583f4a02460b1f61be3bc5fe..61b63a6dea9f95e2e0995dc355aa66151520471b 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -3051,7 +3051,7 @@ void BytecodeGenerator::VisitNewLocalFunctionContext() {
}
void BytecodeGenerator::VisitBuildLocalActivationContext() {
- Scope* scope = this->scope();
+ DeclarationScope* scope = this->scope();
if (scope->has_this_declaration() && scope->receiver()->IsContextSlot()) {
Variable* variable = scope->receiver();
@@ -3200,7 +3200,8 @@ void BytecodeGenerator::VisitNewTargetVariable(Variable* variable) {
void BytecodeGenerator::VisitFunctionClosureForContext() {
AccumulatorResultScope accumulator_execution_result(this);
- Scope* closure_scope = execution_context()->scope()->ClosureScope();
+ DeclarationScope* closure_scope =
+ execution_context()->scope()->GetClosureScope();
if (closure_scope->is_script_scope() ||
closure_scope->is_module_scope()) {
// Contexts nested in the native context have a canonical empty function as

Powered by Google App Engine
This is Rietveld 408576698