Mercurial > hg > truffle
diff graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StringSwitchTest.java @ 14906:f3a5036cc13c
javadoc fixes
javadoc has become stricter in jdk8
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 31 Mar 2014 20:51:09 +0200 |
parents | f705fc04faa5 |
children | 64dcb92ee75a |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StringSwitchTest.java Mon Mar 31 19:07:49 2014 +0200 +++ b/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StringSwitchTest.java Mon Mar 31 20:51:09 2014 +0200 @@ -30,24 +30,24 @@ /** * Tests switch statement with String literal keys. - * + * * Note: In Java bytecode, this example reduces to a LOOKUPSWITCH over int keys because the Java * source compiler generates a call to String.hashcode( ) to convert to int values. - * + * * The HSAIL code generated for this example is a series of cascading compare and branch * instructions for each case of the switch. - * + * * These instruction have the following form: - * - * + * + * * //Check whether the key matches the key constant of the case. Store the result of the compare (0 * or 1) in the control register c0. - * - * cmp_eq $c0 <source register>, <key constant for case statement> - * + * + * cmp_eq $c0 <source register>, <key constant for case statement> + * * //Branch to the corresponding label of that case if there's a match. - * - * cbr $c0 <branch target for that case> + * + * cbr $c0 <branch target for that case> */ public class StringSwitchTest extends GraalKernelTester { @@ -62,7 +62,7 @@ /** * The static "kernel" method we will be testing. This method performs a switch statement over a * String literal key. - * + * * @param out the output array * @param ina the input array of String literal keys * @param gid the parameter used to index into the input and output arrays @@ -133,7 +133,7 @@ /** * Initializes the input and output arrays passed to the run routine. - * + * * @param in the input array */ void setupArrays(String[] in) {