weixin_39932611 2020-11-21 20:33
浏览 0

[WIP] Development branch for 96-bit VM

This is my current work-in-progress branch for porting the bytecode interpreter to C.

This is a really key architectural change that's supposed to pave the way for adding new language features (e.g. sealed tables), new compiler optimizations (e.g. unboxed FFI pointers), and new ports (less arch-specific code.)

Current status is that it's really early days for this work. I've stubbed every function/bytecode that needs to be ported with an NYI marker and I'm filling them in one by one.

该提问来源于开源项目:raptorjit/raptorjit

  • 写回答

4条回答 默认 最新

  • weixin_39932611 2020-11-21 20:33
    关注

    Current status is that the VM can reach the REPL since f6c1012. This only exercises one bytecode (FUNCC) and a few primitives like vm_call(), vm_cpcall(), vm_return(), and vm_cpuid().

    This code is rough and I'm still getting my head around how the bytecode interpreter works. I hope that I more-or-less have a handle on how the C stack and the Lua stack are intertwined at this point.

    评论

报告相同问题?