actionscript-3compiler-optimizationavm2

What kind of optimizations AVM2 supports?


I wonder, what kind of optimizations AVM2 (ActionScript 3 VM) support? I know it uses JIT but does it support Dead Code Elimination, constant folding, inlining, etc.

Also it's very interesting to me that ActionScript compiler also do some optimizations. AFAIK C# compiler does very small set of optimizations (only required for language support), JIT does all the work. And it works very fast.

Thanks.

Thanks to MPD. AVM2 supports:


Solution

  • Take a look at these slides: ActionScript 3.0 and AVM2: Performance Tuning.