mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Port WebAssembly.Table to IDL
This commit is contained in:
committed by
Andreas Kling
parent
ca96f8e364
commit
2cfcbccdb5
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/2cfcbccdb5 Pull-request: https://github.com/SerenityOS/serenity/pull/17878 Reviewed-by: https://github.com/alimpfard ✅
@@ -12,7 +12,6 @@
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
||||
class WebAssemblyTableObject;
|
||||
JS::ThrowCompletionOr<size_t> parse_module(JS::VM&, JS::Object* buffer);
|
||||
JS::NativeFunction* create_native_function(JS::VM&, Wasm::FunctionAddress address, DeprecatedString const& name);
|
||||
JS::Value to_js_value(JS::VM&, Wasm::Value& wasm_value);
|
||||
@@ -46,7 +45,7 @@ public:
|
||||
struct ModuleCache {
|
||||
HashMap<Wasm::FunctionAddress, JS::GCPtr<JS::FunctionObject>> function_instances;
|
||||
HashMap<Wasm::MemoryAddress, JS::GCPtr<WebAssembly::Memory>> memory_instances;
|
||||
HashMap<Wasm::TableAddress, JS::GCPtr<WebAssemblyTableObject>> table_instances;
|
||||
HashMap<Wasm::TableAddress, JS::GCPtr<WebAssembly::Table>> table_instances;
|
||||
};
|
||||
struct GlobalModuleCache {
|
||||
HashMap<Wasm::FunctionAddress, JS::GCPtr<JS::NativeFunction>> function_instances;
|
||||
|
||||
Reference in New Issue
Block a user