Skip to content
  • commit-queue@webkit.org's avatar
    Move preprocessing of idl to pre-pass for gyp · d1c4339a
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=113448
    
    Patch by Scott Graham <scottmg@chromium.org> on 2013-03-28
    Reviewed by Tony Chang.
    
    Moves the preprocessor invocations when parsing IDL files to a
    pre-pass to avoid reinvocations when IDLs are referenced from others.
    This reduces the number of invocations of the preprocessor from 20071
    to 633, which reduces the runtime from 12m30 to 1m (on a Windows box).
    
    No new tests, this is a build time improvement, and shouldn't have any
    visible effect.
    
    * WebCore.gyp/WebCore.gyp:
    * bindings/scripts/CodeGenerator.pm:
    (ParseInterface):
    * bindings/scripts/IDLParser.pm:
    (Parse):
    * bindings/scripts/generate-bindings.pl:
    * bindings/scripts/generate-preprocessed-idls.pl: Added.
    * bindings/scripts/preprocessor.pm:
    (applyPreprocessor):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d1c4339a