2008-09-30 Cameron Zwarich <zwarich@apple.com>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2008 22:17:55 +0000 (22:17 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Sep 2008 22:17:55 +0000 (22:17 +0000)
commit61629c70b154a46be75cdd2fd24932a586195e06
treeb84d7f38ca09661cc9c6ca004712ebd210617925
parent628aad625cc96bb4335c517da5bd6fb3b9fa0293
2008-09-30  Cameron Zwarich  <zwarich@apple.com>

        Reviewed by Geoff Garen.

        Move all detection of 'arguments' in a lexical scope to the parser, in
        preparation for fixing

        Bug 21123: using "arguments" in a function should not force creation of an activation object
        <https://bugs.webkit.org/show_bug.cgi?id=21123>

        JavaScriptCore:

        * VM/CodeGenerator.cpp:
        (JSC::CodeGenerator::CodeGenerator):
        * kjs/NodeInfo.h:
        * kjs/grammar.y:

        LayoutTests:

        * fast/js/arguments-expected.txt:
        * fast/js/function-dot-arguments-expected.txt: Added.
        * fast/js/function-dot-arguments.html: Added.
        * fast/js/resources/arguments.js:
        * fast/js/resources/function-dot-arguments.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@37117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/VM/CodeGenerator.cpp
JavaScriptCore/kjs/NodeInfo.h
JavaScriptCore/kjs/grammar.y
LayoutTests/ChangeLog
LayoutTests/fast/js/arguments-expected.txt
LayoutTests/fast/js/function-dot-arguments-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/function-dot-arguments.html [new file with mode: 0644]
LayoutTests/fast/js/resources/arguments.js
LayoutTests/fast/js/resources/function-dot-arguments.js [new file with mode: 0644]