Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Apr 11, 2024
1 parent 3359266 commit c258c9a
Show file tree
Hide file tree
Showing 111 changed files with 1,533 additions and 6,421 deletions.
6 changes: 5 additions & 1 deletion src/parser/wat-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ void propagateDebugLocations(Module& wasm) {
return std::make_unique<Propagator>();
}
};
PassRunner runner(&wasm);
// The parser should not be responsible for validation.
PassOptions opts;
opts.validate = false;
opts.validateGlobally = false;
PassRunner runner(&wasm, opts);
runner.add(std::make_unique<Propagator>());
runner.run();
}
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/wasm-io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

namespace wasm {

bool useNewWATParser = false;
bool useNewWATParser = true;

#define DEBUG_TYPE "writer"

Expand Down
2 changes: 1 addition & 1 deletion test/ctor-eval/bad-indirect-call3.wast.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(memory $0 256 256)
(data $0 (i32.const 10) "waka waka waka waka waka")
(table $0 1 1 funcref)
(elem $0 (i32.const 0) $callee)
(elem $implicit-elem (i32.const 0) $callee)
(export "sig_mismatch" (func $sig_mismatch))
(func $callee (type $0) (param $0 externref)
(i32.store8
Expand Down
Loading

0 comments on commit c258c9a

Please sign in to comment.