Re:Shift.js: Swift to JavaScript Transpiler
by comex on Saturday November 07, 2015 @06:56AM
(#10524527)
Because JITs are able to generate code that optimistically assumes variables have certain types (with appropriate deoptimization checks), which is much less expensive than performing full dynamic lookups on every single operation.
Have one field be an enum of its actual type. Or something along these lines.
I don't see why this is any more difficult than a normal jit that also doesnt have type information.