Index: src/scopes.h |
diff --git a/src/scopes.h b/src/scopes.h |
index e1a658aa8e041a3901f9573a93f687d976ca0467..be6705b3243af9bab028861e5229444ced7cf593 100644 |
--- a/src/scopes.h |
+++ b/src/scopes.h |
@@ -362,13 +362,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); |