JSTestDefaultToJSONFilteredByExposed.h [plain text]
#pragma once
#include "JSDOMWrapper.h"
#include "TestDefaultToJSONFilteredByExposed.h"
#include <wtf/NeverDestroyed.h>
namespace WebCore {
class JSTestDefaultToJSONFilteredByExposed : public JSDOMWrapper<TestDefaultToJSONFilteredByExposed> {
public:
using Base = JSDOMWrapper<TestDefaultToJSONFilteredByExposed>;
static JSTestDefaultToJSONFilteredByExposed* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestDefaultToJSONFilteredByExposed>&& impl)
{
JSTestDefaultToJSONFilteredByExposed* ptr = new (NotNull, JSC::allocateCell<JSTestDefaultToJSONFilteredByExposed>(globalObject->vm().heap)) JSTestDefaultToJSONFilteredByExposed(structure, *globalObject, WTFMove(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSDOMGlobalObject&);
static JSC::JSObject* prototype(JSC::VM&, JSDOMGlobalObject&);
static TestDefaultToJSONFilteredByExposed* toWrapped(JSC::VM&, JSC::JSValue);
static void destroy(JSC::JSCell*);
DECLARE_INFO;
static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
{
return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info(), JSC::NonArray);
}
static JSC::JSValue getConstructor(JSC::VM&, const JSC::JSGlobalObject*);
template<typename, JSC::SubspaceAccess mode> static JSC::IsoSubspace* subspaceFor(JSC::VM& vm)
{
if constexpr (mode == JSC::SubspaceAccess::Concurrently)
return nullptr;
return subspaceForImpl(vm);
}
static JSC::IsoSubspace* subspaceForImpl(JSC::VM& vm);
static void analyzeHeap(JSCell*, JSC::HeapAnalyzer&);
protected:
JSTestDefaultToJSONFilteredByExposed(JSC::Structure*, JSDOMGlobalObject&, Ref<TestDefaultToJSONFilteredByExposed>&&);
void finishCreation(JSC::VM&);
};
class JSTestDefaultToJSONFilteredByExposedOwner final : public JSC::WeakHandleOwner {
public:
bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&, const char**) final;
void finalize(JSC::Handle<JSC::Unknown>, void* context) final;
};
inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&, TestDefaultToJSONFilteredByExposed*)
{
static NeverDestroyed<JSTestDefaultToJSONFilteredByExposedOwner> owner;
return &owner.get();
}
inline void* wrapperKey(TestDefaultToJSONFilteredByExposed* wrappableObject)
{
return wrappableObject;
}
JSC::JSValue toJS(JSC::JSGlobalObject*, JSDOMGlobalObject*, TestDefaultToJSONFilteredByExposed&);
inline JSC::JSValue toJS(JSC::JSGlobalObject* lexicalGlobalObject, JSDOMGlobalObject* globalObject, TestDefaultToJSONFilteredByExposed* impl) { return impl ? toJS(lexicalGlobalObject, globalObject, *impl) : JSC::jsNull(); }
JSC::JSValue toJSNewlyCreated(JSC::JSGlobalObject*, JSDOMGlobalObject*, Ref<TestDefaultToJSONFilteredByExposed>&&);
inline JSC::JSValue toJSNewlyCreated(JSC::JSGlobalObject* lexicalGlobalObject, JSDOMGlobalObject* globalObject, RefPtr<TestDefaultToJSONFilteredByExposed>&& impl) { return impl ? toJSNewlyCreated(lexicalGlobalObject, globalObject, impl.releaseNonNull()) : JSC::jsNull(); }
template<> struct JSDOMWrapperConverterTraits<TestDefaultToJSONFilteredByExposed> {
using WrapperClass = JSTestDefaultToJSONFilteredByExposed;
using ToWrappedReturnType = TestDefaultToJSONFilteredByExposed*;
};
}