RFR: 8292203: AArch64: Represent Registers as values [v2]

Andrew Haley aph at openjdk.org
Mon Aug 15 10:44:25 UTC 2022


On Mon, 15 Aug 2022 10:37:00 GMT, Quan Anh Mai <duke at openjdk.org> wrote:

> > Pointer-based representation is kept to avoid massive migration of users (from `->` to `.`) and to enable incremental migration on per-platform basis (pointer-based representation is assumed in shared code).
> 
> I don't really understand this part. Can we overload the `->` operator instead? I believe this works:
> 
> ```
> Register* operator->() {
>     return this;
> }

I tried something like that before, and got poor code quality.

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

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


More information about the shenandoah-dev mailing list