From e6576f0938dc97000b7dc236f3212fbd3cd2ecb3 Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Fri, 9 Mar 2012 09:04:39 +0000 Subject: [PATCH] Revert r10435 and r10923 because of failures. r10435 CL: http://codereview.chromium.org/9195005 r10923 CL: https://chromiumcodereview.appspot.com/9601010 R=fschneider@chromium.org Review URL: https://chromiumcodereview.appspot.com/9653025 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10974 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/flag-definitions.h | 2 +- src/hydrogen.cc | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 4b5ae580b6..c62e18d401 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -168,7 +168,7 @@ DEFINE_bool(use_osr, true, "use on-stack replacement") DEFINE_bool(trace_osr, false, "trace on-stack replacement") DEFINE_int(stress_runs, 0, "number of stress runs") DEFINE_bool(optimize_closures, true, "optimize closures") -DEFINE_bool(inline_construct, true, "inline constructor calls") +DEFINE_bool(inline_construct, false, "inline constructor calls") DEFINE_int(loop_weight, 1, "loop weight for representation inference") DEFINE_bool(optimize_for_in, true, diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 18a62c689b..fe23a14765 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