diff options
| author | Ben Murdoch <benm@google.com> | 2012-05-24 09:23:34 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-24 09:23:34 -0700 |
| commit | 6331c683f5e6a2a3400ccbdafc79920e0f44593b (patch) | |
| tree | befbd35746223bac3b9ffc4429fb936f97966f57 /src/scopes.h | |
| parent | 21eaa3b0abc4562dac0be1acebe2fdf35335e752 (diff) | |
| parent | 4768e9d22b13edbae2ae177109420028748bf872 (diff) | |
| download | android_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.h | 9 |
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); |
