Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 3171) |
+++ src/compiler.cc (working copy) |
@@ -849,6 +849,12 @@ |
void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) { |
switch (expr->op()) { |
+ case Token::COMMA: |
+ VisitAsEffect(expr->left()); |
+ CHECK_BAILOUT; |
+ Visit(expr->right()); // Location is the same as the parent location. |
+ break; |
+ |
case Token::OR: |
VisitAsValue(expr->left()); |
CHECK_BAILOUT; |
@@ -857,6 +863,22 @@ |
Visit(expr->right()); |
break; |
+ case Token::ADD: |
+ case Token::SUB: |
+ case Token::DIV: |
+ case Token::MOD: |
+ case Token::MUL: |
+ case Token::BIT_OR: |
+ case Token::BIT_AND: |
+ case Token::BIT_XOR: |
+ case Token::SHL: |
+ case Token::SHR: |
+ case Token::SAR: |
+ VisitAsValue(expr->left()); |
+ CHECK_BAILOUT; |
+ VisitAsValue(expr->right()); |
+ break; |
+ |
default: |
BAILOUT("Unsupported binary operation"); |
} |