Chromium Code Reviews| Index: src/scopes.cc |
| diff --git a/src/scopes.cc b/src/scopes.cc |
| index 6f6032a320d30bbd2d9b7a572c77671f2eb61967..af8423423f6c52d39bfdce78d7ab0ccdeec0ac98 100644 |
| --- a/src/scopes.cc |
| +++ b/src/scopes.cc |
| @@ -630,6 +630,11 @@ bool Scope::AllocateVariables(CompilationInfo* info, |
| bool Scope::AllowsLazyCompilation() const { |
| + return !force_eager_compilation_; |
| +} |
| + |
| + |
| +bool Scope::AllowsLazyCompilationForNative() const { |
| return !force_eager_compilation_ && HasTrivialOuterContext(); |
| } |