Revision: 17214
Author: [email protected]
Date: Tue Oct 15 11:24:37 2013 UTC
Log: Delete dead code from
HOptimizedGraphBuilder::VisitCompareOperation
[email protected]
Review URL: https://codereview.chromium.org/26419005
http://code.google.com/p/v8/source/detail?r=17214
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Mon Oct 14 11:06:15 2013 UTC
+++ /branches/bleeding_edge/src/hydrogen.cc Tue Oct 15 11:24:37 2013 UTC
@@ -8339,24 +8339,6 @@
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 =
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.