RFR (M): 8003853: specify offset of IC load in java_to_interp stub
Dean Long
dean.long at oracle.com
Tue Apr 23 10:31:20 PDT 2013
Looks good.
dl
On 4/23/2013 1:09 AM, Lindenmaier, Goetz wrote:
>
> Hi all,
>
> In the java_to_interp stub of CompiledStaticCalls one relocation is
> used to find
>
> two code locations:
>
> -the beginning of the stub
>
> -the IC load instruction.
>
> On x86 and sparc, the IC load instruction is the first instruction of
> the stub,
>
> thus both locations have the same address.
>
> On PPC, the IC load instruction is not the first instruction in the
> stub, thus
>
> we must add an offset to the relocation to access it.
>
> As the manipulation of CompiledStaticCalls is in shared code, we
> would have
>
> to introduce platform dependencies there.
>
> This change moves the platform dependent code from CompiledStaticCall
>
> to a new file compiledIC_<cpu>.cpp. It also moves the code issuing the
>
> stub from the ad file to this new file into the class CompiledStaticCall.
>
> This removes redundancies between x86_64.ad and x86_32.ad. Also,
>
> 'extern' declarations in compile.cpp can be replaced by properly typed
>
> Calls to methods in CompiledStaticCall.
>
> Dean Long ran this change through JPRT with status OK (thanks!).
>
> Please review and push this change.
>
> http://cr.openjdk.java.net/~goetz/webrevs/8003853-3/
> <http://cr.openjdk.java.net/%7Egoetz/webrevs/8003853-3/>
>
> Best regards,
>
> Goetz Lindenmaier
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20130423/5e9df42f/attachment.html
More information about the hotspot-compiler-dev
mailing list