#ifndef MathObject_h
#define MathObject_h
#include "JSObject.h"
namespace JSC {
class MathObject : public JSNonFinalObject {
private:
MathObject(VM&, Structure*);
public:
typedef JSNonFinalObject Base;
static MathObject* create(VM& vm, JSGlobalObject* globalObject, Structure* structure)
{
MathObject* object = new (NotNull, allocateCell<MathObject>(vm.heap)) MathObject(vm, structure);
object->finishCreation(vm, globalObject);
return object;
}
DECLARE_INFO;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
}
protected:
void finishCreation(VM&, JSGlobalObject*);
};
EncodedJSValue JSC_HOST_CALL mathProtoFuncAbs(ExecState*);
EncodedJSValue JSC_HOST_CALL mathProtoFuncFloor(ExecState*);
EncodedJSValue JSC_HOST_CALL mathProtoFuncTrunc(ExecState*);
}
#endif // MathObject_h