summaryrefslogtreecommitdiffstats
path: root/src/scopes.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2012-05-24 09:23:34 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-24 09:23:34 -0700
commit6331c683f5e6a2a3400ccbdafc79920e0f44593b (patch)
treebefbd35746223bac3b9ffc4429fb936f97966f57 /src/scopes.h
parent21eaa3b0abc4562dac0be1acebe2fdf35335e752 (diff)
parent4768e9d22b13edbae2ae177109420028748bf872 (diff)
downloadandroid_external_v8-6331c683f5e6a2a3400ccbdafc79920e0f44593b.tar.gz
android_external_v8-6331c683f5e6a2a3400ccbdafc79920e0f44593b.tar.bz2
android_external_v8-6331c683f5e6a2a3400ccbdafc79920e0f44593b.zip
am 4768e9d2: Merge V8 at 3.9.24.29
* commit '4768e9d22b13edbae2ae177109420028748bf872': Merge V8 at 3.9.24.29
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);