Skip to content

Commit 99c473c

Browse files
committed
Minor consistency fixes.
1 parent 83deb9d commit 99c473c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/api/Vector128OpsFallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ private static byte[] i64x2_relop(byte[] vecX, byte[] vecY, int vectorOpcode) {
568568
case Bytecode.VECTOR_I64X2_LE_S -> x <= y;
569569
case Bytecode.VECTOR_I64X2_GE_S -> x >= y;
570570
default -> throw CompilerDirectives.shouldNotReachHere();
571-
} ? 0xffff_ffff_ffff_ffffL : 0x0000_0000_0000_0000l;
571+
} ? 0xffff_ffff_ffff_ffffL : 0x0000_0000_0000_0000L;
572572
byteArraySupport.putLong(vecResult, i * Long.BYTES, result);
573573
}
574574
return vecResult;

wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/constants/Instructions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public final class Instructions {
624624
public static final int VECTOR_I16X8_RELAXED_DOT_I8X16_I7X16_S = 0x112;
625625
public static final int VECTOR_I32X4_RELAXED_DOT_I8X16_I7X16_ADD_S = 0x113;
626626

627-
private static String[] decodingTable = new String[256];
627+
private static final String[] DECODING_TABLE = new String[256];
628628

629629
private Instructions() {
630630
}
@@ -643,7 +643,7 @@ private Instructions() {
643643
if (representation.startsWith("atomic") || representation.startsWith("vector")) {
644644
continue;
645645
}
646-
decodingTable[code] = representation;
646+
DECODING_TABLE[code] = representation;
647647
}
648648
}
649649
} catch (IllegalAccessException e) {
@@ -661,7 +661,7 @@ static String rawDecode(byte[] instructions, int offset, int before, int after)
661661
result.append(" ");
662662
}
663663
final int opcode = Byte.toUnsignedInt(instructions[i]);
664-
String representation = decodingTable[opcode];
664+
String representation = DECODING_TABLE[opcode];
665665
result.append(String.format("%03d", opcode)).append(" ").append(representation).append("\n");
666666
}
667667
return result.toString();

0 commit comments

Comments
 (0)