Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Idan Horowitz
a8d39bc070
LibWeb: Convert WebAssemblyObject functions to ThrowCompletionOr
2021-10-31 18:20:37 +02:00
Idan Horowitz
3e8c76d5ab
LibWeb: Convert WebAssemblyObject AOs to ThrowCompletionOr
2021-10-31 18:20:37 +02:00
Idan Horowitz
a76cd669b1
LibWeb: Make GlobalObject the first parameter of WebAssembly AOs
...
Let's be consistent with the rest of LibJS (and the rest of the file).
2021-10-31 18:20:37 +02:00
Idan Horowitz
20163c0584
LibJS: Add ThrowCompletionOr versions of the JS native function macros
...
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
2021-10-20 12:27:19 +01:00
Ali Mohammad Pur
321db0159e
LibWeb: Add the WebAssembly.Module constructor
2021-07-02 04:53:01 +04:30
Ali Mohammad Pur
8acc8339d1
LibWeb: Add the WebAssembly.Instance constructor
2021-07-02 04:53:01 +04:30
Ali Mohammad Pur
bfb3d9e9d0
LibWeb: Split the WebAssemblyInstance object logic into multiple files
...
Now that we're adding a constructor to it, let's split it up like the
rest of LibWeb does.
2021-07-02 04:53:01 +04:30
Andreas Kling
ba9d5c4d54
LibJS: Rename Function => FunctionObject
2021-06-27 22:36:04 +02:00
Ali Mohammad Pur
5c90c389c3
LibWeb: Implement the WebAssembly Memory object and Memory imports
2021-06-22 00:26:25 +04:30
Ali Mohammad Pur
e523e530fc
LibWeb: Cache the WebAssembly objects that we hand out to JS
...
The spec requires this behaviour, and it's generally faster to do this
instead of re-resolving and re-creating the instances anyway.
2021-06-22 00:26:25 +04:30
Ali Mohammad Pur
cf8b75c2e5
LibWasm+LibWeb: Partially resolve memory exports
...
This allows the JS side to access the wasm memory, assuming it's
exported by the module.
This can be used to draw stuff on the wasm side and display them from
the js side, for example :^)
2021-05-26 15:34:13 +04:30
Ali Mohammad Pur
a2af04837e
LibWeb: Implement a very basic WebAssembly JS API
...
This impl is *extremely* simple, and is missing a lot of things, it's
also not particularly spec-compliant in some places, but it's definitely
a start :^)
2021-05-26 15:34:13 +04:30