[code-reflection] RFR: 8374550: API for casting Value to Op.Result and Block.Parameter

Ruby Chen duke at openjdk.org
Mon Jan 5 21:03:46 UTC 2026


This PR adds two methods, `Value::result()` and `Value::parameter()`, which cast a given Value as a Op.Result or Block.Parameter. If the cast fails, the two methods throw an IllegalStateException.

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

Commit messages:
 - API for casting Value to Op.Result and Block.Parameter

Changes: https://git.openjdk.org/babylon/pull/816/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=816&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8374550
  Stats: 22 lines in 1 file changed: 22 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/babylon/pull/816.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/816/head:pull/816

PR: https://git.openjdk.org/babylon/pull/816


More information about the babylon-dev mailing list