BooleanConstructor.h [plain text]
#ifndef BooleanConstructor_h
#define BooleanConstructor_h
#include "InternalFunction.h"
namespace JSC {
class BooleanPrototype;
class BooleanConstructor : public InternalFunction {
public:
typedef InternalFunction Base;
static BooleanConstructor* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, BooleanPrototype* booleanPrototype)
{
BooleanConstructor* constructor = new (NotNull, allocateCell<BooleanConstructor>(*exec->heap())) BooleanConstructor(globalObject, structure);
constructor->finishCreation(exec, booleanPrototype);
return constructor;
}
static const ClassInfo s_info;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info);
}
protected:
void finishCreation(ExecState*, BooleanPrototype*);
private:
BooleanConstructor(JSGlobalObject*, Structure*);
static ConstructType getConstructData(JSCell*, ConstructData&);
static CallType getCallData(JSCell*, CallData&);
};
JSObject* constructBooleanFromImmediateBoolean(ExecState*, JSGlobalObject*, JSValue);
JSObject* constructBoolean(ExecState*, const ArgList&);
}
#endif // BooleanConstructor_h