X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b80e619319b1def83d1e8b4f84042b661be1be7f..14957cd040308e3eeec43d26bae5d76da13fcd85:/runtime/BooleanObject.h diff --git a/runtime/BooleanObject.h b/runtime/BooleanObject.h index 4b02acb..def44b4 100644 --- a/runtime/BooleanObject.h +++ b/runtime/BooleanObject.h @@ -27,14 +27,13 @@ namespace JSC { class BooleanObject : public JSWrapperObject { public: - explicit BooleanObject(NonNullPassRefPtr); + explicit BooleanObject(JSGlobalData&, Structure*); - 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, StructureFlags), AnonymousSlotCount); + return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info); } }; @@ -42,7 +41,7 @@ namespace JSC { inline BooleanObject* asBooleanObject(JSValue value) { - ASSERT(asObject(value)->inherits(&BooleanObject::info)); + ASSERT(asObject(value)->inherits(&BooleanObject::s_info)); return static_cast(asObject(value)); }