1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:27:35 +00:00

LibWasm: Start implementing a basic WebAssembly binary format parser

This can currently parse a really simple module.
Note that it cannot parse the DataCount section, and it's still missing
almost all of the instructions.
This commit also adds a 'wasm' test utility that tries to parse a given
webassembly binary file.
It currently does nothing but exit when the parse fails, but it's a
start :^)
This commit is contained in:
Ali Mohammad Pur 2021-04-26 12:48:13 +04:30 committed by Andreas Kling
parent 56a6d7924e
commit aa4d8d26b9
10 changed files with 1991 additions and 0 deletions

View file

@ -394,6 +394,10 @@
#cmakedefine01 UPDATE_COALESCING_DEBUG
#endif
#ifndef WASM_BINPARSER_DEBUG
#cmakedefine01 WASM_BINPARSER_DEBUG
#endif
#ifndef WINDOWMANAGER_DEBUG
#cmakedefine01 WINDOWMANAGER_DEBUG
#endif
@ -409,3 +413,4 @@
#ifndef WSSCREEN_DEBUG
#cmakedefine01 WSSCREEN_DEBUG
#endif