}
-void CodeGenerator::GenerateFastCaseSwitchStatement(
- SwitchStatement *node, int min_index, int range, int default_index) {
-
+void CodeGenerator::GenerateFastCaseSwitchStatement(SwitchStatement* node,
+ int min_index,
+ int range,
+ int default_index) {
ZoneList<CaseClause*>* cases = node->cases();
int length = cases->length();
// Label per switch case
SmartPointer<Label> case_labels(NewArray<Label>(length));
- Label* fail_label = (default_index >= 0 ? &(case_labels[default_index])
- : node->break_target());
+ Label* fail_label = default_index >= 0 ? &(case_labels[default_index])
+ : node->break_target();
// Populate array of label pointers for each number in the range.
// Initally put the failure label everywhere.
case_targets, case_labels);
}
-void CodeGenerator::GenerateFastCaseSwitchCases(
- SwitchStatement* node, SmartPointer<Label> &case_labels) {
+void CodeGenerator::GenerateFastCaseSwitchCases(
+ SwitchStatement* node,
+ SmartPointer<Label>& case_labels) {
ZoneList<CaseClause*>* cases = node->cases();
int length = cases->length();
for (int i = 0; i < length; i++) {
- Comment cmnt(masm(), "[ case clause");
+ Comment cmnt(masm(), "[ Case clause");
masm()->bind(&(case_labels[i]));
VisitStatements(cases->at(i)->statements());
}