Chromium Code Reviews

Unified Diff: src/scopes.h

Issue 968263002: [strong] Fix scoping related errors for methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/scopes.h
diff --git a/src/scopes.h b/src/scopes.h
index 186530ceab2ef134b2384ef32e5b9b588ecc182e..1508ce8ab1da81ba8a8f633a504d41d675b39bc0 100644
--- a/src/scopes.h
+++ b/src/scopes.h
@@ -281,6 +281,7 @@ class Scope: public ZoneObject {
bool is_block_scope() const { return scope_type_ == BLOCK_SCOPE; }
bool is_with_scope() const { return scope_type_ == WITH_SCOPE; }
bool is_arrow_scope() const { return scope_type_ == ARROW_SCOPE; }
+ bool is_class_scope() const { return scope_type_ == CLASS_SCOPE; }
bool is_declaration_scope() const {
return is_eval_scope() || is_function_scope() ||
is_module_scope() || is_script_scope();
@@ -658,6 +659,8 @@ class Scope: public ZoneObject {
bool ResolveVariablesRecursively(CompilationInfo* info,
AstNodeFactory* factory);
+ bool CheckStrongModeDeclaration(VariableProxy* proxy, Variable* var);
+
// Scope analysis.
void PropagateScopeInfo(bool outer_scope_calls_sloppy_eval);
bool HasTrivialContext() const;

Powered by Google App Engine