#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)
{
NumberPrototype* prototype = new (NotNull, allocateCell<NumberPrototype>(*exec->heap())) NumberPrototype(exec, structure);
prototype->finishCreation(exec, globalObject);
return prototype;
}
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(globalData, globalObject, prototype, TypeInfo(NumberObjectType, StructureFlags), &s_info);
}
protected:
void finishCreation(ExecState*, JSGlobalObject*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | NumberObject::StructureFlags;
private:
NumberPrototype(ExecState*, Structure*);
static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);
};
}
#endif // NumberPrototype_h