#ifndef MathObject_h
#define MathObject_h
#include "JSObject.h"
namespace JSC {
class MathObject : public JSNonFinalObject {
private:
MathObject(JSGlobalObject*, Structure*);
public:
typedef JSNonFinalObject Base;
static MathObject* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
MathObject* object = new (NotNull, allocateCell<MathObject>(*exec->heap())) MathObject(globalObject, structure);
object->finishCreation(exec, globalObject);
return object;
}
static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(globalData, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info);
}
protected:
void finishCreation(ExecState*, JSGlobalObject*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags;
};
}
#endif // MathObject_h