| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 84e6a8c54290245472306de55e9088a30f6cb317..8c37900729442f71041bfde6bead492ad21d09d8 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -1717,19 +1717,6 @@ HValue* HGraphBuilder::BuildCloneShallowArray(HValue* boilerplate,
|
| }
|
|
|
|
|
| -HInstruction* HGraphBuilder::BuildUnaryMathOp(
|
| - HValue* input, Handle<Type> type, Token::Value operation) {
|
| - ASSERT_EQ(Token::BIT_NOT, operation);
|
| - // We only handle the numeric cases here
|
| - type = handle(
|
| - Type::Intersect(type, handle(Type::Number(), isolate())), isolate());
|
| - if (type->Is(Type::None())) {
|
| - Add<HDeoptimize>(Deoptimizer::SOFT);
|
| - }
|
| - return New<HBitNot>(input);
|
| -}
|
| -
|
| -
|
| void HGraphBuilder::BuildCompareNil(
|
| HValue* value,
|
| Handle<Type> type,
|
| @@ -7227,7 +7214,6 @@ void HOptimizedGraphBuilder::VisitUnaryOperation(UnaryOperation* expr) {
|
| case Token::DELETE: return VisitDelete(expr);
|
| case Token::VOID: return VisitVoid(expr);
|
| case Token::TYPEOF: return VisitTypeof(expr);
|
| - case Token::BIT_NOT: return VisitBitNot(expr);
|
| case Token::NOT: return VisitNot(expr);
|
| default: UNREACHABLE();
|
| }
|
| @@ -7289,15 +7275,6 @@ void HOptimizedGraphBuilder::VisitTypeof(UnaryOperation* expr) {
|
| }
|
|
|
|
|
| -void HOptimizedGraphBuilder::VisitBitNot(UnaryOperation* expr) {
|
| - CHECK_ALIVE(VisitForValue(expr->expression()));
|
| - Handle<Type> operand_type = expr->expression()->bounds().lower;
|
| - HValue* value = TruncateToNumber(Pop(), &operand_type);
|
| - HInstruction* instr = BuildUnaryMathOp(value, operand_type, Token::BIT_NOT);
|
| - return ast_context()->ReturnInstruction(instr, expr->id());
|
| -}
|
| -
|
| -
|
| void HOptimizedGraphBuilder::VisitNot(UnaryOperation* expr) {
|
| if (ast_context()->IsTest()) {
|
| TestContext* context = TestContext::cast(ast_context());
|
|
|