Don't optimize variadic closure calls
https://bugs.webkit.org/show_bug.cgi?id=128835

Source/JavaScriptCore: 

Reviewed by Gavin Barraclough.
        
Read the check that had been in JITStubs.cpp, back in the day. This code came
from the DFG and the DFG didn't need these checks.

* jit/JITOperations.cpp:

LayoutTests: 

Reviewed by Gavin Barraclough.
        
Add a test that covers both the performance and correctness of this case.

* js/regress/script-tests/variadic-closure-call.js: Added.
(foo.bar):
(foo):
* js/regress/variadic-closure-call-expected.txt: Added.
* js/regress/variadic-closure-call.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed