Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 3c0705c7346f532b304357f83d90496af5edc4de..745d2ccfbd0801dedb9fdb71c94098b14d7a731d 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4834,14 +4834,9 @@ void HOptimizedGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) { |
DCHECK(current_block() != NULL); |
DCHECK(current_block()->HasPredecessor()); |
- // We only optimize switch statements with a bounded number of clauses. |
- const int kCaseClauseLimit = 128; |
ZoneList<CaseClause*>* clauses = stmt->cases(); |
int clause_count = clauses->length(); |
ZoneList<HBasicBlock*> body_blocks(clause_count, zone()); |
- if (clause_count > kCaseClauseLimit) { |
- return Bailout(kSwitchStatementTooManyClauses); |
- } |
CHECK_ALIVE(VisitForValue(stmt->tag())); |
Add<HSimulate>(stmt->EntryId()); |