Very surprised that I've got a huge benefit from stack map feature of Java 6.
I'm trying to do some dataflow analysis over compiled Groovy classes, and what I've found in ASM 3.1 is that it comes with method visitor for doing this for me. I've just added some partial evaluation for constants (for almost kinds of JVM instructions with a constant as their operand) and when the visitor visits method instruction, like INVOKESTATIC, I've got type information of each wrapped arguments (Groovy uses Object[] to hold them for dispatching the call with ScriptBytecodeAdapter).
Now my new unwrapping meta-method algorithm is blazing fast. Thanks ASM guys !!.
Sunday, January 13, 2008
Dataflow Analysis with ASM 3.1 and StackMap
Posted by chanwit at 2:04 AM
Labels: bytecode, Groovy, Optimisation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment