Added executing of mod IR in the WASM VM

This commit is contained in:
luccie-cmd 2025-03-28 19:47:18 +01:00
parent 964c25a66c
commit 8d39d3d4d0
2 changed files with 495 additions and 505 deletions

View file

@ -448,6 +448,7 @@ fn parseElemsec(self: *Parser) !void {
pub const Func = struct { pub const Func = struct {
locals: []Valtype, locals: []Valtype,
code: []const u8, code: []const u8,
ir: IR,
}; };
const Local = struct { const Local = struct {
n: u32, n: u32,
@ -477,6 +478,7 @@ fn parseCode(self: *Parser) !Func {
const func = Func{ const func = Func{
.locals = try self.allocator.alloc(Valtype, local_count), .locals = try self.allocator.alloc(Valtype, local_count),
.code = &.{}, .code = &.{},
.ir = ir,
}; };
var li: usize = 0; var li: usize = 0;

File diff suppressed because it is too large Load diff