ifvms.js
ifvms.js copied to clipboard
acceleration and asm.js
It should be possible to use asm.js for a lot of the JIT code.
- [ ] Add a system to mark JIT functions as safe or unsafe
- [ ] Recompile safe functions to call safe functions directly, avoiding the overhead of .call() and .ret()
- [ ] The opcodes will need to be able to produce two sets of code, for normal use, and for asm.js (or perhaps try to use asm.js compatible code for all situations)
- [ ] Memory and stacks need to be combined into a single typed array buffer. Would this be beneficial for non-asm.js code too?
Idea: use a tree structure with events to track and update JIT code as functions are marked safe or unsafe
When we have Glulx and can run some performance tests, compare using the real DataView functions compared to overwriting with manual byte accessing functions.