Code formatting changes.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 17 Oct 2008 09:54:34 +0000 (09:54 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 17 Oct 2008 09:54:34 +0000 (09:54 +0000)
Review URL: http://codereview.chromium.org/7346

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@518 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/codegen.cc

index 6c3a1139a3944a051805e448b28b0fae888f18d6..2078ea7cd9718c78a698f0cd93d9bf17454710c2 100644 (file)
@@ -345,9 +345,10 @@ bool CodeGenerator::CheckForInlineRuntimeCall(CallRuntime* node) {
 }
 
 
-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();
 
@@ -357,8 +358,8 @@ void CodeGenerator::GenerateFastCaseSwitchStatement(
   // 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.
@@ -382,14 +383,15 @@ void CodeGenerator::GenerateFastCaseSwitchStatement(
                                   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());
   }