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

Unified Diff: src/factory.cc

Issue 428903002: Paint the tree green after r22666. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index cbb6ca301a86411bbd101a9eb1fffaaebf0985e2..94da1681af27527728e7a40fb72a681cbe2f56f6 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1373,6 +1373,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
if (isolate()->use_crankshaft() &&
FLAG_always_opt &&
result->is_compiled() &&
+ !info->is_toplevel() &&
// TODO(mstarzinger): Extend to optimization of builtin code.
!isolate()->bootstrapper()->IsActive() &&
info->allows_lazy_compilation() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698