Updated the source for master
This commit is contained in:
parent
2fe3d6cb3f
commit
e7e0927a83
7 changed files with 30 additions and 23 deletions
|
|
@ -490,8 +490,8 @@ fn parseCode(self: *Parser) !Func {
|
|||
}
|
||||
|
||||
const ir = try IR.parse(self);
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
try ir.print(stdout);
|
||||
// const stdout = std.fs.File.stdout().writer();
|
||||
// try ir.print(stdout);
|
||||
|
||||
const func = Func{
|
||||
.locals = try self.allocator.alloc(vm.Valtype, local_count),
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ pub const Runtime = struct {
|
|||
// Like this
|
||||
.@"unreachable" => {
|
||||
std.log.err("Reached unreachable statement at IR counter {any}\n", .{frame.program_counter});
|
||||
frame.code.print(std.io.getStdOut().writer()) catch {};
|
||||
//frame.code.print(std.io.getStdOut().writer()) catch {};
|
||||
},
|
||||
.nop => {},
|
||||
.br => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue