diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-07-20 10:28:47 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-07-30 00:41:56 +0200 |
commit | d85bc716df9b97ac6093afa0bdf77c1b6b0cf6aa (patch) | |
tree | ce95cee08ece2a1d3e9a3cef57c0941dd26b921f /compiler.c | |
parent | 365782e002255c67b81cf96471fe41cfa6f6b714 (diff) |
vm: introduce import and export opcodes
Introduce new opcodes to realize module imports and exports. The export
operation will capture a local variable as upvalue and store it in VM
wide module export registry while the import operation will connect an
upvalue from the module export registry with a preallocated upvalue in
the running function scope.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'compiler.c')
0 files changed, 0 insertions, 0 deletions