]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/BooleanObject.h
JavaScriptCore-7600.1.4.9.tar.gz
[apple/javascriptcore.git] / runtime / BooleanObject.h
index 299f341743a2071ffa76a2adda85b42b97c8d76a..6944db496c716e23d6ea0e57aa80ad44b8172cbc 100644 (file)
@@ -40,11 +40,11 @@ public:
         return boolean;
     }
         
-    static JS_EXPORTDATA const ClassInfo s_info;
+    DECLARE_EXPORT_INFO;
         
     static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
     {
-        return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info);
+        return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
     }
 };
 
@@ -52,7 +52,7 @@ BooleanObject* asBooleanObject(JSValue);
 
 inline BooleanObject* asBooleanObject(JSValue value)
 {
-    ASSERT(asObject(value)->inherits(&BooleanObject::s_info));
+    ASSERT(asObject(value)->inherits(BooleanObject::info()));
     return static_cast<BooleanObject*>(asObject(value));
 }