Ignore:
Timestamp:
Jan 15, 2008, 10:43:15 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Geoffrey Garen.

Fix <rdar://problem/5595552> r27608 introduced a 20% increase in JS binary size, 4% increase in WebCore binary size

  • This changes the way JS functions that use Lookup tables are handled. Instead using one class per function, which allowed specialization of the virtual callAsFunction method, we now use on class, PrototypeFunction, which takes a pointer to a static function to use as the implementation. This significantly decreases the binary size of JavaScriptCore (about 145k on an Intel only build) while still keeping some of the speedup r27608 garnered (SunSpider says this is 1.005x as slow, which should leave some wiggle room from the original 1% speedup) and keeps the functions implementations in separate functions to help with optimizations.
  • JavaScriptCore.exp:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/array_object.cpp: (KJS::arrayProtoFuncToString): (KJS::arrayProtoFuncToLocaleString): (KJS::arrayProtoFuncJoin): (KJS::arrayProtoFuncConcat): (KJS::arrayProtoFuncPop): (KJS::arrayProtoFuncPush): (KJS::arrayProtoFuncReverse): (KJS::arrayProtoFuncShift): (KJS::arrayProtoFuncSlice): (KJS::arrayProtoFuncSort): (KJS::arrayProtoFuncSplice): (KJS::arrayProtoFuncUnShift): (KJS::arrayProtoFuncFilter): (KJS::arrayProtoFuncMap): (KJS::arrayProtoFuncEvery): (KJS::arrayProtoFuncForEach): (KJS::arrayProtoFuncSome): (KJS::arrayProtoFuncIndexOf): (KJS::arrayProtoFuncLastIndexOf):
  • kjs/array_object.h:
  • kjs/date_object.cpp: (KJS::DatePrototype::getOwnPropertySlot): (KJS::dateProtoFuncToString): (KJS::dateProtoFuncToUTCString): (KJS::dateProtoFuncToDateString): (KJS::dateProtoFuncToTimeString): (KJS::dateProtoFuncToLocaleString): (KJS::dateProtoFuncToLocaleDateString): (KJS::dateProtoFuncToLocaleTimeString): (KJS::dateProtoFuncValueOf): (KJS::dateProtoFuncGetTime): (KJS::dateProtoFuncGetFullYear): (KJS::dateProtoFuncGetUTCFullYear): (KJS::dateProtoFuncToGMTString): (KJS::dateProtoFuncGetMonth): (KJS::dateProtoFuncGetUTCMonth): (KJS::dateProtoFuncGetDate): (KJS::dateProtoFuncGetUTCDate): (KJS::dateProtoFuncGetDay): (KJS::dateProtoFuncGetUTCDay): (KJS::dateProtoFuncGetHours): (KJS::dateProtoFuncGetUTCHours): (KJS::dateProtoFuncGetMinutes): (KJS::dateProtoFuncGetUTCMinutes): (KJS::dateProtoFuncGetSeconds): (KJS::dateProtoFuncGetUTCSeconds): (KJS::dateProtoFuncGetMilliSeconds): (KJS::dateProtoFuncGetUTCMilliseconds): (KJS::dateProtoFuncGetTimezoneOffset): (KJS::dateProtoFuncSetTime): (KJS::dateProtoFuncSetMilliSeconds): (KJS::dateProtoFuncSetUTCMilliseconds): (KJS::dateProtoFuncSetSeconds): (KJS::dateProtoFuncSetUTCSeconds): (KJS::dateProtoFuncSetMinutes): (KJS::dateProtoFuncSetUTCMinutes): (KJS::dateProtoFuncSetHours): (KJS::dateProtoFuncSetUTCHours): (KJS::dateProtoFuncSetDate): (KJS::dateProtoFuncSetUTCDate): (KJS::dateProtoFuncSetMonth): (KJS::dateProtoFuncSetUTCMonth): (KJS::dateProtoFuncSetFullYear): (KJS::dateProtoFuncSetUTCFullYear): (KJS::dateProtoFuncSetYear): (KJS::dateProtoFuncGetYear):
  • kjs/date_object.h:
  • kjs/function.cpp: (KJS::PrototypeFunction::PrototypeFunction): (KJS::PrototypeFunction::callAsFunction):
  • kjs/function.h:
  • kjs/lookup.h: (KJS::HashEntry::): (KJS::staticFunctionGetter):
  • kjs/math_object.cpp: (KJS::mathProtoFuncAbs): (KJS::mathProtoFuncACos): (KJS::mathProtoFuncASin): (KJS::mathProtoFuncATan): (KJS::mathProtoFuncATan2): (KJS::mathProtoFuncCeil): (KJS::mathProtoFuncCos): (KJS::mathProtoFuncExp): (KJS::mathProtoFuncFloor): (KJS::mathProtoFuncLog): (KJS::mathProtoFuncMax): (KJS::mathProtoFuncMin): (KJS::mathProtoFuncPow): (KJS::mathProtoFuncRandom): (KJS::mathProtoFuncRound): (KJS::mathProtoFuncSin): (KJS::mathProtoFuncSqrt): (KJS::mathProtoFuncTan):
  • kjs/math_object.h:
  • kjs/string_object.cpp: (KJS::stringProtoFuncToString): (KJS::stringProtoFuncValueOf): (KJS::stringProtoFuncCharAt): (KJS::stringProtoFuncCharCodeAt): (KJS::stringProtoFuncConcat): (KJS::stringProtoFuncIndexOf): (KJS::stringProtoFuncLastIndexOf): (KJS::stringProtoFuncMatch): (KJS::stringProtoFuncSearch): (KJS::stringProtoFuncReplace): (KJS::stringProtoFuncSlice): (KJS::stringProtoFuncSplit): (KJS::stringProtoFuncSubstr): (KJS::stringProtoFuncSubstring): (KJS::stringProtoFuncToLowerCase): (KJS::stringProtoFuncToUpperCase): (KJS::stringProtoFuncToLocaleLowerCase): (KJS::stringProtoFuncToLocaleUpperCase): (KJS::stringProtoFuncLocaleCompare): (KJS::stringProtoFuncBig): (KJS::stringProtoFuncSmall): (KJS::stringProtoFuncBlink): (KJS::stringProtoFuncBold): (KJS::stringProtoFuncFixed): (KJS::stringProtoFuncItalics): (KJS::stringProtoFuncStrike): (KJS::stringProtoFuncSub): (KJS::stringProtoFuncSup): (KJS::stringProtoFuncFontcolor): (KJS::stringProtoFuncFontsize): (KJS::stringProtoFuncAnchor): (KJS::stringProtoFuncLink):
  • kjs/string_object.h:

WebCore:

Reviewed by Geoffrey Garen.

Fix <rdar://problem/5595552> r27608 introduced a 20% increase in JS binary size, 4% increase in WebCore binary size

  • Update JS Function implementations to use a static function based method. This decreases the binary size of an Intel only build by 1013.5K.
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::customGetOwnPropertySlot):
  • bindings/js/JSEventTargetBase.cpp: (WebCore::jsEventTargetAddEventListener): (WebCore::jsEventTargetRemoveEventListener): (WebCore::jsEventTargetDispatchEvent): (WebCore::retrieveEventTargetAndCorrespondingNode):
  • bindings/js/JSEventTargetBase.h:
  • bindings/js/JSHTMLInputElementBase.cpp: (WebCore::jsHTMLInputElementBaseFunctionSetSelectionRange): (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
  • bindings/js/JSHTMLInputElementBase.h:
  • bindings/js/JSLocation.cpp: (WebCore::JSLocation::getOwnPropertySlot): (WebCore::jsLocationProtoFuncReplace): (WebCore::jsLocationProtoFuncReload): (WebCore::jsLocationProtoFuncAssign): (WebCore::jsLocationProtoFuncToString):
  • bindings/js/JSLocation.h:
  • bindings/js/JSXMLHttpRequest.cpp: (KJS::jsXMLHttpRequestPrototypeFunctionAbort): (KJS::jsXMLHttpRequestPrototypeFunctionGetAllResponseHeaders): (KJS::jsXMLHttpRequestPrototypeFunctionGetResponseHeader): (KJS::jsXMLHttpRequestPrototypeFunctionOpen): (KJS::jsXMLHttpRequestPrototypeFunctionSend): (KJS::jsXMLHttpRequestPrototypeFunctionSetRequestHeader): (KJS::jsXMLHttpRequestPrototypeFunctionOverrideMIMEType): (KJS::jsXMLHttpRequestPrototypeFunctionAddEventListener): (KJS::jsXMLHttpRequestPrototypeFunctionRemoveEventListener): (KJS::jsXMLHttpRequestPrototypeFunctionDispatchEvent):
  • bindings/js/JSXMLHttpRequest.h:
  • bindings/js/JSXSLTProcessor.cpp: (KJS::jsXSLTProcessorPrototypeFunctionImportStylesheet): (KJS::jsXSLTProcessorPrototypeFunctionTransformToFragment): (KJS::jsXSLTProcessorPrototypeFunctionTransformToDocument): (KJS::jsXSLTProcessorPrototypeFunctionSetParameter): (KJS::jsXSLTProcessorPrototypeFunctionGetParameter): (KJS::jsXSLTProcessorPrototypeFunctionRemoveParameter): (KJS::jsXSLTProcessorPrototypeFunctionClearParameters): (KJS::jsXSLTProcessorPrototypeFunctionReset):
  • bindings/js/JSXSLTProcessor.h:
  • bindings/js/kjs_events.cpp: (WebCore::jsClipboardPrototypeFunctionClearData): (WebCore::jsClipboardPrototypeFunctionGetData): (WebCore::jsClipboardPrototypeFunctionSetData): (WebCore::jsClipboardPrototypeFunctionSetDragImage):
  • bindings/js/kjs_events.h:
  • bindings/js/kjs_navigator.cpp: (KJS::pluginsFunctionRefresh): (KJS::navigatorProtoFuncJavaEnabled):
  • bindings/js/kjs_navigator.h:
  • bindings/js/kjs_window.cpp: (KJS::Window::getOwnPropertySlot): (KJS::windowProtoFuncAToB): (KJS::windowProtoFuncBToA): (KJS::windowProtoFuncOpen): (KJS::windowProtoFuncSetTimeout): (KJS::windowProtoFuncClearTimeout): (KJS::windowProtoFuncSetInterval): (KJS::windowProtoFuncAddEventListener): (KJS::windowProtoFuncRemoveEventListener): (KJS::windowProtoFuncShowModalDialog): (KJS::windowProtoFuncNotImplemented):
  • bindings/js/kjs_window.h:
  • bindings/scripts/CodeGenerator.pm:
  • bindings/scripts/CodeGeneratorJS.pm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r29217 r29508  
    376376   FIXMEL We could use templates to simplify the UTC variants.
    377377@begin dateTable 61
    378   toString              &DateProtoFuncToString::create                DontEnum|Function       0
    379   toUTCString           &DateProtoFuncToUTCString::create             DontEnum|Function       0
    380   toDateString          &DateProtoFuncToDateString::create            DontEnum|Function       0
    381   toTimeString          &DateProtoFuncToTimeString::create            DontEnum|Function       0
    382   toLocaleString        &DateProtoFuncToLocaleString::create          DontEnum|Function       0
    383   toLocaleDateString    &DateProtoFuncToLocaleDateString::create      DontEnum|Function       0
    384   toLocaleTimeString    &DateProtoFuncToLocaleTimeString::create      DontEnum|Function       0
    385   valueOf               &DateProtoFuncValueOf::create                 DontEnum|Function       0
    386   getTime               &DateProtoFuncGetTime::create                 DontEnum|Function       0
    387   getFullYear           &DateProtoFuncGetFullYear::create             DontEnum|Function       0
    388   getUTCFullYear        &DateProtoFuncGetUTCFullYear::create          DontEnum|Function       0
    389   toGMTString           &DateProtoFuncToGMTString::create             DontEnum|Function       0
    390   getMonth              &DateProtoFuncGetMonth::create                DontEnum|Function       0
    391   getUTCMonth           &DateProtoFuncGetUTCMonth::create             DontEnum|Function       0
    392   getDate               &DateProtoFuncGetDate::create                 DontEnum|Function       0
    393   getUTCDate            &DateProtoFuncGetUTCDate::create              DontEnum|Function       0
    394   getDay                &DateProtoFuncGetDay::create                  DontEnum|Function       0
    395   getUTCDay             &DateProtoFuncGetUTCDay::create               DontEnum|Function       0
    396   getHours              &DateProtoFuncGetHours::create                DontEnum|Function       0
    397   getUTCHours           &DateProtoFuncGetUTCHours::create             DontEnum|Function       0
    398   getMinutes            &DateProtoFuncGetMinutes::create              DontEnum|Function       0
    399   getUTCMinutes         &DateProtoFuncGetUTCMinutes::create           DontEnum|Function       0
    400   getSeconds            &DateProtoFuncGetSeconds::create              DontEnum|Function       0
    401   getUTCSeconds         &DateProtoFuncGetUTCSeconds::create           DontEnum|Function       0
    402   getMilliseconds       &DateProtoFuncGetMilliSeconds::create         DontEnum|Function       0
    403   getUTCMilliseconds    &DateProtoFuncGetUTCMilliseconds::create      DontEnum|Function       0
    404   getTimezoneOffset     &DateProtoFuncGetTimezoneOffset::create       DontEnum|Function       0
    405   setTime               &DateProtoFuncSetTime::create                 DontEnum|Function       1
    406   setMilliseconds       &DateProtoFuncSetMilliSeconds::create         DontEnum|Function       1
    407   setUTCMilliseconds    &DateProtoFuncSetUTCMilliseconds::create      DontEnum|Function       1
    408   setSeconds            &DateProtoFuncSetSeconds::create              DontEnum|Function       2
    409   setUTCSeconds         &DateProtoFuncSetUTCSeconds::create           DontEnum|Function       2
    410   setMinutes            &DateProtoFuncSetMinutes::create              DontEnum|Function       3
    411   setUTCMinutes         &DateProtoFuncSetUTCMinutes::create           DontEnum|Function       3
    412   setHours              &DateProtoFuncSetHours::create                DontEnum|Function       4
    413   setUTCHours           &DateProtoFuncSetUTCHours::create             DontEnum|Function       4
    414   setDate               &DateProtoFuncSetDate::create                 DontEnum|Function       1
    415   setUTCDate            &DateProtoFuncSetUTCDate::create              DontEnum|Function       1
    416   setMonth              &DateProtoFuncSetMonth::create                DontEnum|Function       2
    417   setUTCMonth           &DateProtoFuncSetUTCMonth::create             DontEnum|Function       2
    418   setFullYear           &DateProtoFuncSetFullYear::create             DontEnum|Function       3
    419   setUTCFullYear        &DateProtoFuncSetUTCFullYear::create          DontEnum|Function       3
    420   setYear               &DateProtoFuncSetYear::create                 DontEnum|Function       1
    421   getYear               &DateProtoFuncGetYear::create                 DontEnum|Function       0
     378  toString              dateProtoFuncToString                DontEnum|Function       0
     379  toUTCString           dateProtoFuncToUTCString             DontEnum|Function       0
     380  toDateString          dateProtoFuncToDateString            DontEnum|Function       0
     381  toTimeString          dateProtoFuncToTimeString            DontEnum|Function       0
     382  toLocaleString        dateProtoFuncToLocaleString          DontEnum|Function       0
     383  toLocaleDateString    dateProtoFuncToLocaleDateString      DontEnum|Function       0
     384  toLocaleTimeString    dateProtoFuncToLocaleTimeString      DontEnum|Function       0
     385  valueOf               dateProtoFuncValueOf                 DontEnum|Function       0
     386  getTime               dateProtoFuncGetTime                 DontEnum|Function       0
     387  getFullYear           dateProtoFuncGetFullYear             DontEnum|Function       0
     388  getUTCFullYear        dateProtoFuncGetUTCFullYear          DontEnum|Function       0
     389  toGMTString           dateProtoFuncToGMTString             DontEnum|Function       0
     390  getMonth              dateProtoFuncGetMonth                DontEnum|Function       0
     391  getUTCMonth           dateProtoFuncGetUTCMonth             DontEnum|Function       0
     392  getDate               dateProtoFuncGetDate                 DontEnum|Function       0
     393  getUTCDate            dateProtoFuncGetUTCDate              DontEnum|Function       0
     394  getDay                dateProtoFuncGetDay                  DontEnum|Function       0
     395  getUTCDay             dateProtoFuncGetUTCDay               DontEnum|Function       0
     396  getHours              dateProtoFuncGetHours                DontEnum|Function       0
     397  getUTCHours           dateProtoFuncGetUTCHours             DontEnum|Function       0
     398  getMinutes            dateProtoFuncGetMinutes              DontEnum|Function       0
     399  getUTCMinutes         dateProtoFuncGetUTCMinutes           DontEnum|Function       0
     400  getSeconds            dateProtoFuncGetSeconds              DontEnum|Function       0
     401  getUTCSeconds         dateProtoFuncGetUTCSeconds           DontEnum|Function       0
     402  getMilliseconds       dateProtoFuncGetMilliSeconds         DontEnum|Function       0
     403  getUTCMilliseconds    dateProtoFuncGetUTCMilliseconds      DontEnum|Function       0
     404  getTimezoneOffset     dateProtoFuncGetTimezoneOffset       DontEnum|Function       0
     405  setTime               dateProtoFuncSetTime                 DontEnum|Function       1
     406  setMilliseconds       dateProtoFuncSetMilliSeconds         DontEnum|Function       1
     407  setUTCMilliseconds    dateProtoFuncSetUTCMilliseconds      DontEnum|Function       1
     408  setSeconds            dateProtoFuncSetSeconds              DontEnum|Function       2
     409  setUTCSeconds         dateProtoFuncSetUTCSeconds           DontEnum|Function       2
     410  setMinutes            dateProtoFuncSetMinutes              DontEnum|Function       3
     411  setUTCMinutes         dateProtoFuncSetUTCMinutes           DontEnum|Function       3
     412  setHours              dateProtoFuncSetHours                DontEnum|Function       4
     413  setUTCHours           dateProtoFuncSetUTCHours             DontEnum|Function       4
     414  setDate               dateProtoFuncSetDate                 DontEnum|Function       1
     415  setUTCDate            dateProtoFuncSetUTCDate              DontEnum|Function       1
     416  setMonth              dateProtoFuncSetMonth                DontEnum|Function       2
     417  setUTCMonth           dateProtoFuncSetUTCMonth             DontEnum|Function       2
     418  setFullYear           dateProtoFuncSetFullYear             DontEnum|Function       3
     419  setUTCFullYear        dateProtoFuncSetUTCFullYear          DontEnum|Function       3
     420  setYear               dateProtoFuncSetYear                 DontEnum|Function       1
     421  getYear               dateProtoFuncGetYear                 DontEnum|Function       0
    422422@end
    423423*/
     
    431431}
    432432
    433 bool DatePrototype::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
     433bool DatePrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
    434434{
    435435    return getStaticFunctionSlot<JSObject>(exec, &dateTable, this, propertyName, slot);
     
    936936// Functions
    937937
    938 JSValue* DateProtoFuncToString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     938JSValue* dateProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
    939939{
    940940    if (!thisObj->inherits(&DateInstance::info))
     
    954954}
    955955
    956 JSValue* DateProtoFuncToUTCString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     956JSValue* dateProtoFuncToUTCString(ExecState* exec, JSObject* thisObj, const List&)
    957957{
    958958    if (!thisObj->inherits(&DateInstance::info))
     
    972972}
    973973
    974 JSValue* DateProtoFuncToDateString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     974JSValue* dateProtoFuncToDateString(ExecState* exec, JSObject* thisObj, const List&)
    975975{
    976976    if (!thisObj->inherits(&DateInstance::info))
     
    990990}
    991991
    992 JSValue* DateProtoFuncToTimeString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     992JSValue* dateProtoFuncToTimeString(ExecState* exec, JSObject* thisObj, const List&)
    993993{
    994994    if (!thisObj->inherits(&DateInstance::info))
     
    10081008}
    10091009
    1010 JSValue* DateProtoFuncToLocaleString::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1010JSValue* dateProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List& args)
    10111011{
    10121012    if (!thisObj->inherits(&DateInstance::info))
     
    10331033}
    10341034
    1035 JSValue* DateProtoFuncToLocaleDateString::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1035JSValue* dateProtoFuncToLocaleDateString(ExecState* exec, JSObject* thisObj, const List& args)
    10361036{
    10371037    if (!thisObj->inherits(&DateInstance::info))
     
    10581058}
    10591059
    1060 JSValue* DateProtoFuncToLocaleTimeString::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1060JSValue* dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject* thisObj, const List& args)
    10611061{
    10621062    if (!thisObj->inherits(&DateInstance::info))
     
    10831083}
    10841084
    1085 JSValue* DateProtoFuncValueOf::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1085JSValue* dateProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)
    10861086{
    10871087    if (!thisObj->inherits(&DateInstance::info))
     
    10971097}
    10981098
    1099 JSValue* DateProtoFuncGetTime::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1099JSValue* dateProtoFuncGetTime(ExecState* exec, JSObject* thisObj, const List&)
    11001100{
    11011101    if (!thisObj->inherits(&DateInstance::info))
     
    11111111}
    11121112
    1113 JSValue* DateProtoFuncGetFullYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1113JSValue* dateProtoFuncGetFullYear(ExecState* exec, JSObject* thisObj, const List&)
    11141114{
    11151115    if (!thisObj->inherits(&DateInstance::info))
     
    11291129}
    11301130
    1131 JSValue* DateProtoFuncGetUTCFullYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1131JSValue* dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject* thisObj, const List&)
    11321132{
    11331133    if (!thisObj->inherits(&DateInstance::info))
     
    11471147}
    11481148
    1149 JSValue* DateProtoFuncToGMTString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1149JSValue* dateProtoFuncToGMTString(ExecState* exec, JSObject* thisObj, const List&)
    11501150{
    11511151    if (!thisObj->inherits(&DateInstance::info))
     
    11651165}
    11661166
    1167 JSValue* DateProtoFuncGetMonth::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1167JSValue* dateProtoFuncGetMonth(ExecState* exec, JSObject* thisObj, const List&)
    11681168{
    11691169    if (!thisObj->inherits(&DateInstance::info))
     
    11831183}
    11841184
    1185 JSValue* DateProtoFuncGetUTCMonth::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1185JSValue* dateProtoFuncGetUTCMonth(ExecState* exec, JSObject* thisObj, const List&)
    11861186{
    11871187    if (!thisObj->inherits(&DateInstance::info))
     
    12011201}
    12021202
    1203 JSValue* DateProtoFuncGetDate::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1203JSValue* dateProtoFuncGetDate(ExecState* exec, JSObject* thisObj, const List&)
    12041204{
    12051205    if (!thisObj->inherits(&DateInstance::info))
     
    12191219}
    12201220
    1221 JSValue* DateProtoFuncGetUTCDate::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1221JSValue* dateProtoFuncGetUTCDate(ExecState* exec, JSObject* thisObj, const List&)
    12221222{
    12231223    if (!thisObj->inherits(&DateInstance::info))
     
    12371237}
    12381238
    1239 JSValue* DateProtoFuncGetDay::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1239JSValue* dateProtoFuncGetDay(ExecState* exec, JSObject* thisObj, const List&)
    12401240{
    12411241    if (!thisObj->inherits(&DateInstance::info))
     
    12551255}
    12561256
    1257 JSValue* DateProtoFuncGetUTCDay::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1257JSValue* dateProtoFuncGetUTCDay(ExecState* exec, JSObject* thisObj, const List&)
    12581258{
    12591259    if (!thisObj->inherits(&DateInstance::info))
     
    12731273}
    12741274
    1275 JSValue* DateProtoFuncGetHours::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1275JSValue* dateProtoFuncGetHours(ExecState* exec, JSObject* thisObj, const List&)
    12761276{
    12771277    if (!thisObj->inherits(&DateInstance::info))
     
    12911291}
    12921292
    1293 JSValue* DateProtoFuncGetUTCHours::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1293JSValue* dateProtoFuncGetUTCHours(ExecState* exec, JSObject* thisObj, const List&)
    12941294{
    12951295    if (!thisObj->inherits(&DateInstance::info))
     
    13091309}
    13101310
    1311 JSValue* DateProtoFuncGetMinutes::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1311JSValue* dateProtoFuncGetMinutes(ExecState* exec, JSObject* thisObj, const List&)
    13121312{
    13131313    if (!thisObj->inherits(&DateInstance::info))
     
    13271327}
    13281328
    1329 JSValue* DateProtoFuncGetUTCMinutes::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1329JSValue* dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject* thisObj, const List&)
    13301330{
    13311331    if (!thisObj->inherits(&DateInstance::info))
     
    13451345}
    13461346
    1347 JSValue* DateProtoFuncGetSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1347JSValue* dateProtoFuncGetSeconds(ExecState* exec, JSObject* thisObj, const List&)
    13481348{
    13491349    if (!thisObj->inherits(&DateInstance::info))
     
    13631363}
    13641364
    1365 JSValue* DateProtoFuncGetUTCSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1365JSValue* dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject* thisObj, const List&)
    13661366{
    13671367    if (!thisObj->inherits(&DateInstance::info))
     
    13811381}
    13821382
    1383 JSValue* DateProtoFuncGetMilliSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1383JSValue* dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject* thisObj, const List&)
    13841384{
    13851385    if (!thisObj->inherits(&DateInstance::info))
     
    13971397}
    13981398
    1399 JSValue* DateProtoFuncGetUTCMilliseconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1399JSValue* dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List&)
    14001400{
    14011401    if (!thisObj->inherits(&DateInstance::info))
     
    14131413}
    14141414
    1415 JSValue* DateProtoFuncGetTimezoneOffset::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1415JSValue* dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject* thisObj, const List&)
    14161416{
    14171417    if (!thisObj->inherits(&DateInstance::info))
     
    14311431}
    14321432
    1433 JSValue* DateProtoFuncSetTime::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1433JSValue* dateProtoFuncSetTime(ExecState* exec, JSObject* thisObj, const List& args)
    14341434{
    14351435    if (!thisObj->inherits(&DateInstance::info))
     
    14861486}
    14871487
    1488 JSValue* DateProtoFuncSetMilliSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1488JSValue* dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject* thisObj, const List& args)
    14891489{
    14901490    const bool inputIsUTC = false;
     
    14921492}
    14931493
    1494 JSValue* DateProtoFuncSetUTCMilliseconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1494JSValue* dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List& args)
    14951495{
    14961496    const bool inputIsUTC = true;
     
    14981498}
    14991499
    1500 JSValue* DateProtoFuncSetSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1500JSValue* dateProtoFuncSetSeconds(ExecState* exec, JSObject* thisObj, const List& args)
    15011501{
    15021502    const bool inputIsUTC = false;
     
    15041504}
    15051505
    1506 JSValue* DateProtoFuncSetUTCSeconds::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1506JSValue* dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject* thisObj, const List& args)
    15071507{
    15081508    const bool inputIsUTC = true;
     
    15101510}
    15111511
    1512 JSValue* DateProtoFuncSetMinutes::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1512JSValue* dateProtoFuncSetMinutes(ExecState* exec, JSObject* thisObj, const List& args)
    15131513{
    15141514    const bool inputIsUTC = false;
     
    15161516}
    15171517
    1518 JSValue* DateProtoFuncSetUTCMinutes::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1518JSValue* dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject* thisObj, const List& args)
    15191519{
    15201520    const bool inputIsUTC = true;
     
    15221522}
    15231523
    1524 JSValue* DateProtoFuncSetHours::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1524JSValue* dateProtoFuncSetHours(ExecState* exec, JSObject* thisObj, const List& args)
    15251525{
    15261526    const bool inputIsUTC = false;
     
    15281528}
    15291529
    1530 JSValue* DateProtoFuncSetUTCHours::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1530JSValue* dateProtoFuncSetUTCHours(ExecState* exec, JSObject* thisObj, const List& args)
    15311531{
    15321532    const bool inputIsUTC = true;
     
    15341534}
    15351535
    1536 JSValue* DateProtoFuncSetDate::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1536JSValue* dateProtoFuncSetDate(ExecState* exec, JSObject* thisObj, const List& args)
    15371537{
    15381538    const bool inputIsUTC = false;
     
    15401540}
    15411541
    1542 JSValue* DateProtoFuncSetUTCDate::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1542JSValue* dateProtoFuncSetUTCDate(ExecState* exec, JSObject* thisObj, const List& args)
    15431543{
    15441544    const bool inputIsUTC = true;
     
    15461546}
    15471547
    1548 JSValue* DateProtoFuncSetMonth::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1548JSValue* dateProtoFuncSetMonth(ExecState* exec, JSObject* thisObj, const List& args)
    15491549{
    15501550    const bool inputIsUTC = false;
     
    15521552}
    15531553
    1554 JSValue* DateProtoFuncSetUTCMonth::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1554JSValue* dateProtoFuncSetUTCMonth(ExecState* exec, JSObject* thisObj, const List& args)
    15551555{
    15561556    const bool inputIsUTC = true;
     
    15581558}
    15591559
    1560 JSValue* DateProtoFuncSetFullYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1560JSValue* dateProtoFuncSetFullYear(ExecState* exec, JSObject* thisObj, const List& args)
    15611561{
    15621562    const bool inputIsUTC = false;
     
    15641564}
    15651565
    1566 JSValue* DateProtoFuncSetUTCFullYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1566JSValue* dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject* thisObj, const List& args)
    15671567{
    15681568    const bool inputIsUTC = true;
     
    15701570}
    15711571
    1572 JSValue* DateProtoFuncSetYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
     1572JSValue* dateProtoFuncSetYear(ExecState* exec, JSObject* thisObj, const List& args)
    15731573{
    15741574    if (!thisObj->inherits(&DateInstance::info))
     
    15931593}
    15941594
    1595 JSValue* DateProtoFuncGetYear::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)
     1595JSValue* dateProtoFuncGetYear(ExecState* exec, JSObject* thisObj, const List&)
    15961596{
    15971597    if (!thisObj->inherits(&DateInstance::info))
Note: See TracChangeset for help on using the changeset viewer.