News for hackers. Stuff that matters.
Re:The Emterpreter: Run asm.js code before it can be parsed by aardvark179 on Monday February 23, 2015 @05:06PM (#9097366)
Possibly, but the types by a VM are rarely guaranteed to be completely accurate (some traps will be included in optimised code to capture the cases where types may not be as expected). They may only be true for the particular input data, other other libraries used, or stuff like that.

Using previous runs to inform the JIT of expected types is entirely reasonable though, and think various JS implementations already do this.

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.