Revision: 3337
Author: [email protected]
Date: Fri Nov 20 03:45:18 2009
Log: Disable the fast top-level compiler for non-global declarations.
Reintroduce the bailout that was put in in revision 3224.

It causes interactive ui test failures in Chromium.

[email protected]
Review URL: http://codereview.chromium.org/421002
http://code.google.com/p/v8/source/detail?r=3337

Modified:
  /branches/bleeding_edge/src/compiler.cc

=======================================
--- /branches/bleeding_edge/src/compiler.cc     Fri Nov 13 05:12:57 2009
+++ /branches/bleeding_edge/src/compiler.cc     Fri Nov 20 03:45:18 2009
@@ -646,8 +646,9 @@


  void CodeGenSelector::VisitDeclaration(Declaration* decl) {
-  if (decl->fun() != NULL) {
-    ProcessExpression(decl->fun(), Expression::kValue);
+  Variable* var = decl->proxy()->var();
+  if (!var->is_global() || var->mode() == Variable::CONST) {
+    BAILOUT("Non-global declaration");
    }
  }


--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to