mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWasm+LibWeb: Parse and validate all Wasm SIMD instructions
This commit is contained in:
parent
b005691497
commit
2462064fcd
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/alimpfard
Commit: 2462064fcd
Pull-request: https://github.com/SerenityOS/serenity/pull/19623
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/DanShaders
13 changed files with 2474 additions and 78 deletions
|
@ -330,6 +330,7 @@ InstantiationResult AbstractMachine::instantiate(Module const& module, Vector<Ex
|
|||
size_t offset = 0;
|
||||
result.values().first().value().visit(
|
||||
[&](auto const& value) { offset = value; },
|
||||
[&](u128 const&) { instantiation_result = InstantiationError { "Data segment offset returned a vector type"sv }; },
|
||||
[&](Reference const&) { instantiation_result = InstantiationError { "Data segment offset returned a reference"sv }; });
|
||||
if (instantiation_result.has_value() && instantiation_result->is_error())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue