| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 18a62c689bd3c5bea3ee9733923bbf4e46367205..fe23a14765ad7eb519fdef030791db3e38114024 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -6654,15 +6654,6 @@ static bool IsLiteralCompareNil(HValue* left,
|
| }
|
|
|
|
|
| -static bool IsLiteralCompareBool(HValue* left,
|
| - Token::Value op,
|
| - HValue* right) {
|
| - return op == Token::EQ_STRICT &&
|
| - ((left->IsConstant() && HConstant::cast(left)->handle()->IsBoolean()) ||
|
| - (right->IsConstant() && HConstant::cast(right)->handle()->IsBoolean()));
|
| -}
|
| -
|
| -
|
| void HGraphBuilder::VisitCompareOperation(CompareOperation* expr) {
|
| ASSERT(!HasStackOverflow());
|
| ASSERT(current_block() != NULL);
|
| @@ -6710,12 +6701,6 @@ void HGraphBuilder::VisitCompareOperation(CompareOperation* expr) {
|
| if (IsLiteralCompareNil(left, op, right, f->null_value(), &sub_expr)) {
|
| return HandleLiteralCompareNil(expr, sub_expr, kNullValue);
|
| }
|
| - if (IsLiteralCompareBool(left, op, right)) {
|
| - HCompareObjectEqAndBranch* result =
|
| - new(zone()) HCompareObjectEqAndBranch(left, right);
|
| - result->set_position(expr->position());
|
| - return ast_context()->ReturnControl(result, expr->id());
|
| - }
|
|
|
| if (op == Token::INSTANCEOF) {
|
| // Check to see if the rhs of the instanceof is a global function not
|
|
|