X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/ba379fdc102753d6be2c4d937058fe40257329fe..14957cd040308e3eeec43d26bae5d76da13fcd85:/runtime/MathObject.h diff --git a/runtime/MathObject.h b/runtime/MathObject.h index 3557d1e..75753be 100644 --- a/runtime/MathObject.h +++ b/runtime/MathObject.h @@ -21,23 +21,26 @@ #ifndef MathObject_h #define MathObject_h -#include "JSObject.h" +#include "JSObjectWithGlobalObject.h" namespace JSC { - class MathObject : public JSObject { + class MathObject : public JSObjectWithGlobalObject { public: - MathObject(ExecState*, PassRefPtr); + MathObject(ExecState*, JSGlobalObject*, Structure*); virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); + virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); - virtual const ClassInfo* classInfo() const { return &info; } - static const ClassInfo info; + static const ClassInfo s_info; - static PassRefPtr createStructure(JSValue prototype) + static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) { - return Structure::create(prototype, TypeInfo(ObjectType)); + return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info); } + + protected: + static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags; }; } // namespace JSC