RFR: 8341272: Factory to create wide iinc instruction with small arguments

Trevor Bond duke at openjdk.org
Tue Dec 9 21:18:09 UTC 2025


Add a new factory method to `IncrementInstruction` that allows the explicit creation of a wide iinc instruction, even with a `slot` and `constant` that could fit into a normal iinc instruction. Previously, only one factory for iinc instructions existed, which inferred the type of instruction needed given the size of `slot` and `constant`. Add additional test cases for the new factory as well. All tier 1 tests and classfile tests have passed with these changes.

-------------

Commit messages:
 - JDK-8341272

Changes: https://git.openjdk.org/jdk/pull/28729/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28729&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341272
  Stats: 71 lines in 4 files changed: 66 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/28729.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28729/head:pull/28729

PR: https://git.openjdk.org/jdk/pull/28729


More information about the core-libs-dev mailing list