Added executing of mod IR in the WASM VM
This commit is contained in:
parent
964c25a66c
commit
8d39d3d4d0
2 changed files with 495 additions and 505 deletions
|
|
@ -448,6 +448,7 @@ fn parseElemsec(self: *Parser) !void {
|
|||
pub const Func = struct {
|
||||
locals: []Valtype,
|
||||
code: []const u8,
|
||||
ir: IR,
|
||||
};
|
||||
const Local = struct {
|
||||
n: u32,
|
||||
|
|
@ -477,6 +478,7 @@ fn parseCode(self: *Parser) !Func {
|
|||
const func = Func{
|
||||
.locals = try self.allocator.alloc(Valtype, local_count),
|
||||
.code = &.{},
|
||||
.ir = ir,
|
||||
};
|
||||
|
||||
var li: usize = 0;
|
||||
|
|
|
|||
998
src/mods/vm.zig
998
src/mods/vm.zig
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue