[CodeGeneratorJS] Sort output of StructureFlags and function parameters

https://bugs.webkit.org/show_bug.cgi?id=127226

Reviewed by Alexey Proskuryakov.

The order of the keys in a hash is undefined and subject to change
between different Perl versions, so we have to sort them to make
sure that the output is always the same.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateParametersCheckExpression):
* bindings/scripts/test/JS/JSTestActiveDOMObject.h:
* bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
* bindings/scripts/test/JS/JSTestEventConstructor.h:
* bindings/scripts/test/JS/JSTestEventTarget.h:
* bindings/scripts/test/JS/JSTestException.h:
* bindings/scripts/test/JS/JSTestGenerateIsReachable.h:
* bindings/scripts/test/JS/JSTestInterface.h:
* bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
* bindings/scripts/test/JS/JSTestNamedConstructor.h:
* bindings/scripts/test/JS/JSTestNode.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
* bindings/scripts/test/JS/JSTestObj.h:
* bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
* bindings/scripts/test/JS/JSTestTypedefs.h:
* bindings/scripts/test/JS/JSattribute.h:
* bindings/scripts/test/JS/JSreadonly.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CodeBlock: Size m_function{Exprs,Decls} to fit from creation.
<https://webkit.org/b/127238>

Reviewed by Anders Carlsson.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::CodeBlock):

    Use resizeToFit() instead of grow() for m_functionExprs and
    m_functionDecls since we know they will never change size.

(JSC::CodeBlock::shrinkToFit):

    No need to shrink them here anymore.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Apple Windows port gardering.

Rebaseline subpixel layout results.

* platform/win/TestExpectations:
* platform/win/css1/box_properties/margin_right-expected.txt: Added.
* platform/win/css1/box_properties/padding-expected.txt: Added.
* platform/win/css1/box_properties/padding_left-expected.txt: Added.
* platform/win/css1/box_properties/padding_right-expected.txt: Added.
* platform/win/css1/box_properties/padding_top-expected.txt: Added.
* platform/win/css1/font_properties/font-expected.txt:
* platform/win/css1/formatting_model/vertical_formatting-expected.txt: Added.
* platform/win/css2.1/t080301-c411-vt-mrgn-00-b-expected.txt: Added.
* platform/win/css2.1/t0804-c5507-padn-r-00-c-ag-expected.txt: Added.
* platform/win/css2.1/t0804-c5509-padn-l-00-b-ag-expected.txt: Added.
* platform/win/css2.1/t0804-c5510-padn-00-b-ag-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-wrap-00-e-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-00-c-g-expected.txt:
* platform/win/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt:
* platform/win/fast/borders/bidi-012-expected.txt:
* platform/win/fast/css/empty-pseudo-class-expected.txt: Added.
* platform/win/fast/css/fieldset-display-row-expected.txt: Added.
* platform/win/fast/css/first-child-pseudo-class-expected.txt: Added.
* platform/win/fast/css/last-child-pseudo-class-expected.txt: Added.
* platform/win/fast/css/only-child-pseudo-class-expected.txt: Added.
* platform/win/fast/forms/file/file-input-disabled-expected.txt:
* platform/win/fast/forms/range/slider-mouse-events-expected.txt:
* platform/win/fast/inline/inline-box-background-expected.txt:
* platform/win/fast/inline/inline-box-background-long-image-expected.txt:
* platform/win/fast/inline/inline-box-background-repeat-x-expected.txt:
* platform/win/fast/inline/inline-box-background-repeat-y-expected.txt:
* platform/win/fast/lists/003-vertical-expected.txt:
* platform/win/fast/multicol/vertical-rl/float-multicol-expected.txt:
* platform/win/fast/multicol/vertical-rl/nested-columns-expected.txt:
* platform/win/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt:
* platform/win/svg/batik/filters/feTile-expected.txt: Added.
* platform/win/svg/batik/masking/maskRegions-expected.txt: Added.
* platform/win/svg/batik/paints/gradientLimit-expected.txt:
* platform/win/svg/batik/text/textDecoration-expected.txt: Added.
* platform/win/svg/batik/text/textEffect-expected.txt: Added.
* platform/win/svg/batik/text/textLength-expected.txt: Added.
* platform/win/svg/batik/text/textPosition-expected.txt: Added.
* platform/win/svg/batik/text/verticalText-expected.txt: Added.
* platform/win/transforms/2d/hindi-rotated-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/Scripts/test-webkitperl fails: 'tempdir' can't be called as a method
https://bugs.webkit.org/show_bug.cgi?id=127217

Reviewed by Daniel Bates.

The syntax File::Temp->tempdir() was explicitly made invalid
following <https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565>
which was included in File::Temp v2.30, shipped with Perl v5.18.0.

Use File::Temp::tempdir() instead.

* Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CodeBlock: Size m_callLinkInfos and m_byValInfos to fit earlier.
<https://webkit.org/b/127239>

Reviewed by Anders Carlsson.

* bytecode/CodeBlock.h:
(JSC::CodeBlock::setNumberOfByValInfos):
(JSC::CodeBlock::setNumberOfCallLinkInfos):

    Use resizeToFit() instead of grow() for these vectors, since
    we know the final size here.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::shrinkToFit):

    No need to shrink here anymore. We were not even shrinking
    m_byValInfo before!


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162284 268f45cc-cd09-0410-ab3c-d52691b4dbfc