BooleanPrototype.h [plain text]
#ifndef BooleanPrototype_h
#define BooleanPrototype_h
#include "BooleanObject.h"
namespace JSC {
class BooleanPrototype : public BooleanObject {
public:
typedef BooleanObject Base;
static BooleanPrototype* create(VM& vm, JSGlobalObject* globalObject, Structure* structure)
{
BooleanPrototype* prototype = new (NotNull, allocateCell<BooleanPrototype>(vm.heap)) BooleanPrototype(vm, structure);
prototype->finishCreation(vm, globalObject);
return prototype;
}
DECLARE_INFO;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
}
protected:
void finishCreation(VM&, JSGlobalObject*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | BooleanObject::StructureFlags;
private:
BooleanPrototype(VM&, Structure*);
static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
};
}
#endif // BooleanPrototype_h