Speed up Function.prototype.bind a bit by making it a builtin
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Sep 2016 02:57:37 +0000 (02:57 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Sep 2016 02:57:37 +0000 (02:57 +0000)
commit7cb578580ecfb0101a2f3d25ce613d009c14c577
tree276eeeeed3db8882a962bf687f1105d8354617cd
parent3fde62257e4ed6786d871830e536b74beef73437
Speed up Function.prototype.bind a bit by making it a builtin
https://bugs.webkit.org/show_bug.cgi?id=161879

Reviewed by Filip Pizlo.

JSTests:

* microbenchmarks/function-bind-inlining.js: Added.
(assert):
(test):
(test2):
(foo):
* microbenchmarks/function-bind-no-inlining.js: Added.
(assert):
(test):
(test2):
(foo):

LayoutTests:

* js/dom/function-bind-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@205848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/microbenchmarks/function-bind-inlining.js [new file with mode: 0644]
JSTests/microbenchmarks/function-bind-no-inlining.js [new file with mode: 0644]
LayoutTests/ChangeLog
LayoutTests/js/dom/function-bind-expected.txt
Source/JavaScriptCore/builtins/BuiltinNames.h
Source/JavaScriptCore/builtins/FunctionPrototype.js
Source/JavaScriptCore/runtime/FunctionPrototype.cpp
Source/JavaScriptCore/runtime/JSGlobalObject.cpp