Reviewers: Kevin Millikin,

Message:
Simple change to support empty statements.

Description:
Support empty statements in the fast compiler.


Please review this at http://codereview.chromium.org/313003

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

Affected files:
   M     src/compiler.cc
   M     src/fast-codegen.cc


Index: src/compiler.cc
===================================================================
--- src/compiler.cc     (revision 3101)
+++ src/compiler.cc     (working copy)
@@ -525,9 +525,7 @@
  }


-void CodeGenSelector::VisitEmptyStatement(EmptyStatement* stmt) {
-  BAILOUT("EmptyStatement");
-}
+void CodeGenSelector::VisitEmptyStatement(EmptyStatement* stmt) {}


  void CodeGenSelector::VisitIfStatement(IfStatement* stmt) {
Index: src/fast-codegen.cc
===================================================================
--- src/fast-codegen.cc (revision 3101)
+++ src/fast-codegen.cc (working copy)
@@ -192,7 +192,8 @@


  void FastCodeGenerator::VisitEmptyStatement(EmptyStatement* stmt) {
-  UNREACHABLE();
+  Comment cmnt(masm_, "[ EmptyStatement");
+  SetStatementPosition(stmt);
  }





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

Reply via email to