Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 3a627d7465adbeff8e7481955d2ccd07ade8f535..0a26dbe431cafd0db210a40d9d6c454d8ceea196 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -4382,10 +4382,6 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
break; |
} |
- case Token::SUB: |
- EmitUnaryOperation(expr, "[ UnaryOperation (SUB)"); |
- break; |
- |
case Token::BIT_NOT: |
EmitUnaryOperation(expr, "[ UnaryOperation (BIT_NOT)"); |
break; |
@@ -4398,6 +4394,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
void FullCodeGenerator::EmitUnaryOperation(UnaryOperation* expr, |
const char* comment) { |
+ ASSERT_EQ(Token::BIT_NOT, expr->op()); |
// TODO(svenpanne): Allowing format strings in Comment would be nice here... |
Comment cmt(masm_, comment); |
UnaryOpStub stub(expr->op()); |