<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[205848] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/205848">205848</a></dd>
<dt>Author</dt> <dd>sbarati@apple.com</dd>
<dt>Date</dt> <dd>2016-09-12 19:57:37 -0700 (Mon, 12 Sep 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>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:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkJSTestsChangeLog">trunk/JSTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsjsdomfunctionbindexpectedtxt">trunk/LayoutTests/js/dom/function-bind-expected.txt</a></li>
<li><a href="#trunkSourceJavaScriptCorebuiltinsBuiltinNamesh">trunk/Source/JavaScriptCore/builtins/BuiltinNames.h</a></li>
<li><a href="#trunkSourceJavaScriptCorebuiltinsFunctionPrototypejs">trunk/Source/JavaScriptCore/builtins/FunctionPrototype.js</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeFunctionPrototypecpp">trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp">trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkJSTestsmicrobenchmarksfunctionbindinliningjs">trunk/JSTests/microbenchmarks/function-bind-inlining.js</a></li>
<li><a href="#trunkJSTestsmicrobenchmarksfunctionbindnoinliningjs">trunk/JSTests/microbenchmarks/function-bind-no-inlining.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJSTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JSTests/ChangeLog (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/ChangeLog        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/JSTests/ChangeLog        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -1,5 +1,23 @@
</span><span class="cx"> 2016-09-12 Saam Barati <sbarati@apple.com>
</span><span class="cx">
</span><ins>+ 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.
+
+ * microbenchmarks/function-bind-inlining.js: Added.
+ (assert):
+ (test):
+ (test2):
+ (foo):
+ * microbenchmarks/function-bind-no-inlining.js: Added.
+ (assert):
+ (test):
+ (test2):
+ (foo):
+
+2016-09-12 Saam Barati <sbarati@apple.com>
+
</ins><span class="cx"> HashMapImpl should take into account m_deleteCount in its load factor and it should be able to rehash the table to be smaller
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=161640
</span><span class="cx">
</span></span></pre></div>
<a id="trunkJSTestsmicrobenchmarksfunctionbindinliningjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/microbenchmarks/function-bind-inlining.js (0 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/microbenchmarks/function-bind-inlining.js         (rev 0)
+++ trunk/JSTests/microbenchmarks/function-bind-inlining.js        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+function assert(b) {
+ if (!b)
+ throw new Error("Bad")
+}
+noInline(assert);
+
+function test(f, v, c, d) {
+ return f.bind(v, c, d);
+}
+
+function test2(f, v) {
+ return f.bind(v);
+}
+
+function foo(a,b,c,d,e,f) { return this; }
+let thisValue = {};
+let start = Date.now();
+for (let i = 0; i < 1000000; i++) {
+ let f = test(foo, thisValue, 20, 30);
+ assert(f(foo, thisValue, 20, 30) === thisValue);
+}
+for (let i = 0; i < 1000000; i++) {
+ let f = test2(foo, thisValue);
+ assert(f(foo, thisValue, 20, 30) === thisValue);
+}
+const verbose = false;
+if (verbose)
+ print(Date.now() - start);
</ins></span></pre></div>
<a id="trunkJSTestsmicrobenchmarksfunctionbindnoinliningjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/microbenchmarks/function-bind-no-inlining.js (0 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/microbenchmarks/function-bind-no-inlining.js         (rev 0)
+++ trunk/JSTests/microbenchmarks/function-bind-no-inlining.js        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+
+function assert(b) {
+ if (!b)
+ throw new Error("Bad")
+}
+noInline(assert);
+
+function test(f, v, c, d) {
+ return f.bind(v, c, d);
+}
+noInline(test);
+
+function test2(f, v) {
+ return f.bind(v);
+}
+noInline(test);
+
+function foo(a,b,c,d,e,f) { return this; }
+let thisValue = {};
+let start = Date.now();
+for (let i = 0; i < 1000000; i++) {
+ let f = test(foo, thisValue, 20, 30);
+ assert(f(foo, thisValue, 20, 30) === thisValue);
+}
+for (let i = 0; i < 1000000; i++) {
+ let f = test2(foo, thisValue);
+ assert(f(foo, thisValue, 20, 30) === thisValue);
+}
+const verbose = false;
+if (verbose)
+ print(Date.now() - start);
</ins></span></pre></div>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/LayoutTests/ChangeLog        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2016-09-12 Saam Barati <sbarati@apple.com>
+
+ 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.
+
+ * js/dom/function-bind-expected.txt:
+
</ins><span class="cx"> 2016-09-12 Nan Wang <n_wang@apple.com>
</span><span class="cx">
</span><span class="cx"> AX: Crash at WebCore::Range::compareBoundaryPoints(WebCore::Range::CompareHow, WebCore::Range const&, int&) const + 23
</span></span></pre></div>
<a id="trunkLayoutTestsjsdomfunctionbindexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/function-bind-expected.txt (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/function-bind-expected.txt        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/LayoutTests/js/dom/function-bind-expected.txt        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> PASS "prototype" in F is true
</span><span class="cx"> PASS "prototype" in G is false
</span><span class="cx"> PASS "prototype" in H is false
</span><del>-PASS Function.bind.call(undefined) threw exception TypeError: Type error.
</del><ins>+PASS Function.bind.call(undefined) threw exception TypeError: |this| is not a function inside Function.prototype.bind.
</ins><span class="cx"> PASS abcAt(1) is "b"
</span><span class="cx"> PASS new abcAt(1) threw exception TypeError: function is not a constructor (evaluating 'new abcAt(1)').
</span><span class="cx"> PASS boundFunctionPrototypeAccessed is false
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebuiltinsBuiltinNamesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/builtins/BuiltinNames.h (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/builtins/BuiltinNames.h        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/Source/JavaScriptCore/builtins/BuiltinNames.h        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -160,7 +160,9 @@
</span><span class="cx"> macro(regExpTestFast) \
</span><span class="cx"> macro(stringIncludesInternal) \
</span><span class="cx"> macro(stringSplitFast) \
</span><del>- macro(stringSubstrInternal)
</del><ins>+ macro(stringSubstrInternal) \
+ macro(makeBoundFunction) \
+ macro(hasOwnLengthProperty) \
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> #define INITIALIZE_PRIVATE_TO_PUBLIC_ENTRY(name) m_privateToPublicMap.add(m_##name##PrivateName.impl(), &m_##name);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebuiltinsFunctionPrototypejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/builtins/FunctionPrototype.js (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/builtins/FunctionPrototype.js        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/Source/JavaScriptCore/builtins/FunctionPrototype.js        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -56,3 +56,40 @@
</span><span class="cx"> let target = this.prototype;
</span><span class="cx"> return @instanceOf(value, target);
</span><span class="cx"> }
</span><ins>+
+function bind(thisValue)
+{
+ "use strict";
+
+ let target = this;
+ if (typeof target !== "function")
+ throw new @TypeError("|this| is not a function inside Function.prototype.bind");
+
+ let argumentCount = arguments.length;
+ let boundArgs = null;
+ let numBoundArgs = 0;
+ if (argumentCount > 1) {
+ numBoundArgs = argumentCount - 1;
+ boundArgs = @newArrayWithSize(numBoundArgs);
+ for (let i = 0; i < numBoundArgs; i++)
+ boundArgs[i] = arguments[i + 1];
+ }
+
+ let length = 0;
+ if (@hasOwnLengthProperty(target)) {
+ let lengthValue = target.length;
+ if (typeof lengthValue === "number") {
+ lengthValue = lengthValue | 0;
+ // Note that we only care about positive lengthValues, however, this comparision
+ // against numBoundArgs suffices to prove we're not a negative number.
+ if (lengthValue > numBoundArgs)
+ length = lengthValue - numBoundArgs;
+ }
+ }
+
+ let name = target.name;
+ if (typeof name !== "string")
+ name = "";
+
+ return @makeBoundFunction(target, arguments[0], boundArgs, length, name);
+}
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeFunctionPrototypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -40,7 +40,6 @@
</span><span class="cx"> const ClassInfo FunctionPrototype::s_info = { "Function", &Base::s_info, 0, CREATE_METHOD_TABLE(FunctionPrototype) };
</span><span class="cx">
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL functionProtoFuncToString(ExecState*);
</span><del>-static EncodedJSValue JSC_HOST_CALL functionProtoFuncBind(ExecState*);
</del><span class="cx">
</span><span class="cx"> FunctionPrototype::FunctionPrototype(VM& vm, Structure* structure)
</span><span class="cx"> : InternalFunction(vm, structure)
</span><span class="lines">@@ -63,9 +62,7 @@
</span><span class="cx"> *applyFunction = putDirectBuiltinFunctionWithoutTransition(vm, globalObject, vm.propertyNames->builtinNames().applyPublicName(), functionPrototypeApplyCodeGenerator(vm), DontEnum);
</span><span class="cx"> *callFunction = putDirectBuiltinFunctionWithoutTransition(vm, globalObject, vm.propertyNames->builtinNames().callPublicName(), functionPrototypeCallCodeGenerator(vm), DontEnum);
</span><span class="cx"> *hasInstanceSymbolFunction = putDirectBuiltinFunction(vm, globalObject, vm.propertyNames->hasInstanceSymbol, functionPrototypeSymbolHasInstanceCodeGenerator(vm), DontDelete | ReadOnly | DontEnum);
</span><del>-
- JSFunction* bindFunction = JSFunction::create(vm, globalObject, 1, vm.propertyNames->bind.string(), functionProtoFuncBind);
- putDirectWithoutTransition(vm, vm.propertyNames->bind, bindFunction, DontEnum);
</del><ins>+ putDirectBuiltinFunctionWithoutTransition(vm, globalObject, vm.propertyNames->bind, functionPrototypeBindCodeGenerator(vm), DontEnum);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL callFunctionPrototype(ExecState*)
</span><span class="lines">@@ -124,58 +121,4 @@
</span><span class="cx"> return throwVMTypeError(exec, scope);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-// 15.3.4.5 Function.prototype.bind (thisArg [, arg1 [, arg2, ...]])
-EncodedJSValue JSC_HOST_CALL functionProtoFuncBind(ExecState* exec)
-{
- VM& vm = exec->vm();
- auto scope = DECLARE_THROW_SCOPE(vm);
- JSGlobalObject* globalObject = exec->callee()->globalObject();
-
- // Let Target be the this value.
- JSValue target = exec->thisValue();
-
- // If IsCallable(Target) is false, throw a TypeError exception.
- CallData callData;
- CallType callType = getCallData(target, callData);
- if (callType == CallType::None)
- return throwVMTypeError(exec, scope);
- // Primitive values are not callable.
- ASSERT(target.isObject());
- JSObject* targetObject = asObject(target);
-
- // Let A be a new (possibly empty) internal list of all of the argument values provided after thisArg (arg1, arg2 etc), in order.
- size_t numBoundArgs = exec->argumentCount() > 1 ? exec->argumentCount() - 1 : 0;
- JSArray* boundArgs;
- if (numBoundArgs) {
- boundArgs = JSArray::tryCreateUninitialized(vm, globalObject->arrayStructureForIndexingTypeDuringAllocation(ArrayWithContiguous), numBoundArgs);
- if (!boundArgs)
- return JSValue::encode(throwOutOfMemoryError(exec, scope));
-
- for (size_t i = 0; i < numBoundArgs; ++i)
- boundArgs->initializeIndex(vm, i, exec->argument(i + 1));
- } else
- boundArgs = nullptr;
-
- // If the [[Class]] internal property of Target is "Function", then ...
- // Else set the length own property of F to 0.
- unsigned length = 0;
- if (targetObject->hasOwnProperty(exec, exec->propertyNames().length)) {
- if (UNLIKELY(scope.exception()))
- return JSValue::encode(jsUndefined());
-
- // a. Let L be the length property of Target minus the length of A.
- // b. Set the length own property of F to either 0 or L, whichever is larger.
- JSValue lengthValue = target.get(exec, exec->propertyNames().length);
- if (lengthValue.isNumber()) {
- unsigned targetLength = (unsigned)lengthValue.asNumber();
- if (targetLength > numBoundArgs)
- length = targetLength - numBoundArgs;
- }
- }
-
- JSValue nameProp = target.get(exec, exec->propertyNames().name);
- JSString* name = nameProp.isString() ? nameProp.toString(exec) : jsEmptyString(exec);
- return JSValue::encode(JSBoundFunction::create(vm, exec, globalObject, targetObject, exec->argument(0), boundArgs, length, name->value(exec)));
-}
-
</del><span class="cx"> } // namespace JSC
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp (205847 => 205848)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2016-09-13 02:12:51 UTC (rev 205847)
+++ trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2016-09-13 02:57:37 UTC (rev 205848)
</span><span class="lines">@@ -199,6 +199,28 @@
</span><span class="cx"> return ConsoleObject::create(vm, global, ConsoleObject::createStructure(vm, global, constructEmptyObject(global->globalExec())));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+static EncodedJSValue JSC_HOST_CALL makeBoundFunction(ExecState* exec)
+{
+ VM& vm = exec->vm();
+ JSGlobalObject* globalObject = exec->lexicalGlobalObject();
+
+ JSObject* target = asObject(exec->uncheckedArgument(0));
+ JSValue boundThis = exec->uncheckedArgument(1);
+ JSValue boundArgs = exec->uncheckedArgument(2);
+ JSValue length = exec->uncheckedArgument(3);
+ JSString* name = asString(exec->uncheckedArgument(4));
+
+ return JSValue::encode(JSBoundFunction::create(
+ vm, exec, globalObject, target, boundThis, boundArgs.isCell() ? jsCast<JSArray*>(boundArgs) : nullptr, length.asInt32(), name->value(exec)));
+}
+
+static EncodedJSValue JSC_HOST_CALL hasOwnLengthProperty(ExecState* exec)
+{
+ VM& vm = exec->vm();
+ JSObject* target = asObject(exec->uncheckedArgument(0));
+ return JSValue::encode(jsBoolean(target->hasOwnProperty(exec, vm.propertyNames->length)));
+}
+
</ins><span class="cx"> } // namespace JSC
</span><span class="cx">
</span><span class="cx"> #include "JSGlobalObject.lut.h"
</span><span class="lines">@@ -768,6 +790,10 @@
</span><span class="cx"> GlobalPropertyInfo(vm.propertyNames->builtinNames().stringIncludesInternalPrivateName(), JSFunction::create(vm, this, 1, String(), builtinStringIncludesInternal), DontEnum | DontDelete | ReadOnly),
</span><span class="cx"> GlobalPropertyInfo(vm.propertyNames->builtinNames().stringSplitFastPrivateName(), JSFunction::create(vm, this, 2, String(), stringProtoFuncSplitFast), DontEnum | DontDelete | ReadOnly),
</span><span class="cx"> GlobalPropertyInfo(vm.propertyNames->builtinNames().stringSubstrInternalPrivateName(), JSFunction::create(vm, this, 2, String(), builtinStringSubstrInternal), DontEnum | DontDelete | ReadOnly),
</span><ins>+
+ // Function prototype helpers.
+ GlobalPropertyInfo(vm.propertyNames->builtinNames().makeBoundFunctionPrivateName(), JSFunction::create(vm, this, 5, String(), makeBoundFunction), DontEnum | DontDelete | ReadOnly),
+ GlobalPropertyInfo(vm.propertyNames->builtinNames().hasOwnLengthPropertyPrivateName(), JSFunction::create(vm, this, 1, String(), hasOwnLengthProperty), DontEnum | DontDelete | ReadOnly),
</ins><span class="cx"> };
</span><span class="cx"> addStaticGlobals(staticGlobals, WTF_ARRAY_LENGTH(staticGlobals));
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>