Reviewers: Mads Ager,

Description:
Fix presubmit error by renaming variable names.

Presubmit thinks } followed by newline followed by a variable name
else_* is an if else statement.

Please review this at http://codereview.chromium.org/6864006/

SVN Base: http://v8.googlecode.com/svn/branches/3.0/

Affected files:
  M     src/hydrogen.cc
  M     src/version.cc


Index: src/hydrogen.cc
===================================================================
--- src/hydrogen.cc     (revision 7607)
+++ src/hydrogen.cc     (working copy)
@@ -2901,28 +2901,28 @@


 void HGraphBuilder::VisitConditional(Conditional* expr) {
-  HSubgraph* then_graph = CreateEmptySubgraph();
-  HSubgraph* else_graph = CreateEmptySubgraph();
+  HSubgraph* true_graph = CreateEmptySubgraph();
+  HSubgraph* false_graph = CreateEmptySubgraph();
   VISIT_FOR_CONTROL(expr->condition(),
-                    then_graph->entry_block(),
-                    else_graph->entry_block());
+                    true_graph->entry_block(),
+                    false_graph->entry_block());

   // Visit the true and false subexpressions in the same AST context as the
   // whole expression.
-  then_graph->entry_block()->SetJoinId(expr->ThenId());
-  { SubgraphScope scope(this, then_graph);
+  true_graph->entry_block()->SetJoinId(expr->ThenId());
+  { SubgraphScope scope(this, true_graph);
     Visit(expr->then_expression());
     CHECK_BAILOUT;
   }

-  else_graph->entry_block()->SetJoinId(expr->ElseId());
-  { SubgraphScope scope(this, else_graph);
+  false_graph->entry_block()->SetJoinId(expr->ElseId());
+  { SubgraphScope scope(this, false_graph);
     Visit(expr->else_expression());
     CHECK_BAILOUT;
   }

   if (!ast_context()->IsTest()) {
-    subgraph()->AppendJoin(then_graph, else_graph, expr);
+    subgraph()->AppendJoin(true_graph, false_graph, expr);
   }
 }

Index: src/version.cc
===================================================================
--- src/version.cc      (revision 7607)
+++ src/version.cc      (working copy)
@@ -35,7 +35,7 @@
 #define MAJOR_VERSION     3
 #define MINOR_VERSION     0
 #define BUILD_NUMBER      12
-#define PATCH_LEVEL       38
+#define PATCH_LEVEL       39
 #define CANDIDATE_VERSION false

 // Define SONAME to have the SCons build the put a specific SONAME into the


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to