inline bool isDate(JSObjectRef object, JSGlobalContextRef context)
{
JSC::APIEntryShim entryShim(toJS(context));
- return toJS(object)->inherits(&JSC::DateInstance::s_info);
+ return toJS(object)->inherits(JSC::DateInstance::info());
}
inline bool isArray(JSObjectRef object, JSGlobalContextRef context)
{
JSC::APIEntryShim entryShim(toJS(context));
- return toJS(object)->inherits(&JSC::JSArray::s_info);
+ return toJS(object)->inherits(JSC::JSArray::info());
}
@implementation JSValue(Internal)
JSValueRef exception = 0;
JSObjectRef object = JSValueToObject(context, value, &exception);
ASSERT(!exception);
- if (toJS(object)->inherits(&JSC::JSCallbackObject<JSC::JSAPIWrapperObject>::s_info))
+ if (toJS(object)->inherits(JSC::JSCallbackObject<JSC::JSAPIWrapperObject>::info()))
return (id)JSC::jsCast<JSC::JSAPIWrapperObject*>(toJS(object))->wrappedObject();
if (id target = tryUnwrapBlock(object))
return target;
id tryUnwrapBlock(JSObjectRef object)
{
- if (!toJS(object)->inherits(&JSC::ObjCCallbackFunction::s_info))
+ if (!toJS(object)->inherits(JSC::ObjCCallbackFunction::info()))
return nil;
return static_cast<JSC::ObjCCallbackFunction*>(toJS(object))->impl()->wrappedBlock();
}
2013-08-13 Filip Pizlo <fpizlo@apple.com>
+ Unreviewed, fix build.
+
+ * API/JSValue.mm:
+ (isDate):
+ (isArray):
+ * API/JSWrapperMap.mm:
+ (tryUnwrapObjcObject):
+ * API/ObjCCallbackFunction.mm:
+ (tryUnwrapBlock):
+
+2013-08-13 Filip Pizlo <fpizlo@apple.com>
+
Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
https://bugs.webkit.org/show_bug.cgi?id=119770