summaryrefslogtreecommitdiffstats
path: root/src/scopes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scopes.h')
-rw-r--r--src/scopes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scopes.h b/src/scopes.h
index d315b7e5..174dbdbf 100644
--- a/src/scopes.h
+++ b/src/scopes.h
@@ -369,13 +369,16 @@ class Scope: public ZoneObject {
bool AllowsLazyCompilation() const;
// True if we can lazily recompile functions with this scope.
- bool allows_lazy_recompilation() const {
- return !force_eager_compilation_;
- }
+ bool AllowsLazyRecompilation() const;
// True if the outer context of this scope is always the global context.
bool HasTrivialOuterContext() const;
+ // True if this scope is inside a with scope and all declaration scopes
+ // between them have empty contexts. Such declaration scopes become
+ // invisible during scope info deserialization.
+ bool TrivialDeclarationScopesBeforeWithScope() const;
+
// The number of contexts between this and scope; zero if this == scope.
int ContextChainLength(Scope* scope);