Reviewers: Igor Sheludko,

Description:
Paint the tree green after r22666.

[email protected]

Please review this at https://codereview.chromium.org/428903002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -0 lines):
  M src/factory.cc


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() &&


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to