3 ms·
Presumably the crashes are happening because the instruction set implemented by the JIT is on Pentium II level and so encountering modern X86 instructions makes
by the_mitsuhiko 5y ago
Presumably the crashes are happening because the instruction set implemented by the JIT is on Pentium II level and so encountering modern X86 instructions makes it fail. I am not familiar with the linked project but there is no real reason why you could not emulate a 32bit Intel perfectly in WASM. For 64bit I'm not sure if wasm64 wouldn't be required.
- londons_explore 5y agoI think there are browser-level crashes too because you're using the WASM JIT-compiler in ways it hasn't been thoroughly tested for. The Chromium team is pretty receptive to patches though, so for a big project like this it doesn't seem unreasonable to just patch the browser to perform well enough for your use case, and then upstream the patch so everyone has it within a few months when you're ready to launch your product.
- the_mitsuhiko 5y agoI have done a lot with wasm and I can't say I ran into browser level crashes.