WebAssemblyTableObject.h 749 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/Object.h>
  8. #include <LibWasm/AbstractMachine/AbstractMachine.h>
  9. #include <LibWeb/Forward.h>
  10. #include <LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h>
  11. #include <LibWeb/WebAssembly/WebAssemblyObject.h>
  12. namespace Web::Bindings {
  13. class WebAssemblyTableObject final : public JS::Object {
  14. JS_OBJECT(WebAssemblyTableObject, Object);
  15. public:
  16. explicit WebAssemblyTableObject(JS::GlobalObject&, Wasm::TableAddress);
  17. virtual ~WebAssemblyTableObject() override = default;
  18. Wasm::TableAddress address() const { return m_address; }
  19. private:
  20. Wasm::TableAddress m_address;
  21. };
  22. }