diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-05-01 03:19:01 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-17 23:25:30 +0200 |
commit | 056be42c0be2a4ac43fd50ab3c34c269f24244c9 (patch) | |
tree | c7f032c366d9c05e8677aa3deb7321f63eca63f2 /Meta | |
parent | faa34a0a8b99bf96b624991f4fb36ebe642c13f8 (diff) | |
download | serenity-056be42c0be2a4ac43fd50ab3c34c269f24244c9.zip |
LibWasm: Start implementing a naive bytecode interpreter
As the parser now flattens out the instructions and inserts synthetic
nesting/structured instructions where needed, we can treat the whole
thing as a simple parsed bytecode stream.
This currently knows how to execute the following instructions:
- unreachable
- nop
- local.get
- local.set
- {i,f}{32,64}.const
- block
- loop
- if/else
- branch / branch_if
- i32_add
- i32_and/or/xor
- i32_ne
This also extends the 'wasm' utility to optionally execute the first
function in the module with optionally user-supplied arguments.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/CMake/all_the_debug_macros.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index cb8297a193..e89e4d1962 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -179,6 +179,7 @@ set(LINE_EDITOR_DEBUG ON) set(LANGUAGE_SERVER_DEBUG ON) set(GL_DEBUG ON) set(WASM_BINPARSER_DEBUG ON) +set(WASM_TRACE_DEBUG ON) set(PDF_DEBUG ON) set(SOLITAIRE_DEBUG ON) |