Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: src/hydrogen.cc

Issue 26419005: Delete dead code from HOptimizedGraphBuilder::VisitCompareOperation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index c25d7a12d1c25707bd54bbd6f2e40afaa237dca6..38ed57503aa6f07292186700b5a3e4abeee741fd 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -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)) {
rossberg 2013/10/15 10:49:18 This case isn't actually entirely dead, since it w
- 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 =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698