#ifndef MathObject_h
#define MathObject_h
#include "JSObjectWithGlobalObject.h"
namespace JSC {
class MathObject : public JSObjectWithGlobalObject {
private:
MathObject(ExecState*, JSGlobalObject*, Structure*);
public:
typedef JSObjectWithGlobalObject Base;
static MathObject* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
return new (allocateCell<MathObject>(*exec->heap())) MathObject(exec, globalObject, structure);
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
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 | JSObject::StructureFlags;
};
}
#endif // MathObject_h