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

Unified Diff: src/ast/scopes.h

Issue 2009963002: [modules] Disable HTML-like comments Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Unify behavior for optimized and non-optimized executions Created 4 years, 7 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 | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index d767a33de05a285ab9b97112ca1f7ff4acabb7d8..a41f3e85dbae7ea7db57e1ac54ab7ba7bf371d20 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -343,6 +343,9 @@ class Scope: public ZoneObject {
// Is this scope inside a with statement.
bool inside_with() const { return scope_inside_with_; }
+ // Is this scope inside ECMAScript module code.
+ bool inside_module() const { return scope_inside_module_; }
+
// Does this scope access "arguments".
bool uses_arguments() const { return scope_uses_arguments_; }
// Does this scope access "super" property (super.foo).
@@ -639,6 +642,8 @@ class Scope: public ZoneObject {
//
// This scope is inside a 'with' of some outer scope.
bool scope_inside_with_;
+ // This scope is inside ECMAScript module code
+ bool scope_inside_module_;
// This scope or a nested catch scope or with scope contain an 'eval' call. At
// the 'eval' call site this scope is the declaration scope.
bool scope_calls_eval_;
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698