[code-reflection] Integrated: Add and/or/xor operations to code model
Hannes Greule
hgreule at openjdk.org
Wed Feb 14 16:55:10 UTC 2024
On Tue, 13 Feb 2024 16:38:15 GMT, Hannes Greule <hgreule at openjdk.org> wrote:
> Adds Ops for `&`, `|`, an `^`. I added some very basic tests for the interpreter and the bytecode.
>
> I also added other missing methds to `InvokableLeafOps`, namely `mod` for floating point types and eq/neq for boolean.
>
> I also noticed that `AddOp` currently models String concatenation, and the Interpreter also has a method for it, but that doesn't work because the method type is erased to Object, so that might require some more work in future.
>
> There are also shifts and some unary operations missing for now, I can work on them in future if you want.
This pull request has now been integrated.
Changeset: ec239acc
Author: Hannes Greule <hgreule at openjdk.org>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/ec239acc07b5178d0e029c9019664326c7bd0d7d
Stats: 304 lines in 6 files changed: 301 ins; 1 del; 2 mod
Add and/or/xor operations to code model
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/babylon/pull/21
More information about the babylon-dev
mailing list