Reviewers: fschneider,

Description:
Add the unary operators ADD and SUB to the code generator selector.


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

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

Affected files:
  M     src/compiler.cc


Index: src/compiler.cc
===================================================================
--- src/compiler.cc     (revision 3645)
+++ src/compiler.cc     (working copy)
@@ -881,7 +881,6 @@
     BAILOUT("call to a lookup slot");
   } else if (fun->AsProperty() != NULL) {
     Property* prop = fun->AsProperty();
-    Literal* literal_key = prop->key()->AsLiteral();
     Visit(prop->obj());
     CHECK_BAILOUT;
     Visit(prop->key());
@@ -931,10 +930,14 @@
     case Token::TYPEOF:
       Visit(expr->expression());
       break;
-    case BIT_NOT:
+    case Token::BIT_NOT:
       BAILOUT("UnaryOperataion: BIT_NOT");
-    case DELETE:
+    case Token::DELETE:
       BAILOUT("UnaryOperataion: DELETE");
+    case Token::ADD:
+      BAILOUT("UnaryOperataion: ADD");
+    case Token::SUB:
+      BAILOUT("UnaryOperataion: SUB");
     default:
       UNREACHABLE();
   }


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

Reply via email to