#ifndef NumberPrototype_h
#define NumberPrototype_h
#include "NumberObject.h"
namespace JSC {
class NumberPrototype : public NumberObject {
public:
typedef NumberObject Base;
static NumberPrototype* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
return new (allocateCell<NumberPrototype>(*exec->heap())) NumberPrototype(exec, globalObject, structure);
}
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | NumberObject::StructureFlags;
static const unsigned AnonymousSlotCount = NumberObject::AnonymousSlotCount + 1;
private:
NumberPrototype(ExecState*, JSGlobalObject*, Structure*);
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
};
}
#endif // NumberPrototype_h