JSTestJSBuiltinConstructor.h [plain text]
#pragma once
#include "JSDOMWrapper.h"
namespace WebCore {
class JSTestJSBuiltinConstructor : public JSDOMObject {
public:
typedef JSDOMObject Base;
static JSTestJSBuiltinConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject)
{
JSTestJSBuiltinConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestJSBuiltinConstructor>(globalObject->vm().heap)) JSTestJSBuiltinConstructor(structure, *globalObject);
ptr->finishCreation(globalObject->vm());
return ptr;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject*);
static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject*);
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());
}
static JSC::JSValue getConstructor(JSC::VM&, const JSC::JSGlobalObject*);
static void visitChildren(JSCell*, JSC::SlotVisitor&);
JSC::JSValue testAttributeCustom(JSC::ExecState&) const;
JSC::JSValue testAttributeRWCustom(JSC::ExecState&) const;
void setTestAttributeRWCustom(JSC::ExecState&, JSC::JSValue);
JSC::JSValue testCustomFunction(JSC::ExecState&);
protected:
JSTestJSBuiltinConstructor(JSC::Structure*, JSDOMGlobalObject&);
};
}