#ifndef NumberPrototype_h
#define NumberPrototype_h
#include "NumberObject.h"
namespace JSC {
class NumberPrototype : public NumberObject {
public:
typedef NumberObject Base;
static NumberPrototype* create(VM& vm, JSGlobalObject* globalObject, Structure* structure)
{
NumberPrototype* prototype = new (NotNull, allocateCell<NumberPrototype>(vm.heap)) NumberPrototype(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(NumberObjectType, StructureFlags), info());
}
protected:
void finishCreation(VM&, JSGlobalObject*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | NumberObject::StructureFlags;
private:
NumberPrototype(VM&, Structure*);
static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
};
}
#endif // NumberPrototype_h