Bug 1028580: remove multi-line comment warning; r=Ms2ger
authorBenjamin Bouvier <benj@benj.me>
Fri, 25 Jul 2014 10:21:50 +0200
changeset 196041 e0f5ea8e90824b57ddc494c15a463ad47ef8d71f
parent 196040 934d518c24e8ddc7901633c9c0d0f4bb50026b18
child 196042 bd4287c1407015d9b86f418c81da2f5b85236a59
push id46770
push userbenj@benj.me
push dateFri, 25 Jul 2014 08:22:25 +0000
treeherdermozilla-inbound@e0f5ea8e9082 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
bugs1028580
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1028580: remove multi-line comment warning; r=Ms2ger
js/src/jit/IonAnalysis.cpp
--- a/js/src/jit/IonAnalysis.cpp
+++ b/js/src/jit/IonAnalysis.cpp
@@ -169,26 +169,28 @@ MaybeFoldConditionBlock(MIRGraph &graph,
 {
     // Optimize the MIR graph to improve the code generated for conditional
     // operations. A test like 'if (a ? b : c)' normally requires four blocks,
     // with a phi for the intermediate value. This can be improved to use three
     // blocks with no phi value, and if either b or c is constant,
     // e.g. 'if (a ? b : 0)', then the block associated with that constant
     // can be eliminated.
 
-    // Look for a diamond pattern:
-    //
-    //       initialBlock
-    //         /     \
-    // trueBranch  falseBranch
-    //         \     /
-    //        testBlock
-    //
-    // Where testBlock contains only a test on a phi combining two values
-    // pushed onto the stack by trueBranch and falseBranch.
+    /*
+     * Look for a diamond pattern:
+     *
+     *        initialBlock
+     *          /     \
+     *  trueBranch  falseBranch
+     *          \     /
+     *         testBlock
+     *
+     * Where testBlock contains only a test on a phi combining two values
+     * pushed onto the stack by trueBranch and falseBranch.
+     */
 
     MInstruction *ins = initialBlock->lastIns();
     if (!ins->isTest())
         return;
     MTest *initialTest = ins->toTest();
 
     MBasicBlock *trueBranch = initialTest->ifTrue();
     if (trueBranch->numPredecessors() != 1 || trueBranch->numSuccessors() != 1)