Re:The Emterpreter: Run asm.js code before it can be parsed
by leeoniya on Monday February 23, 2015 @05:14PM
(#9097405)
> some traps will be included in optimised code to capture the cases where types may not be as expected
none of that should matter. if the resulting JIT'd code is faster with the traps than the plain js without them, so be it.
Using previous runs to inform the JIT of expected types is entirely reasonable though, and think various JS implementations already do this.