mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWasm: Add execution hooks and a debugger mode to the wasm tool
This is useful for debugging *our* implementation of wasm :P
This commit is contained in:
committed by
Ali Mohammad Pur
parent
f740667fa1
commit
ba5da79617
Notes:
sideshowbarker
2024-07-18 17:22:42 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/ba5da79617f Pull-request: https://github.com/SerenityOS/serenity/pull/7395 Reviewed-by: https://github.com/linusg
@@ -53,6 +53,9 @@ Result Configuration::call(FunctionAddress address, Vector<Value> arguments)
|
||||
Result Configuration::execute()
|
||||
{
|
||||
Interpreter interpreter;
|
||||
interpreter.pre_interpret_hook = pre_interpret_hook;
|
||||
interpreter.post_interpret_hook = post_interpret_hook;
|
||||
|
||||
interpreter.interpret(*this);
|
||||
if (interpreter.did_trap())
|
||||
return Trap {};
|
||||
|
||||
Reference in New Issue
Block a user