Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 057d0d50e6ffd653f3699c6eae02798a9a27ba9a..d1e94c87a7ebca0e51b01d192c10f097b8775284 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -456,31 +456,6 @@ void BinaryOperation::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) { |
} |
-bool BinaryOperation::ResultOverwriteAllowed() const { |
- switch (op()) { |
- case Token::COMMA: |
- case Token::OR: |
- case Token::AND: |
- return false; |
- case Token::BIT_OR: |
- case Token::BIT_XOR: |
- case Token::BIT_AND: |
- case Token::SHL: |
- case Token::SAR: |
- case Token::SHR: |
- case Token::ADD: |
- case Token::SUB: |
- case Token::MUL: |
- case Token::DIV: |
- case Token::MOD: |
- return true; |
- default: |
- UNREACHABLE(); |
- } |
- return false; |
-} |
- |
- |
static bool IsTypeof(Expression* expr) { |
UnaryOperation* maybe_unary = expr->AsUnaryOperation(); |
return maybe_unary != NULL && maybe_unary->op() == Token::TYPEOF; |