WebAssemblyTableObject.h 666 B

1234567891011121314151617181920212223242526272829
  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/WebAssemblyObject.h>
  11. namespace Web::Bindings {
  12. class WebAssemblyTableObject final : public JS::Object {
  13. JS_OBJECT(WebAssemblyTableObject, Object);
  14. public:
  15. WebAssemblyTableObject(JS::Realm&, Wasm::TableAddress);
  16. virtual ~WebAssemblyTableObject() override = default;
  17. Wasm::TableAddress address() const { return m_address; }
  18. private:
  19. Wasm::TableAddress m_address;
  20. };
  21. }