<!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>[195908] trunk/Source/WebCore</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/195908">195908</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-01-30 13:34:43 -0800 (Sat, 30 Jan 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rebaseline bindings tests after <a href="http://trac.webkit.org/projects/webkit/changeset/195904">r195904</a>.

* bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
(WebCore::JSTestCustomNamedGetter::getOwnPropertySlot):
(WebCore::jsTestCustomNamedGetterConstructor):
(WebCore::setJSTestCustomNamedGetterConstructor):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTarget::getOwnPropertySlot):
(WebCore::jsTestEventTargetConstructor):
(WebCore::setJSTestEventTargetConstructor):
* bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
(WebCore::JSTestOverrideBuiltins::getOwnPropertySlot):
(WebCore::jsTestOverrideBuiltinsConstructor):
(WebCore::setJSTestOverrideBuiltinsConstructor):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (195907 => 195908)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-01-30 21:01:09 UTC (rev 195907)
+++ trunk/Source/WebCore/ChangeLog        2016-01-30 21:34:43 UTC (rev 195908)
</span><span class="lines">@@ -1,5 +1,22 @@
</span><span class="cx"> 2016-01-30  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Unreviewed, rebaseline bindings tests after r195904.
+
+        * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
+        (WebCore::JSTestCustomNamedGetter::getOwnPropertySlot):
+        (WebCore::jsTestCustomNamedGetterConstructor):
+        (WebCore::setJSTestCustomNamedGetterConstructor):
+        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+        (WebCore::JSTestEventTarget::getOwnPropertySlot):
+        (WebCore::jsTestEventTargetConstructor):
+        (WebCore::setJSTestEventTargetConstructor):
+        * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
+        (WebCore::JSTestOverrideBuiltins::getOwnPropertySlot):
+        (WebCore::jsTestOverrideBuiltinsConstructor):
+        (WebCore::setJSTestOverrideBuiltinsConstructor):
+
+2016-01-30  Chris Dumez  &lt;cdumez@apple.com&gt;
+
</ins><span class="cx">         [JS Bindings] prototype.constructor should be writable
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=149412
</span><span class="cx">         &lt;rdar://problem/22545096&gt;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (195907 => 195908)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2016-01-30 21:01:09 UTC (rev 195907)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2016-01-30 21:34:43 UTC (rev 195908)
</span><span class="lines">@@ -68,20 +68,6 @@
</span><span class="cx"> 
</span><span class="cx"> typedef JSDOMConstructorNotConstructable&lt;JSTestCustomNamedGetter&gt; JSTestCustomNamedGetterConstructor;
</span><span class="cx"> 
</span><del>-/* Hash table */
-
-static const struct CompactHashIndex JSTestCustomNamedGetterTableIndex[2] = {
-    { -1, -1 },
-    { 0, -1 },
-};
-
-
-static const HashTableValue JSTestCustomNamedGetterTableValues[] =
-{
-    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestCustomNamedGetterConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestCustomNamedGetterConstructor) } },
-};
-
-static const HashTable JSTestCustomNamedGetterTable = { 1, 1, true, JSTestCustomNamedGetterTableValues, JSTestCustomNamedGetterTableIndex };
</del><span class="cx"> template&lt;&gt; void JSTestCustomNamedGetterConstructor::initializeProperties(VM&amp; vm, JSDOMGlobalObject&amp; globalObject)
</span><span class="cx"> {
</span><span class="cx">     putDirect(vm, vm.propertyNames-&gt;prototype, JSTestCustomNamedGetter::getPrototype(vm, &amp;globalObject), DontDelete | ReadOnly | DontEnum);
</span><span class="lines">@@ -95,6 +81,7 @@
</span><span class="cx"> 
</span><span class="cx"> static const HashTableValue JSTestCustomNamedGetterPrototypeTableValues[] =
</span><span class="cx"> {
</span><ins>+    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestCustomNamedGetterConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestCustomNamedGetterConstructor) } },
</ins><span class="cx">     { &quot;anotherFunction&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestCustomNamedGetterPrototypeFunctionAnotherFunction), (intptr_t) (1) } },
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -106,7 +93,7 @@
</span><span class="cx">     reifyStaticProperties(vm, JSTestCustomNamedGetterPrototypeTableValues, *this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-const ClassInfo JSTestCustomNamedGetter::s_info = { &quot;TestCustomNamedGetter&quot;, &amp;Base::s_info, &amp;JSTestCustomNamedGetterTable, CREATE_METHOD_TABLE(JSTestCustomNamedGetter) };
</del><ins>+const ClassInfo JSTestCustomNamedGetter::s_info = { &quot;TestCustomNamedGetter&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCustomNamedGetter) };
</ins><span class="cx"> 
</span><span class="cx"> JSTestCustomNamedGetter::JSTestCustomNamedGetter(Structure* structure, JSDOMGlobalObject&amp; globalObject, Ref&lt;TestCustomNamedGetter&gt;&amp;&amp; impl)
</span><span class="cx">     : JSDOMWrapper&lt;TestCustomNamedGetter&gt;(structure, globalObject, WTFMove(impl))
</span><span class="lines">@@ -133,7 +120,7 @@
</span><span class="cx"> {
</span><span class="cx">     auto* thisObject = jsCast&lt;JSTestCustomNamedGetter*&gt;(object);
</span><span class="cx">     ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>-    if (getStaticValueSlot&lt;JSTestCustomNamedGetter, Base&gt;(state, JSTestCustomNamedGetterTable, thisObject, propertyName, slot))
</del><ins>+    if (Base::getOwnPropertySlot(thisObject, state, propertyName, slot))
</ins><span class="cx">         return true;
</span><span class="cx">     JSValue proto = thisObject-&gt;prototype();
</span><span class="cx">     if (proto.isObject() &amp;&amp; jsCast&lt;JSObject*&gt;(proto)-&gt;hasProperty(state, propertyName))
</span><span class="lines">@@ -164,9 +151,9 @@
</span><span class="cx">     return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><del>-    JSTestCustomNamedGetter* domObject = jsDynamicCast&lt;JSTestCustomNamedGetter*&gt;(JSValue::decode(thisValue));
</del><ins>+    JSTestCustomNamedGetterPrototype* domObject = jsDynamicCast&lt;JSTestCustomNamedGetterPrototype*&gt;(baseValue);
</ins><span class="cx">     if (!domObject)
</span><span class="cx">         return throwVMTypeError(state);
</span><span class="cx">     return JSValue::encode(JSTestCustomNamedGetter::getConstructor(state-&gt;vm(), domObject-&gt;globalObject()));
</span><span class="lines">@@ -175,8 +162,8 @@
</span><span class="cx"> void setJSTestCustomNamedGetterConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</span><span class="cx"> {
</span><span class="cx">     JSValue value = JSValue::decode(encodedValue);
</span><del>-    UNUSED_PARAM(baseValue);
-    JSTestCustomNamedGetter* domObject = jsDynamicCast&lt;JSTestCustomNamedGetter*&gt;(JSValue::decode(thisValue));
</del><ins>+    UNUSED_PARAM(thisValue);
+    JSTestCustomNamedGetterPrototype* domObject = jsDynamicCast&lt;JSTestCustomNamedGetterPrototype*&gt;(baseValue);
</ins><span class="cx">     if (UNLIKELY(!domObject)) {
</span><span class="cx">         throwVMTypeError(state);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (195907 => 195908)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2016-01-30 21:01:09 UTC (rev 195907)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2016-01-30 21:34:43 UTC (rev 195908)
</span><span class="lines">@@ -77,20 +77,6 @@
</span><span class="cx"> 
</span><span class="cx"> typedef JSDOMConstructorNotConstructable&lt;JSTestEventTarget&gt; JSTestEventTargetConstructor;
</span><span class="cx"> 
</span><del>-/* Hash table */
-
-static const struct CompactHashIndex JSTestEventTargetTableIndex[2] = {
-    { -1, -1 },
-    { 0, -1 },
-};
-
-
-static const HashTableValue JSTestEventTargetTableValues[] =
-{
-    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestEventTargetConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestEventTargetConstructor) } },
-};
-
-static const HashTable JSTestEventTargetTable = { 1, 1, true, JSTestEventTargetTableValues, JSTestEventTargetTableIndex };
</del><span class="cx"> template&lt;&gt; void JSTestEventTargetConstructor::initializeProperties(VM&amp; vm, JSDOMGlobalObject&amp; globalObject)
</span><span class="cx"> {
</span><span class="cx">     putDirect(vm, vm.propertyNames-&gt;prototype, JSTestEventTarget::getPrototype(vm, &amp;globalObject), DontDelete | ReadOnly | DontEnum);
</span><span class="lines">@@ -104,6 +90,7 @@
</span><span class="cx"> 
</span><span class="cx"> static const HashTableValue JSTestEventTargetPrototypeTableValues[] =
</span><span class="cx"> {
</span><ins>+    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestEventTargetConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestEventTargetConstructor) } },
</ins><span class="cx">     { &quot;item&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestEventTargetPrototypeFunctionItem), (intptr_t) (1) } },
</span><span class="cx">     { &quot;addEventListener&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestEventTargetPrototypeFunctionAddEventListener), (intptr_t) (2) } },
</span><span class="cx">     { &quot;removeEventListener&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestEventTargetPrototypeFunctionRemoveEventListener), (intptr_t) (2) } },
</span><span class="lines">@@ -118,7 +105,7 @@
</span><span class="cx">     reifyStaticProperties(vm, JSTestEventTargetPrototypeTableValues, *this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-const ClassInfo JSTestEventTarget::s_info = { &quot;TestEventTarget&quot;, &amp;Base::s_info, &amp;JSTestEventTargetTable, CREATE_METHOD_TABLE(JSTestEventTarget) };
</del><ins>+const ClassInfo JSTestEventTarget::s_info = { &quot;TestEventTarget&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSTestEventTarget) };
</ins><span class="cx"> 
</span><span class="cx"> JSTestEventTarget::JSTestEventTarget(Structure* structure, JSDOMGlobalObject&amp; globalObject, Ref&lt;TestEventTarget&gt;&amp;&amp; impl)
</span><span class="cx">     : JSDOMWrapper&lt;TestEventTarget&gt;(structure, globalObject, WTFMove(impl))
</span><span class="lines">@@ -152,7 +139,7 @@
</span><span class="cx">         slot.setValue(thisObject, attributes, toJS(state, thisObject-&gt;globalObject(), thisObject-&gt;wrapped().item(index)));
</span><span class="cx">         return true;
</span><span class="cx">     }
</span><del>-    if (getStaticValueSlot&lt;JSTestEventTarget, Base&gt;(state, JSTestEventTargetTable, thisObject, propertyName, slot))
</del><ins>+    if (Base::getOwnPropertySlot(thisObject, state, propertyName, slot))
</ins><span class="cx">         return true;
</span><span class="cx">     JSValue proto = thisObject-&gt;prototype();
</span><span class="cx">     if (proto.isObject() &amp;&amp; jsCast&lt;JSObject*&gt;(proto)-&gt;hasProperty(state, propertyName))
</span><span class="lines">@@ -180,9 +167,9 @@
</span><span class="cx">     return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-EncodedJSValue jsTestEventTargetConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestEventTargetConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><del>-    JSTestEventTarget* domObject = jsDynamicCast&lt;JSTestEventTarget*&gt;(JSValue::decode(thisValue));
</del><ins>+    JSTestEventTargetPrototype* domObject = jsDynamicCast&lt;JSTestEventTargetPrototype*&gt;(baseValue);
</ins><span class="cx">     if (!domObject)
</span><span class="cx">         return throwVMTypeError(state);
</span><span class="cx">     return JSValue::encode(JSTestEventTarget::getConstructor(state-&gt;vm(), domObject-&gt;globalObject()));
</span><span class="lines">@@ -191,8 +178,8 @@
</span><span class="cx"> void setJSTestEventTargetConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</span><span class="cx"> {
</span><span class="cx">     JSValue value = JSValue::decode(encodedValue);
</span><del>-    UNUSED_PARAM(baseValue);
-    JSTestEventTarget* domObject = jsDynamicCast&lt;JSTestEventTarget*&gt;(JSValue::decode(thisValue));
</del><ins>+    UNUSED_PARAM(thisValue);
+    JSTestEventTargetPrototype* domObject = jsDynamicCast&lt;JSTestEventTargetPrototype*&gt;(baseValue);
</ins><span class="cx">     if (UNLIKELY(!domObject)) {
</span><span class="cx">         throwVMTypeError(state);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp (195907 => 195908)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp        2016-01-30 21:01:09 UTC (rev 195907)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp        2016-01-30 21:34:43 UTC (rev 195908)
</span><span class="lines">@@ -70,20 +70,6 @@
</span><span class="cx"> 
</span><span class="cx"> typedef JSDOMConstructorNotConstructable&lt;JSTestOverrideBuiltins&gt; JSTestOverrideBuiltinsConstructor;
</span><span class="cx"> 
</span><del>-/* Hash table */
-
-static const struct CompactHashIndex JSTestOverrideBuiltinsTableIndex[2] = {
-    { -1, -1 },
-    { 0, -1 },
-};
-
-
-static const HashTableValue JSTestOverrideBuiltinsTableValues[] =
-{
-    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestOverrideBuiltinsConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestOverrideBuiltinsConstructor) } },
-};
-
-static const HashTable JSTestOverrideBuiltinsTable = { 1, 1, true, JSTestOverrideBuiltinsTableValues, JSTestOverrideBuiltinsTableIndex };
</del><span class="cx"> template&lt;&gt; void JSTestOverrideBuiltinsConstructor::initializeProperties(VM&amp; vm, JSDOMGlobalObject&amp; globalObject)
</span><span class="cx"> {
</span><span class="cx">     putDirect(vm, vm.propertyNames-&gt;prototype, JSTestOverrideBuiltins::getPrototype(vm, &amp;globalObject), DontDelete | ReadOnly | DontEnum);
</span><span class="lines">@@ -97,6 +83,7 @@
</span><span class="cx"> 
</span><span class="cx"> static const HashTableValue JSTestOverrideBuiltinsPrototypeTableValues[] =
</span><span class="cx"> {
</span><ins>+    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestOverrideBuiltinsConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestOverrideBuiltinsConstructor) } },
</ins><span class="cx">     { &quot;namedItem&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestOverrideBuiltinsPrototypeFunctionNamedItem), (intptr_t) (0) } },
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -108,7 +95,7 @@
</span><span class="cx">     reifyStaticProperties(vm, JSTestOverrideBuiltinsPrototypeTableValues, *this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-const ClassInfo JSTestOverrideBuiltins::s_info = { &quot;TestOverrideBuiltins&quot;, &amp;Base::s_info, &amp;JSTestOverrideBuiltinsTable, CREATE_METHOD_TABLE(JSTestOverrideBuiltins) };
</del><ins>+const ClassInfo JSTestOverrideBuiltins::s_info = { &quot;TestOverrideBuiltins&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverrideBuiltins) };
</ins><span class="cx"> 
</span><span class="cx"> JSTestOverrideBuiltins::JSTestOverrideBuiltins(Structure* structure, JSDOMGlobalObject&amp; globalObject, Ref&lt;TestOverrideBuiltins&gt;&amp;&amp; impl)
</span><span class="cx">     : JSDOMWrapper&lt;TestOverrideBuiltins&gt;(structure, globalObject, WTFMove(impl))
</span><span class="lines">@@ -142,7 +129,7 @@
</span><span class="cx">             return true;
</span><span class="cx">         }
</span><span class="cx">     }
</span><del>-    if (getStaticValueSlot&lt;JSTestOverrideBuiltins, Base&gt;(state, JSTestOverrideBuiltinsTable, thisObject, propertyName, slot))
</del><ins>+    if (Base::getOwnPropertySlot(thisObject, state, propertyName, slot))
</ins><span class="cx">         return true;
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="lines">@@ -162,9 +149,9 @@
</span><span class="cx">     return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-EncodedJSValue jsTestOverrideBuiltinsConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestOverrideBuiltinsConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><del>-    JSTestOverrideBuiltins* domObject = jsDynamicCast&lt;JSTestOverrideBuiltins*&gt;(JSValue::decode(thisValue));
</del><ins>+    JSTestOverrideBuiltinsPrototype* domObject = jsDynamicCast&lt;JSTestOverrideBuiltinsPrototype*&gt;(baseValue);
</ins><span class="cx">     if (!domObject)
</span><span class="cx">         return throwVMTypeError(state);
</span><span class="cx">     return JSValue::encode(JSTestOverrideBuiltins::getConstructor(state-&gt;vm(), domObject-&gt;globalObject()));
</span><span class="lines">@@ -173,8 +160,8 @@
</span><span class="cx"> void setJSTestOverrideBuiltinsConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</span><span class="cx"> {
</span><span class="cx">     JSValue value = JSValue::decode(encodedValue);
</span><del>-    UNUSED_PARAM(baseValue);
-    JSTestOverrideBuiltins* domObject = jsDynamicCast&lt;JSTestOverrideBuiltins*&gt;(JSValue::decode(thisValue));
</del><ins>+    UNUSED_PARAM(thisValue);
+    JSTestOverrideBuiltinsPrototype* domObject = jsDynamicCast&lt;JSTestOverrideBuiltinsPrototype*&gt;(baseValue);
</ins><span class="cx">     if (UNLIKELY(!domObject)) {
</span><span class="cx">         throwVMTypeError(state);
</span><span class="cx">         return;
</span></span></pre>
</div>
</div>

</body>
</html>