| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 6043caa0f47f84ed16c18535eed3f278204b17b3..837c9780c50abe3753ddfd8c86d60a45626405f8 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -1719,19 +1719,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,
|
| @@ -7229,7 +7216,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();
|
| }
|
| @@ -7291,15 +7277,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());
|
|
|