Delete dead code from HOptimizedGraphBuilder::VisitCompareOperation
R=rossberg@chromium.org Review URL: https://codereview.chromium.org/26419005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17214 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
cf2aea3ea1
commit
1d580b4fd0
@ -8339,24 +8339,6 @@ void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) {
|
||||
New<HStringCompareAndBranch>(left, right, op);
|
||||
result->set_position(expr->position());
|
||||
return ast_context()->ReturnControl(result, expr->id());
|
||||
} else if (combined_type->NumClasses() == 1 && Token::IsEqualityOp(op)) {
|
||||
BuildCheckHeapObject(left);
|
||||
BuildCheckMap(left, combined_type->Classes().Current());
|
||||
BuildCheckHeapObject(right);
|
||||
BuildCheckMap(right, combined_type->Classes().Current());
|
||||
HCompareObjectEqAndBranch* result =
|
||||
New<HCompareObjectEqAndBranch>(left, right);
|
||||
result->set_position(expr->position());
|
||||
return ast_context()->ReturnInstruction(result, expr->id());
|
||||
} else if (combined_type->Is(Type::Receiver()) && Token::IsEqualityOp(op)) {
|
||||
BuildCheckHeapObject(left);
|
||||
AddInstruction(HCheckInstanceType::NewIsSpecObject(left, zone()));
|
||||
BuildCheckHeapObject(right);
|
||||
AddInstruction(HCheckInstanceType::NewIsSpecObject(right, zone()));
|
||||
HCompareObjectEqAndBranch* result =
|
||||
New<HCompareObjectEqAndBranch>(left, right);
|
||||
result->set_position(expr->position());
|
||||
return ast_context()->ReturnInstruction(result, expr->id());
|
||||
} else {
|
||||
if (combined_rep.IsTagged() || combined_rep.IsNone()) {
|
||||
HCompareGeneric* result =
|
||||
|
Loading…
Reference in New Issue
Block a user