Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: src/scopes.cc

Issue 10121007: Allow more functions to be lazy compiled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scopes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698