For termware:
>
> I've some questions about the language runtime you implement :
> 1) Do you use another library than ASM to generate bytecodes ?

 Yes:  JDK  (JSR 199 in JDK6)
We generate  java stubs which later compiled to bytecode by JDK Java
compiler,
than insert JSR45 stubs into generated classes.
(And we generate bytecodes only in debug mode)

> 2) Do you generate bytecodes at runtime ?

  Yes.

>     - Do you use your own classloader ?

 Yes.

>     - Do you use java.lang.instrument ?
>

 No.

> cheers,
> Rémi
>
> ------------------------------------------------------------------------------------------
> The generated now looks like to that:
>
> // an array of method handle with volatile semantic
> private static final MethodHandleArray $handles=
>   new MethodHandleArray(1);
>
>     private static Locus $initLocus0() {
>         return Locus.make(handles, 0,
>               TestGenerated.class,"test", void.class, new
> Class<?>[]{Object.class, String.class});
>     }
>
>     private static void $adapterLocus0(MethodHandle handle, Object o,
> Object o2) {
>         ((OOVInterface)handle).invoke(o, o2);
>     }
>
>     public static void main(String[] args) {
>         TestGenerated test=new TestGenerated();
>         String arg = "hello invokedynamic";
>         MethodHandle target = $handles.get(0); // get method handle at
> call site 0
>         if ($locus1.target == null) {
>             Linkage.bootstrapInvokeDynamic($initLocus0(), test, arg);
>         } else {
>             $adapterLocus0(target, test, arg);
>         }
>     }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to