mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibWasm+LibWeb: Parse and validate all Wasm SIMD instructions
This commit is contained in:
parent
b005691497
commit
2462064fcd
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