X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..4e4e5a6f2694187498445a6ac6f1634ce8141119:/runtime/MathObject.h diff --git a/runtime/MathObject.h b/runtime/MathObject.h index d6163fd..a9f7031 100644 --- a/runtime/MathObject.h +++ b/runtime/MathObject.h @@ -27,17 +27,21 @@ namespace JSC { class MathObject : public JSObject { public: - MathObject(ExecState*, PassRefPtr); + MathObject(ExecState*, NonNullPassRefPtr); 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 PassRefPtr createStructure(JSValuePtr prototype) + static PassRefPtr createStructure(JSValue prototype) { - return Structure::create(prototype, TypeInfo(ObjectType)); + return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } + + protected: + static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags; }; } // namespace JSC