mozilla / shumway

Shumway is a Flash VM and runtime written in JavaScript
Apache License 2.0
3.68k stars 396 forks source link

Method Inlining #908

Open mbebenita opened 11 years ago

mbebenita commented 11 years ago

We could rely on TM to do inlining of JITed code for us, but we can do a better job ourselves at the AVM2 level.

cpeterso commented 10 years ago

@mbebenita: is method inlining really an M2 blocker?

mbebenita commented 10 years ago

No. Part of the reason I have't done it is that i'm relying on the JS engine to do the inlining for me. We may get some performance improvement for inlining simple getters / setters though.

tschneidereit commented 10 years ago

On Fri, Feb 28, 2014 at 12:20 PM, Michael Bebenita <notifications@github.com

wrote:

No. Part of the reason I have't done it is that i'm relying on the JS engine to do the inlining for me. We may get some performance improvement for inlining simple getters / setters though.

If that turns out to be useful, we could also make the intrinsic available in the ShumwayWorker that enables setting hints like "should be inlined" on functions.