harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [drlvm][inline helper] question on object size for allocation
Date Tue, 25 Dec 2007 05:53:38 GMT
Yes, JIT  looks for classHandle definition and in case if classHandle is
constant 'VMHelper.getTypeSize(classHandle)' is also processed as a
compilation time constant.

On Dec 22, 2007 2:54 PM, Xiao-Feng Li <xiaofeng.li@gmail.com> wrote:

> Hi, I found the new helper design uses following interface for object
> allocation:
>
>    public static Address alloc(Address classHandle) {
>        int objSize = VMHelper.getTypeSize(classHandle);
>        int allocationHandle = VMHelper.getAllocationHandle(classHandle);
>        return alloc(objSize, allocationHandle);
>    }
>
> Is the VMHelper.getTypeSize(classHandle) actually a runtime constant
> known by JIT?
>
> Thanks,
> xiaofeng
>
> --
> http://xiao-feng.blogspot.com
>



-- 
Mikhail Fursov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message