ifvms.js icon indicating copy to clipboard operation
ifvms.js copied to clipboard

acceleration and asm.js

Open curiousdannii opened this issue 11 years ago • 2 comments

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?

curiousdannii avatar Mar 31 '13 04:03 curiousdannii

Idea: use a tree structure with events to track and update JIT code as functions are marked safe or unsafe

curiousdannii avatar Jan 12 '17 23:01 curiousdannii

When we have Glulx and can run some performance tests, compare using the real DataView functions compared to overwriting with manual byte accessing functions.

curiousdannii avatar Jul 15 '17 12:07 curiousdannii