summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* Fix label 'for' attributes to match input 'id's in demo (#2499)Leo Toneff2024-10-302-2/+2
|
* Rename wasm-opcodecnt to wasm-stats (#2298)Soni L2023-09-1912-18/+18
|
* Enable features in libwabt.js by default (#2109)Marcus Better2022-12-275-56/+43
| | | | | | | | | | 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.
* Typo in previous PR causing unbalanced braces (#2106)Thomas Tay2022-12-191-1/+1
| | | | 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
* Base 64 output is incorrect (#2103)Thomas Tay2022-12-191-1/+3
| | | | | | | | | | | | | | | | | 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> ```
* WastLexer: log lexing errors directly (#2013)Keith Winstein2022-10-031-36/+14
| | | | | * Log all lexing errors in WastLexer (rather than via parser) * Update docs/demo/libwabt.js
* Change description of calling wat2wasm without -o flag (#1943)Mark Irish2022-07-081-2/+2
|
* Update libwabt.js (#1907)Ben Smith2022-04-281-9/+13
|
* Add base64 encoding support to wat2wasm demo (#1903)Zoltan Herczeg2022-04-252-4/+33
| | | | | | 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>
* Enable mutli-value checkbox in wat2wasm demo html (#1657)UltimatePro-Grammer2022-03-041-1/+1
|
* Finish instruction renaming (#1792)Heejin Ahn2021-12-202-2/+2
| | | | | | | | | | | | | 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.
* Re-generate html versions of man pages. NFC (#1722)Sam Clegg2021-10-1112-703/+886
| | | Generated by running `scripts/generate-html-docs.sh`
* feat: 🎸 drag file to editor trigger recompile (#1598)IWANABETHATGUY2021-02-231-4/+30
| | | | | | | | | * feat: 🎸 drag file to editor trigger recompile * fix: 🐛 code style, fix reviewd problem * style: 💄 semicolon ✅ Closes: g
* Add script to generate html from man, and generate wasm-decompile html (#1592)Ng Zhi An2020-12-171-0/+96
| | | | The script regenerates html from all man pages. I ran it once, and only checked in wasm-decompile.1.html.
* Fix emscripten build; rebuild libwabt.js (#1583)Ben Smith2020-12-041-18/+17
| | | Not sure how this line got removed...
* Update libwabt.js; fix some runtime issues (#1468)Ben Smith2020-06-181-11/+11
| | | | | | | 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).
* Reference types changes to remove subtyping (#1407)Ben Smith2020-05-281-4/+4
| | | | | | | | 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`
* Update emscripten build after SIMD changeBen Smith2020-05-051-10/+10
|
* Update JS demos (#1398)Ben Smith2020-04-273-32/+93
| | | | | | * 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
* Add documentation for wast2json (#1383)Ben Smith2020-04-071-0/+566
| | | This primarily is documentation for the JSON format produced.
* wasm-decompile: use symbols from linking section for names. (#1318)Wouter van Oortmerssen2020-01-271-3/+14
| | | | | | | | | | | | 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.
* Put rendered man page html in docs, not .1 filesBen Smith2020-01-1723-729/+1079
|
* Move documentation to docs/ directoryBen Smith2020-01-1730-0/+12466
| | | | It's easier to update than gh-pages
* wasm-decompile: documentation. (#1295)Wouter van Oortmerssen2020-01-091-0/+169
Added a language description, a man page, and some links in the general readme.