[code-reflection] Integrated: Implement bitwise/shift assignment operations

Hannes Greule hgreule at openjdk.org
Thu May 16 19:24:23 UTC 2024


On Wed, 15 May 2024 07:53:31 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> This change adds support for compound assignments for bitwise operations and shift operations. Tests are also enhanced to cover those cases.
> 
> As with already existing operations, input types `byte`, `char`,  `short` are not converted to `int`. Again, we have the special case of shift operations where the spec dictates unary promotion. That's why currently the rhs is promoted to `int` even in shift compound assignments.
> 
> The additional methods in `InvokableLeafOps` are needed in the current design.

This pull request has now been integrated.

Changeset: dd4adba1
Author:    Hannes Greule <hgreule at openjdk.org>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/dd4adba1afa1cc7845cbf7c85299743b79460d40
Stats:     283 lines in 4 files changed: 258 ins; 1 del; 24 mod

Implement bitwise/shift assignment operations

Reviewed-by: psandoz

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

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


More information about the babylon-dev mailing list