| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
This applies the same defaults for features in the JavaScript-compiled
version as the native tools. Without this change, enabling only the
"reference_types" feature did not work, as it got turned off due to
the dependency on "bulk_memory", which is counter-intuitive (see
Features::UpdateDependencies()).
Additionally, exposes all the features and their default setting in
JavaScript.
|
|
|
|
| |
Sorry, fixed now. Didn't balance my braces.
Thats what you get for editing in the Github editor, opened this file in vscode with the fix now, and no problems reported
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For simple, it decodes to:
MCw5NywxMTUsMTA5LDEsMCwwLDAsMSw2LDEsOTYsMSwxMjQsMSwxMjQsMywyLDEsMCw3LDcsMSwzLDEwMiw5Nyw5OSwwLDAsMTAsNDYsMSw0NCwwLDMyLDAsNjgsMCwwLDAsMCwwLDAsMjQwLDYzLDk5LDQsMTI0LDY4LDAsMCwwLDAsMCwwLDI0MCw2Myw1LDMyLDAsMzIsMCw2OCwwLDAsMCwwLDAsMCwyNDAsNjMsMTYxLDE2LDAsMTYyLDExLDExLDAsMTgsNCwxMTAsOTcsMTA5LDEwMSwxLDYsMSwwLDMsMTAyLDk3LDk5LDIsMywxLDAsMA==
which is base64 for the literal string:
'0,97,115,109,1,0,0,0,1,7,1,96,2,127,127,1,127,3,2,1,0,7,10,1,6,97,100,100,84,119,111,0,0,10,9,1,7,0,32,0,32,1,106,11,0,10,4,110,97,109,101,2,3,1,0,0'
This is the Uint8 array encoded as a string, which is not what we want! We want the numbers as bytes encoded in base64.
This answer changes the base64 to:
AGFzbQEAAAABBgFgAXwBfAMCAQAHBwEDZmFjAAAKLgEsACAARAAAAAAAAPA/YwR8RAAAAAAAAPA/BSAAIABEAAAAAAAA8D+hEACiCwsAEgRuYW1lAQYBAANmYWMCAwEAAA==
Which decodes properly. In Node:
```
> Buffer.from("AGFzbQEAAAABBgFgAXwBfAMCAQAHBwEDZmFjAAAKLgEsACAARAAAAAAAAPA/YwR8RAAAAAAAAPA/BSAAIABEAAAAAAAA8D+hEACiCwsAEgRuYW1lAQYBAANmYWMCAwEAAA==", 'base64')
<Buffer 00 61 73 6d 01 00 00 00 01 06 01 60 01 7c 01 7c 03 02 01 00 07 07 01 03 66 61 63 00 00 0a 2e 01 2c 00 20 00 44 00 00 00 00 00 00 f0 3f 63 04 7c 44 00 ... 47 more bytes>
```
|
|
|
|
|
| |
* Log all lexing errors in WastLexer (rather than via parser)
* Update docs/demo/libwabt.js
|
| |
|
| |
|
|
|
|
|
|
| |
A new button is added for base64 encoding of the wasm binary.
This allows getting the binary without downloading it.
Co-authored-by: Zoltan Herczeg <hzmester@freemail.hu>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This finishes #985. This
- replaces the old names in the tests with the new names
- drops support for the deprecated names
- renames test files to match new instruction names
I don't think dropping support for the old names will be a problem at
this point. #985 says the old names are supported for convenience but we
should remove those too at some point; that "some point" may have well
arrived given that three years have passed.
The lists of names updated are in #933, #1564, WebAssembly/spec#720.
|
|
|
| |
Generated by running `scripts/generate-html-docs.sh`
|
|
|
|
|
|
|
|
|
| |
* feat: 🎸 drag file to editor trigger recompile
* fix: 🐛 code style, fix reviewd problem
* style: 💄 semicolon
✅ Closes: g
|
|
|
|
| |
The script regenerates html from all man pages. I ran it once, and only
checked in wasm-decompile.1.html.
|
|
|
| |
Not sure how this line got removed...
|
|
|
|
|
|
|
| |
libwabt.js is meant to be included in multiple environments (web,
node.js, etc.) so it shouldn't be using NODERAWFS. A recent change to
the build system include `-s NODERAWFS` for all link steps, but those
are only needed for the wabt executables (e.g. wasm2wast.js).
|
|
|
|
|
|
|
|
| |
Main changes:
* Rename `anyref` -> `externref`
* Remove `nullref`
* Rename `hostref` -> `externref`
* `ref.null` and `ref.is_null` now have "ref kind" parameter
* Add ref kind keywords: `func`, `extern`, `exn`
|
| |
|
|
|
|
|
|
| |
* Recompile libwabt.js using latest emscripten
* Add features checkbox for wasm2wat (like wat2wasm)
* Remove call to `_wabt_resolve_names_module`, since that's always
done now when parsing text
|
|
|
| |
This primarily is documentation for the JSON format produced.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows wasm .o files to have more readable names, or even final
linked modules if the linking information is preserved (with e.g.
--emit-relocs in LLD).
This is implemented as part of the WABT IR representation, so
benefits wasm2wat as well.
Named obtained this way are only set for functions if the function
doesn't also have a name in the name section, but is preferred over
the export name if there is one.
|
| |
|
|
|
|
| |
It's easier to update than gh-pages
|
|
Added a language description, a man page, and some links in the
general readme.
|