mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWasm: Implement the br.table instruction
Unlike its name, this instruction has nothing to do with tables, it's just a very simple switch-case instruction.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
9db418e1fb
commit
c392a0cf7f
Notes:
sideshowbarker
2024-07-18 16:54:34 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/c392a0cf7ff Pull-request: https://github.com/SerenityOS/serenity/pull/7756
@@ -66,6 +66,9 @@ Result Configuration::execute(Interpreter& interpreter)
|
||||
if (interpreter.did_trap())
|
||||
return Trap {};
|
||||
|
||||
if (stack().size() <= frame().arity() + 1)
|
||||
return Trap {};
|
||||
|
||||
Vector<Value> results;
|
||||
results.ensure_capacity(frame().arity());
|
||||
for (size_t i = 0; i < frame().arity(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user