X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/f9bf01c6616d5ddcf65b13b33cedf9e387ff7a63..1df5f87f1309a8daa30dabdee855f48ae40d14ab:/runtime/NumberObject.h?ds=sidebyside diff --git a/runtime/NumberObject.h b/runtime/NumberObject.h index 6c18cdd..cba65dd 100644 --- a/runtime/NumberObject.h +++ b/runtime/NumberObject.h @@ -27,29 +27,20 @@ namespace JSC { class NumberObject : public JSWrapperObject { public: - explicit NumberObject(NonNullPassRefPtr); + explicit NumberObject(JSGlobalData&, Structure*); - 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, StructureFlags), AnonymousSlotCount); + return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info); } - protected: -#if USE(JSVALUE32) - static const unsigned StructureFlags = OverridesMarkChildren | JSWrapperObject::StructureFlags; -#else - static const unsigned StructureFlags = JSWrapperObject::StructureFlags; -#endif - private: - virtual const ClassInfo* classInfo() const { return &info; } - virtual JSValue getJSNumber(); }; - NumberObject* constructNumber(ExecState*, JSValue); + NumberObject* constructNumber(ExecState*, JSGlobalObject*, JSValue); } // namespace JSC