Ignore:
Timestamp:
Jun 16, 2014, 8:55:14 PM (11 years ago)
Author:
[email protected]
Message:

Move forward declaration of bindings static functions into their implementation files
https://bugs.webkit.org/show_bug.cgi?id=133943

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

  • runtime/CommonIdentifiers.h:

Add a few identifiers that are needed by the DOM.

Source/WebCore:

  • Moves the forward declaration of static functions for generated files to the implementation.
  • Adds a new extended attribute, ForwardDeclareInHeader, for functions that still need a forward declaration in the header.
  • bindings/js/JSDOMBinding.h:

(WebCore::nonCachingStaticFunctionGetter):
Move this helper here from JSDOMWindowCustom.cpp.

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::getOwnPropertySlot):
Switch to comparing the property name directly rather than looking up in the static table and
comparing function pointers.

  • bindings/js/JSHistoryCustom.cpp:

(WebCore::JSHistory::getOwnPropertySlotDelegate):
Switch to comparing the property name directly rather than looking up in the static table and
comparing function pointers and start using the nonCachingStaticFunctionGetter<> helper.

  • bindings/js/JSLocationCustom.cpp:

(WebCore::JSLocation::getOwnPropertySlotDelegate):
(WebCore::JSLocation::putDelegate):
Switch to comparing the property name directly rather than looking up in the static table and
comparing function pointers and start using the nonCachingStaticFunctionGetter<> helper.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):
Move forward declaration creation to the implementation file where possible.

  • bindings/scripts/IDLAttributes.txt:

Add ForwardDeclareInHeader.

  • page/DOMWindow.idl:
  • page/History.idl:
  • page/Location.idl:

Add ForwardDeclareInHeader where necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h

    r167313 r170042  
    6565    macro(anonymous) \
    6666    macro(arguments) \
     67    macro(assign) \
     68    macro(back) \
    6769    macro(bind) \
     70    macro(blur) \
    6871    macro(buffer) \
    6972    macro(byteLength) \
     
    7780    macro(cast) \
    7881    macro(clear) \
     82    macro(close) \
     83    macro(closed) \
    7984    macro(compilationKind) \
    8085    macro(compilations) \
     
    95100    macro(executionCount) \
    96101    macro(exitKind) \
     102    macro(focus) \
    97103    macro(forEach) \
     104    macro(forward) \
    98105    macro(fromCharCode) \
    99106    macro(get) \
    100107    macro(global) \
     108    macro(go) \
    101109    macro(has) \
    102110    macro(hasOwnProperty) \
    103111    macro(hash) \
    104112    macro(header) \
     113    macro(href) \
    105114    macro(id) \
    106115    macro(ignoreCase) \
     
    132141    macro(osrExits) \
    133142    macro(parse) \
     143    macro(postMessage) \
    134144    macro(profiledBytecodes) \
    135145    macro(propertyIsEnumerable) \
    136146    macro(prototype) \
     147    macro(reload) \
     148    macro(replace) \
    137149    macro(set) \
     150    macro(showModalDialog) \
    138151    macro(size) \
    139152    macro(slice) \
     
    152165    macro(toString) \
    153166    macro(value) \
     167    macro(valueOf) \
    154168    macro(values) \
    155     macro(valueOf) \
    156169    macro(window) \
    157170    macro(writable)
Note: See TracChangeset for help on using the changeset viewer.