JSTestDefaultToJSONInherit.h [plain text]
#pragma once
#include "JSDOMWrapper.h"
#include "JSTestDefaultToJSON.h"
#include "TestDefaultToJSONInherit.h"
namespace WebCore {
class JSTestDefaultToJSONInherit : public JSTestDefaultToJSON {
public:
using Base = JSTestDefaultToJSON;
using DOMWrapped = TestDefaultToJSONInherit;
static JSTestDefaultToJSONInherit* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestDefaultToJSONInherit>&& impl)
{
JSTestDefaultToJSONInherit* ptr = new (NotNull, JSC::allocateCell<JSTestDefaultToJSONInherit>(globalObject->vm().heap)) JSTestDefaultToJSONInherit(structure, *globalObject, WTFMove(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSDOMGlobalObject&);
static JSC::JSObject* prototype(JSC::VM&, JSDOMGlobalObject&);
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&);
TestDefaultToJSONInherit& wrapped() const
{
return static_cast<TestDefaultToJSONInherit&>(Base::wrapped());
}
protected:
JSTestDefaultToJSONInherit(JSC::Structure*, JSDOMGlobalObject&, Ref<TestDefaultToJSONInherit>&&);
void finishCreation(JSC::VM&);
};
template<> struct JSDOMWrapperConverterTraits<TestDefaultToJSONInherit> {
using WrapperClass = JSTestDefaultToJSONInherit;
using ToWrappedReturnType = TestDefaultToJSONInherit*;
};
}