Where does the code model stored in the class file

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Dec 1 10:12:38 UTC 2025


Hi Nadeesh,
the translation strategy has morphed a little... now all the code models 
are generated into a separate static nested class -- in this case: 
build/hat-example-mandel-1.0.classes/mandel/Main$$CM.class

We did this to limit the size of the generated code by sharing common 
code patterns among all the code models in a class (see 
https://git.openjdk.org/babylon/pull/679)

Hope this helps
Maurizio

On 29/11/2025 00:26, nadeesh t v wrote:
> Hello,
> IIRC some of the talks,  code models are stored in class files. But 
> when I have inspected the class file of one of the example 
> <https://github.com/openjdk/babylon/blob/code-reflection/hat/docs/hat-01-03-building-hat.md>s from 
> HAT using *javap*, I have not seen that in the class file.
>
> javap -c -v build/hat-example-mandel-1.0.classes/mandel/Main.class
>
>
> Have I overlooked the class file or is it not in the class file?
>
> -- 
> Thanks and Regards,
> Nadeesh TV
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/babylon-dev/attachments/20251201/86604397/attachment.htm>


More information about the babylon-dev mailing list