-
oliver@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=117595 Reviewed by Geoffrey Garen. * API/APICallbackFunction.h: Added. New struct that allows JSCallbackFunction and ObjCCallbackFunction to share their host call() implementation through the magic of templates. (JSC::APICallbackFunction::call): * API/JSCallbackFunction.cpp: (JSC::JSCallbackFunction::getCallData): Changed to get the template-ized version of the host function. * API/JSCallbackFunction.h: * API/ObjCCallbackFunction.h: Now inherits directly from InternalFunction. * API/ObjCCallbackFunction.mm: (JSC::ObjCCallbackFunction::ObjCCallbackFunction): (JSC::ObjCCallbackFunction::getCallData): Ditto. * GNUmakefile.list.am: Build files! * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters: * JavaScriptCore.xcodeproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5109edb6