Re: Bytecode differences between v1 and v2?
- From: Mike Pall <mikelj-2101@xxxxxxx>
- To: luajit@xxxxxxxxxxxxx
- Date: Sat, 2 Jan 2021 13:19:31 +0100
Petri Häkkinen wrote:
So I've been thinking about another approach: I could patch
CALL/CALLT/CALLM/CALLMT opcodes to jump to stubs added to the end of each
prototype.
Umm, that's not gonna fly. You really need to do full reverse
data-flow analysis to handle the conversion between the different
frame formats.
But why not disable GC64 on x64? This variant is a fully supported
target, see src/Makefile. That will make your job much easier,
because you only need to fixup a few things, like opcode numbers.
The only downside is that non-GC64 mode doesn't work on other 64 bit
archs (e.g. ARM64).
--Mike
Other related posts: