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
This commit is contained in:
parent
0b2632fae8
commit
e6576f0938
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user