Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Release of ASM4
Rémi Forax <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
On 08/05/2011 07:57 PM, Jess Holle wrote: > On 8/5/2011 12:22 PM, Rémi Forax wrote: >> On 08/05/2011 05:41 PM, Jess Holle wrote: >>> I guess I've not tried to move my code to ASM4 yet, but I would have >>> assumed that if I'm doing limited transformations whereby I pass >>> most constants, etc, through, that my visitor/adapter wouldn't have >>> to change at all. >>> >>> [I'm essentially just doing "around" advice like AspectJ, but >>> without the overhead, etc, of AspectJ.] >> >> BTW, you could implement "around" advice without generating any bytecode >> using invokedynamic and MethodHandles.foldArguments(). >> >> see >> http://code.google.com/p/jsr292-cookbook/source/browse/trunk/interceptors/src/jsr292/cookbook/interceptors/Interceptors.java > Hmmmm..... I'll have to check that out -- when I can rely on Java 7. > > I'd still need ASM to intercept the call, though, right? Yes, you have to rewrite the call to an invokedynamic, but this transformation doesn't grow the size of the bytecode so it should less disturb the JIT* * not totally true here because currently the Hostspot server JIT considers invokedynamic as an opaque call when doing the escape analysis, It will be fix the the update of the JDK7. > > -- > Jess Holle > Rémi
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws