Index: src/codegen.cc |
=================================================================== |
--- src/codegen.cc (revision 554) |
+++ src/codegen.cc (working copy) |
@@ -379,14 +379,18 @@ |
} |
} |
- GenerateFastCaseSwitchJumpTable(node, min_index, range, fail_label, |
- case_targets, case_labels); |
+ GenerateFastCaseSwitchJumpTable(node, |
+ min_index, |
+ range, |
+ fail_label, |
+ Vector<Label*>(*case_targets, range), |
+ Vector<Label>(*case_labels, length)); |
} |
void CodeGenerator::GenerateFastCaseSwitchCases( |
SwitchStatement* node, |
- SmartPointer<Label>& case_labels) { |
+ Vector<Label> case_labels) { |
ZoneList<CaseClause*>* cases = node->cases(); |
int length = cases->length(); |