Sven Sauleau

Results 79 issues of Sven Sauleau

Continuing the discussion on Slack. Here's a list of proposal that we mentioned. ### Sign-extension operators https://github.com/WebAssembly/design/issues/1178 This impacts the wasm format and type-checker (validation), new instructions needs to be...

Happens with binary with a lot of code: ``` /webassemblyjs/packages/wasm-parser/lib/decoder.js:571 function parseInstructionBlock(code) { ^ RangeError: Maximum call stack size exceeded at parseInstructionBlock (/webassemblyjs/packages/wasm-parser/lib/decoder.js:571:33) at parseInstructionBlock (/webassemblyjs/packages/wasm-parser/lib/decoder.js:660:9) at parseInstructionBlock (/webassemblyjs/packages/wasm-parser/lib/decoder.js:660:9) at...

pkg: wasm-parser

Following https://github.com/xtuc/webassemblyjs/pull/363#discussion_r191265408 TODO: uncomment https://github.com/xtuc/webassemblyjs/pull/363/files/00d7c695f67527afd3008df05390b835f68a6886#diff-06c2d5c8cd0c6a3f1daab4294ab6a166

```wat (module (global (export "v") i32 (i32.const 1)) ) ``` and the corresponding AST is: ```wat (module (global $global_0 i32 (i32.const 1)) (export "v" (global $global_0)) ) ``` The issues:...

bug
pkg: wast-parser

Here's the test: https://github.com/xtuc/webassemblyjs/blob/fed152017fd5d19c09c8c53e3369d849e7c538f2/packages/wasm-parser/test/fixtures/block/with-label/actual.wat-failure#L3 It has been disabled in #276

pkg: wasm-parser

Was left todo here https://github.com/xtuc/js-webassembly-interpreter/pull/173#discussion_r170420418 since not a priority. https://github.com/xtuc/js-webassembly-interpreter/blob/00281dfd739b8f971a31f26e893b17855fcc26e7/src/interpreter/runtime/values/module.js#L217-L219

- [ ] `i32.reinterpret` - [ ] `i64.reinterpret` - [x] `f32.reinterpret` - [x] `f64.reinterpret` See specification here: https://webassembly.github.io/spec/core/exec/numerics.html#op-reinterpret

kernel/exec

In https://github.com/xtuc/inline-wast we use https://github.com/WebAssembly/wabt emscripten/JS version which has such a tool but there's also a lot of downside to it (size and slow). It would be great to implement...

WASM