BooleanConstructor.h [plain text]
#pragma once
#include "InternalFunction.h"
namespace JSC {
class BooleanPrototype;
class GetterSetter;
class BooleanConstructor final : public InternalFunction {
public:
typedef InternalFunction Base;
static BooleanConstructor* create(VM& vm, Structure* structure, BooleanPrototype* booleanPrototype, GetterSetter*)
{
BooleanConstructor* constructor = new (NotNull, allocateCell<BooleanConstructor>(vm.heap)) BooleanConstructor(vm, structure);
constructor->finishCreation(vm, booleanPrototype);
return constructor;
}
DECLARE_INFO;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(InternalFunctionType, StructureFlags), info());
}
protected:
void finishCreation(VM&, BooleanPrototype*);
private:
BooleanConstructor(VM&, Structure*);
};
STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(BooleanConstructor, InternalFunction);
JSObject* constructBooleanFromImmediateBoolean(JSGlobalObject*, JSValue);
}