On Fri, 31 Oct 2025 16:42:37 GMT, Hannes Greule <[email protected]> wrote:

> I definitely like to see easier ways to construct method handles for specific 
> operators, mainly the mathematical ones.
> 
> Some you've currently included are already present in `MethodHandles`, e.g., 
> `arrayElementGetter` and `arrayElementSetter` for the array store and load 
> bytecodes. `throwException` exists as well. You could also argue that 
> `zero(void.class)` can be used as a nop.
> 
> The increment and decrement bytecodes are also somewhat weird, because you 
> can't really observe them this way.
> 
> The conversion opcodes (x2y) can also be represented using `identity(x)` + 
> `asType((x)y)`, but more explicit representation of that might be interesting.

Hmm. I do expect a few iterations on this PR before the set of 
operations/methods converges. I've added links to related elements in 
`MethodHandles` thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/28081#issuecomment-3474878695

Reply via email to