Skip to content

Commit feb1d9d

Browse files
committed
wip
1 parent d81c2f6 commit feb1d9d

File tree

111 files changed

+1508
-6396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1508
-6396
lines changed

src/parser/wat-parser.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ void propagateDebugLocations(Module& wasm) {
138138
return std::make_unique<Propagator>();
139139
}
140140
};
141-
PassRunner runner(&wasm);
141+
// The parser should not be responsible for validation.
142+
PassOptions opts;
143+
opts.validate = false;
144+
opts.validateGlobally = false;
145+
PassRunner runner(&wasm, opts);
142146
runner.add(std::make_unique<Propagator>());
143147
runner.run();
144148
}

src/wasm/wasm-io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
namespace wasm {
3535

36-
bool useNewWATParser = false;
36+
bool useNewWATParser = true;
3737

3838
#define DEBUG_TYPE "writer"
3939

test/ctor-eval/bad-indirect-call3.wast.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
(memory $0 256 256)
66
(data $0 (i32.const 10) "waka waka waka waka waka")
77
(table $0 1 1 funcref)
8-
(elem $0 (i32.const 0) $callee)
8+
(elem $implicit-elem (i32.const 0) $callee)
99
(export "sig_mismatch" (func $sig_mismatch))
1010
(func $callee (type $0) (param $0 externref)
1111
(i32.store8

0 commit comments

Comments
 (0)