<!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>[190028] 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/190028">190028</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2015-09-20 09:41:01 -0700 (Sun, 20 Sep 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>[CallWith=ScriptState] should pass ExecState to the implementation by reference
https://bugs.webkit.org/show_bug.cgi?id=149378
Reviewed by Sam Weinig.
[CallWith=ScriptState] should pass ExecState to the implementation by
reference instead of pointer, as it is expected to be non-null.
Also rename the ExecState variables from 'exec' to 'state' in the
bindings as this is the preferred naming convention.
* Modules/indexeddb/IDBCursor.h:
* Modules/indexeddb/IDBObjectStore.h:
* Modules/indexeddb/legacy/LegacyCursor.cpp:
(WebCore::LegacyCursor::update):
* Modules/indexeddb/legacy/LegacyCursor.h:
* Modules/indexeddb/legacy/LegacyObjectStore.cpp:
(WebCore::LegacyObjectStore::add):
(WebCore::LegacyObjectStore::put):
* Modules/indexeddb/legacy/LegacyObjectStore.h:
* Modules/mediastream/CapabilityRange.cpp:
(WebCore::scriptValue):
(WebCore::CapabilityRange::min):
(WebCore::CapabilityRange::max):
* Modules/mediastream/CapabilityRange.h:
* Modules/streams/ReadableStreamController.h:
(WebCore::ReadableStreamController::error):
(WebCore::ReadableStreamController::enqueue):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateEventListenerCall):
(GenerateGetOwnPropertySlotBody):
(GenerateHeader):
(GenerateOverloadedFunction):
(GetIndexedGetterExpression):
(GenerateImplementation):
(GenerateFunctionCastedThis):
(GenerateCallWith):
(GenerateArgumentsCountCheck):
(GenerateParametersCheck):
(GenerateReturnParameters):
(GenerateCallbackHeader):
(GenerateCallbackImplementation):
(GenerateImplementationFunctionCall):
(JSValueToNative):
(NativeToJSValue):
(GenerateOverloadedConstructorDefinition):
(GenerateConstructorDefinition):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBCursorh">trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBObjectStoreh">trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddblegacyLegacyCursorcpp">trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddblegacyLegacyCursorh">trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddblegacyLegacyObjectStorecpp">trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddblegacyLegacyObjectStoreh">trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamCapabilityRangecpp">trunk/Source/WebCore/Modules/mediastream/CapabilityRange.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamCapabilityRangeh">trunk/Source/WebCore/Modules/mediastream/CapabilityRange.h</a></li>
<li><a href="#trunkSourceWebCoreModulesstreamsReadableStreamControllerh">trunk/Source/WebCore/Modules/streams/ReadableStreamController.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestActiveDOMObjectcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestActiveDOMObjecth">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCallbackcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCallbackh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCallbackFunctioncpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCallbackFunctionh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomConstructorWithNoInterfaceObjectcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomConstructorWithNoInterfaceObjecth">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGetterh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventTargeth">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestExceptioncpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestExceptionh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachablecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachableh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestInterfaceh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenerh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNodecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministiccpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministich">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorsh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinsh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfaceh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestTypedefsh">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSattributecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSattributeh">trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSreadonlycpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSreadonlyh">trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/ChangeLog        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -1,3 +1,53 @@
</span><ins>+2015-09-20 Chris Dumez <cdumez@apple.com>
+
+ [CallWith=ScriptState] should pass ExecState to the implementation by reference
+ https://bugs.webkit.org/show_bug.cgi?id=149378
+
+ Reviewed by Sam Weinig.
+
+ [CallWith=ScriptState] should pass ExecState to the implementation by
+ reference instead of pointer, as it is expected to be non-null.
+
+ Also rename the ExecState variables from 'exec' to 'state' in the
+ bindings as this is the preferred naming convention.
+
+ * Modules/indexeddb/IDBCursor.h:
+ * Modules/indexeddb/IDBObjectStore.h:
+ * Modules/indexeddb/legacy/LegacyCursor.cpp:
+ (WebCore::LegacyCursor::update):
+ * Modules/indexeddb/legacy/LegacyCursor.h:
+ * Modules/indexeddb/legacy/LegacyObjectStore.cpp:
+ (WebCore::LegacyObjectStore::add):
+ (WebCore::LegacyObjectStore::put):
+ * Modules/indexeddb/legacy/LegacyObjectStore.h:
+ * Modules/mediastream/CapabilityRange.cpp:
+ (WebCore::scriptValue):
+ (WebCore::CapabilityRange::min):
+ (WebCore::CapabilityRange::max):
+ * Modules/mediastream/CapabilityRange.h:
+ * Modules/streams/ReadableStreamController.h:
+ (WebCore::ReadableStreamController::error):
+ (WebCore::ReadableStreamController::enqueue):
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateEventListenerCall):
+ (GenerateGetOwnPropertySlotBody):
+ (GenerateHeader):
+ (GenerateOverloadedFunction):
+ (GetIndexedGetterExpression):
+ (GenerateImplementation):
+ (GenerateFunctionCastedThis):
+ (GenerateCallWith):
+ (GenerateArgumentsCountCheck):
+ (GenerateParametersCheck):
+ (GenerateReturnParameters):
+ (GenerateCallbackHeader):
+ (GenerateCallbackImplementation):
+ (GenerateImplementationFunctionCall):
+ (JSValueToNative):
+ (NativeToJSValue):
+ (GenerateOverloadedConstructorDefinition):
+ (GenerateConstructorDefinition):
+
</ins><span class="cx"> 2015-09-20 Youenn Fablet <youenn.fablet@crf.canon.fr>
</span><span class="cx">
</span><span class="cx"> Remove XHR_TIMEOUT compilation guard
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBCursorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> virtual const Deprecated::ScriptValue& value() const = 0;
</span><span class="cx"> virtual IDBAny* source() const = 0;
</span><span class="cx">
</span><del>- virtual PassRefPtr<IDBRequest> update(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&) = 0;
</del><ins>+ virtual PassRefPtr<IDBRequest> update(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&) = 0;
</ins><span class="cx"> virtual void advance(unsigned long, ExceptionCode&) = 0;
</span><span class="cx"> // FIXME: Try to modify the code generator so this overload is unneeded.
</span><span class="cx"> virtual void continueFunction(ScriptExecutionContext*, ExceptionCode&) = 0;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBObjectStoreh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx"> virtual PassRefPtr<IDBTransaction> transaction() const = 0;
</span><span class="cx"> virtual bool autoIncrement() const = 0;
</span><span class="cx">
</span><del>- virtual PassRefPtr<IDBRequest> add(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&) = 0;
- virtual PassRefPtr<IDBRequest> put(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&) = 0;
</del><ins>+ virtual PassRefPtr<IDBRequest> add(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&) = 0;
+ virtual PassRefPtr<IDBRequest> put(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&) = 0;
</ins><span class="cx"> virtual PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, ExceptionCode&) = 0;
</span><span class="cx"> virtual PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&) = 0;
</span><span class="cx"> virtual PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
</span><span class="lines">@@ -78,8 +78,8 @@
</span><span class="cx">
</span><span class="cx"> virtual PassRefPtr<IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
</span><span class="cx"> virtual PassRefPtr<IDBRequest> get(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&) = 0;
</span><del>- virtual PassRefPtr<IDBRequest> add(JSC::ExecState*, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
- virtual PassRefPtr<IDBRequest> put(JSC::ExecState*, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
</del><ins>+ virtual PassRefPtr<IDBRequest> add(JSC::ExecState&, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
+ virtual PassRefPtr<IDBRequest> put(JSC::ExecState&, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
</ins><span class="cx"> virtual PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&) = 0;
</span><span class="cx"> virtual PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&) = 0;
</span><span class="cx"> virtual PassRefPtr<IDBRequest> clear(ScriptExecutionContext*, ExceptionCode&) = 0;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddblegacyLegacyCursorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> return m_source.get();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyCursor::update(JSC::ExecState* state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyCursor::update(JSC::ExecState& state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(StorageAPI, "LegacyCursor::update");
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddblegacyLegacyCursorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyCursor.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> const Deprecated::ScriptValue& value() const;
</span><span class="cx"> IDBAny* source() const;
</span><span class="cx">
</span><del>- PassRefPtr<IDBRequest> update(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&);
</del><ins>+ PassRefPtr<IDBRequest> update(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&);
</ins><span class="cx"> void advance(unsigned long, ExceptionCode&);
</span><span class="cx"> // FIXME: Try to modify the code generator so this overload is unneeded.
</span><span class="cx"> void continueFunction(ScriptExecutionContext*, ExceptionCode& ec) { continueFunction(static_cast<IDBKey*>(nullptr), ec); }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddblegacyLegacyObjectStorecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -96,39 +96,39 @@
</span><span class="cx"> return get(context, keyRange.release(), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::add(JSC::ExecState* state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& key, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::add(JSC::ExecState& state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& key, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(StorageAPI, "LegacyObjectStore::add");
</span><span class="cx"> return put(IDBDatabaseBackend::AddOnly, LegacyAny::create(this), state, value, key, ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::add(JSC::ExecState* state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::add(JSC::ExecState& state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(StorageAPI, "LegacyObjectStore::add");
</span><span class="cx"> return put(IDBDatabaseBackend::AddOnly, LegacyAny::create(this), state, value, static_cast<IDBKey*>(nullptr), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::put(JSC::ExecState* state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& key, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::put(JSC::ExecState& state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& key, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(StorageAPI, "LegacyObjectStore::put");
</span><span class="cx"> return put(IDBDatabaseBackend::AddOrUpdate, LegacyAny::create(this), state, value, key, ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::put(JSC::ExecState* state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::put(JSC::ExecState& state, Deprecated::ScriptValue& value, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(StorageAPI, "LegacyObjectStore::put");
</span><span class="cx"> return put(IDBDatabaseBackend::AddOrUpdate, LegacyAny::create(this), state, value, static_cast<IDBKey*>(nullptr), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::put(IDBDatabaseBackend::PutMode putMode, PassRefPtr<LegacyAny> source, JSC::ExecState* state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& keyValue, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::put(IDBDatabaseBackend::PutMode putMode, PassRefPtr<LegacyAny> source, JSC::ExecState& state, Deprecated::ScriptValue& value, const Deprecated::ScriptValue& keyValue, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- ScriptExecutionContext* context = scriptExecutionContextFromExecState(state);
</del><ins>+ ScriptExecutionContext* context = scriptExecutionContextFromExecState(&state);
</ins><span class="cx"> DOMRequestState requestState(context);
</span><span class="cx"> RefPtr<IDBKey> key = scriptValueToIDBKey(&requestState, keyValue);
</span><span class="cx"> return put(putMode, source, state, value, key.release(), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<IDBRequest> LegacyObjectStore::put(IDBDatabaseBackend::PutMode putMode, PassRefPtr<LegacyAny> source, JSC::ExecState* state, Deprecated::ScriptValue& value, PassRefPtr<IDBKey> prpKey, ExceptionCode& ec)
</del><ins>+PassRefPtr<IDBRequest> LegacyObjectStore::put(IDBDatabaseBackend::PutMode putMode, PassRefPtr<LegacyAny> source, JSC::ExecState& state, Deprecated::ScriptValue& value, PassRefPtr<IDBKey> prpKey, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<IDBKey> key = prpKey;
</span><span class="cx"> if (m_deleted) {
</span><span class="lines">@@ -144,8 +144,8 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(state, value.jsValue(), nullptr, nullptr);
- if (state->hadException())
</del><ins>+ RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(&state, value.jsValue(), nullptr, nullptr);
+ if (state.hadException())
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> if (serializedValue->hasBlobURLs()) {
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> const bool usesInLineKeys = !keyPath.isNull();
</span><span class="cx"> const bool hasKeyGenerator = autoIncrement();
</span><span class="cx">
</span><del>- ScriptExecutionContext* context = scriptExecutionContextFromExecState(state);
</del><ins>+ ScriptExecutionContext* context = scriptExecutionContextFromExecState(&state);
</ins><span class="cx"> DOMRequestState requestState(context);
</span><span class="cx">
</span><span class="cx"> if (putMode != IDBDatabaseBackend::CursorUpdate && usesInLineKeys && key) {
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddblegacyLegacyObjectStoreh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyObjectStore.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx"> PassRefPtr<IDBTransaction> transaction() const { return m_transaction; }
</span><span class="cx"> bool autoIncrement() const { return m_metadata.autoIncrement; }
</span><span class="cx">
</span><del>- PassRefPtr<IDBRequest> add(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&);
- PassRefPtr<IDBRequest> put(JSC::ExecState*, Deprecated::ScriptValue&, ExceptionCode&);
</del><ins>+ PassRefPtr<IDBRequest> add(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&);
+ PassRefPtr<IDBRequest> put(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCode&);
</ins><span class="cx"> PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, ExceptionCode&);
</span><span class="cx"> PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&);
</span><span class="cx"> PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&);
</span><span class="lines">@@ -79,10 +79,10 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&);
</span><span class="cx"> PassRefPtr<IDBRequest> get(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&);
</span><del>- PassRefPtr<IDBRequest> add(JSC::ExecState*, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
- PassRefPtr<IDBRequest> put(JSC::ExecState*, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
- PassRefPtr<IDBRequest> put(IDBDatabaseBackend::PutMode, PassRefPtr<LegacyAny>, JSC::ExecState*, Deprecated::ScriptValue&, PassRefPtr<IDBKey>, ExceptionCode&);
- PassRefPtr<IDBRequest> put(IDBDatabaseBackend::PutMode, PassRefPtr<LegacyAny> source, JSC::ExecState*, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
</del><ins>+ PassRefPtr<IDBRequest> add(JSC::ExecState&, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
+ PassRefPtr<IDBRequest> put(JSC::ExecState&, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
+ PassRefPtr<IDBRequest> put(IDBDatabaseBackend::PutMode, PassRefPtr<LegacyAny>, JSC::ExecState&, Deprecated::ScriptValue&, PassRefPtr<IDBKey>, ExceptionCode&);
+ PassRefPtr<IDBRequest> put(IDBDatabaseBackend::PutMode, PassRefPtr<LegacyAny> source, JSC::ExecState&, Deprecated::ScriptValue&, const Deprecated::ScriptValue& key, ExceptionCode&);
</ins><span class="cx">
</span><span class="cx"> PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionCode&);
</span><span class="cx"> PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamCapabilityRangecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/CapabilityRange.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/CapabilityRange.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/mediastream/CapabilityRange.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static Deprecated::ScriptValue scriptValue(ExecState* exec, const RealtimeMediaSourceCapabilityRange::ValueUnion& value, RealtimeMediaSourceCapabilityRange::Type type)
</del><ins>+static Deprecated::ScriptValue scriptValue(ExecState& state, const RealtimeMediaSourceCapabilityRange::ValueUnion& value, RealtimeMediaSourceCapabilityRange::Type type)
</ins><span class="cx"> {
</span><span class="cx"> // NOTE: the spec says:
</span><span class="cx"> // ... an implementation should make a reasonable attempt to translate and scale the hardware's setting
</span><span class="lines">@@ -63,28 +63,28 @@
</span><span class="cx">
</span><span class="cx"> switch (type) {
</span><span class="cx"> case RealtimeMediaSourceCapabilityRange::Float:
</span><del>- return Deprecated::ScriptValue(exec->vm(), JSValue(value.asFloat));
</del><ins>+ return Deprecated::ScriptValue(state.vm(), JSValue(value.asFloat));
</ins><span class="cx"> break;
</span><span class="cx"> case RealtimeMediaSourceCapabilityRange::ULong:
</span><del>- return Deprecated::ScriptValue(exec->vm(), JSValue(value.asULong));
</del><ins>+ return Deprecated::ScriptValue(state.vm(), JSValue(value.asULong));
</ins><span class="cx"> break;
</span><span class="cx"> case RealtimeMediaSourceCapabilityRange::Undefined:
</span><del>- return Deprecated::ScriptValue(exec->vm(), jsUndefined());
</del><ins>+ return Deprecated::ScriptValue(state.vm(), jsUndefined());
</ins><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><del>- return Deprecated::ScriptValue(exec->vm(), jsUndefined());
</del><ins>+ return Deprecated::ScriptValue(state.vm(), jsUndefined());
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-Deprecated::ScriptValue CapabilityRange::min(ExecState* exec) const
</del><ins>+Deprecated::ScriptValue CapabilityRange::min(ExecState& state) const
</ins><span class="cx"> {
</span><del>- return scriptValue(exec, m_rangeInfo.min(), m_rangeInfo.type());
</del><ins>+ return scriptValue(state, m_rangeInfo.min(), m_rangeInfo.type());
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-Deprecated::ScriptValue CapabilityRange::max(ExecState* exec) const
</del><ins>+Deprecated::ScriptValue CapabilityRange::max(ExecState& state) const
</ins><span class="cx"> {
</span><del>- return scriptValue(exec, m_rangeInfo.max(), m_rangeInfo.type());
</del><ins>+ return scriptValue(state, m_rangeInfo.max(), m_rangeInfo.type());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamCapabilityRangeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/CapabilityRange.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/CapabilityRange.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/mediastream/CapabilityRange.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -43,8 +43,8 @@
</span><span class="cx">
</span><span class="cx"> static Ref<CapabilityRange> create(const RealtimeMediaSourceCapabilityRange&);
</span><span class="cx">
</span><del>- Deprecated::ScriptValue min(JSC::ExecState*) const;
- Deprecated::ScriptValue max(JSC::ExecState*) const;
</del><ins>+ Deprecated::ScriptValue min(JSC::ExecState&) const;
+ Deprecated::ScriptValue max(JSC::ExecState&) const;
</ins><span class="cx"> bool supported() const { return m_rangeInfo.supported(); }
</span><span class="cx">
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesstreamsReadableStreamControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/streams/ReadableStreamController.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/streams/ReadableStreamController.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/Modules/streams/ReadableStreamController.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -48,9 +48,9 @@
</span><span class="cx">
</span><span class="cx"> ReadableJSStream& stream() { return m_stream; }
</span><span class="cx">
</span><del>- void error(JSC::ExecState* state, JSC::JSValue value, ExceptionCode& ec) { m_stream.error(*state, value, ec); }
</del><ins>+ void error(JSC::ExecState& state, JSC::JSValue value, ExceptionCode& ec) { m_stream.error(state, value, ec); }
</ins><span class="cx">
</span><del>- void enqueue(JSC::ExecState* state, JSC::JSValue value) { m_stream.enqueue(*state, value); }
</del><ins>+ void enqueue(JSC::ExecState& state, JSC::JSValue value) { m_stream.enqueue(state, value); }
</ins><span class="cx">
</span><span class="cx"> void ref() { m_stream.ref(); }
</span><span class="cx"> void deref() { m_stream.deref(); }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -166,10 +166,10 @@
</span><span class="cx"> my @GenerateEventListenerImpl = ();
</span><span class="cx">
</span><span class="cx"> push(@GenerateEventListenerImpl, <<END);
</span><del>- JSValue listener = exec->argument(1);
</del><ins>+ JSValue listener = state->argument(1);
</ins><span class="cx"> if (UNLIKELY(!listener.isObject()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.${functionName}EventListener(exec->argument(0).toString(exec)->toAtomicString(exec), createJSEventListenerFor$suffix(*exec, *asObject(listener), *castedThis)$passRefPtrHandling, exec->argument(2).toBoolean(exec));
</del><ins>+ impl.${functionName}EventListener(state->argument(0).toString(state)->toAtomicString(state), createJSEventListenerFor$suffix(*state, *asObject(listener), *castedThis)$passRefPtrHandling, state->argument(2).toBoolean(state));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> END
</span><span class="cx"> return @GenerateEventListenerImpl;
</span><span class="lines">@@ -392,12 +392,12 @@
</span><span class="cx"> my $ownPropertyCheck = sub {
</span><span class="cx"> if ($hasAttributes) {
</span><span class="cx"> if ($inlined) {
</span><del>- push(@getOwnPropertySlotImpl, " if (${namespaceMaybe}getStaticValueSlot<$className, Base>(exec, *info()->staticPropHashTable, thisObject, propertyName, slot))\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (${namespaceMaybe}getStaticValueSlot<$className, Base>(state, *info()->staticPropHashTable, thisObject, propertyName, slot))\n");
</ins><span class="cx"> } else {
</span><del>- push(@getOwnPropertySlotImpl, " if (${namespaceMaybe}getStaticValueSlot<$className, Base>(exec, ${className}Table, thisObject, propertyName, slot))\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (${namespaceMaybe}getStaticValueSlot<$className, Base>(state, ${className}Table, thisObject, propertyName, slot))\n");
</ins><span class="cx"> }
</span><span class="cx"> } else {
</span><del>- push(@getOwnPropertySlotImpl, " if (Base::getOwnPropertySlot(thisObject, exec, propertyName, slot))\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (Base::getOwnPropertySlot(thisObject, state, propertyName, slot))\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@getOwnPropertySlotImpl, " return true;\n");
</span><span class="cx"> };
</span><span class="lines">@@ -407,7 +407,7 @@
</span><span class="cx"> # https://heycam.github.io/webidl/#dfn-named-properties-object
</span><span class="cx"> my $prototypeCheck = sub {
</span><span class="cx"> push(@getOwnPropertySlotImpl, " ${namespaceMaybe}JSValue proto = thisObject->prototype();\n");
</span><del>- push(@getOwnPropertySlotImpl, " if (proto.isObject() && jsCast<${namespaceMaybe}JSObject*>(proto)->hasProperty(exec, propertyName))\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (proto.isObject() && jsCast<${namespaceMaybe}JSObject*>(proto)->hasProperty(state, propertyName))\n");
</ins><span class="cx"> push(@getOwnPropertySlotImpl, " return false;\n\n");
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -443,7 +443,7 @@
</span><span class="cx"> # This condition is to make sure we use the subclass' named getter instead of the base class one when possible.
</span><span class="cx"> push(@getOwnPropertySlotImpl, " if (thisObject->classInfo() == info()) {\n");
</span><span class="cx"> push(@getOwnPropertySlotImpl, " JSValue value;\n");
</span><del>- push(@getOwnPropertySlotImpl, " if (thisObject->nameGetter(exec, propertyName, value)) {\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (thisObject->nameGetter(state, propertyName, value)) {\n");
</ins><span class="cx"> push(@getOwnPropertySlotImpl, " slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);\n");
</span><span class="cx"> push(@getOwnPropertySlotImpl, " return true;\n");
</span><span class="cx"> push(@getOwnPropertySlotImpl, " }\n");
</span><span class="lines">@@ -456,7 +456,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}) {
</span><del>- push(@getOwnPropertySlotImpl, " if (thisObject->getOwnPropertySlotDelegate(exec, propertyName, slot))\n");
</del><ins>+ push(@getOwnPropertySlotImpl, " if (thisObject->getOwnPropertySlotDelegate(state, propertyName, slot))\n");
</ins><span class="cx"> push(@getOwnPropertySlotImpl, " return true;\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1205,7 +1205,7 @@
</span><span class="cx"> } else {
</span><span class="cx"> push(@headerContent, $exportLabel."JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, $implType*);\n");
</span><span class="cx"> }
</span><del>- push(@headerContent, "inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, $implType& impl) { return toJS(exec, globalObject, &impl); }\n");
</del><ins>+ push(@headerContent, "inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, $implType& impl) { return toJS(state, globalObject, &impl); }\n");
</ins><span class="cx">
</span><span class="cx"> push(@headerContent, "JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, $implType*);\n");
</span><span class="cx"> }
</span><span class="lines">@@ -1494,10 +1494,10 @@
</span><span class="cx"> # FIXME: Implement support for overloaded functions with variadic arguments.
</span><span class="cx"> my $lengthOfLongestOverloadedFunctionParameterList = LengthOfLongestFunctionParameterList($function->{overloads});
</span><span class="cx">
</span><del>- push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* exec)\n");
</del><ins>+ push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* state)\n");
</ins><span class="cx"> push(@implContent, <<END);
</span><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>($lengthOfLongestOverloadedFunctionParameterList, exec->argumentCount());
</del><ins>+ size_t argsCount = std::min<size_t>($lengthOfLongestOverloadedFunctionParameterList, state->argumentCount());
</ins><span class="cx"> END
</span><span class="cx">
</span><span class="cx"> my %fetchedArguments = ();
</span><span class="lines">@@ -1509,7 +1509,7 @@
</span><span class="cx">
</span><span class="cx"> foreach my $parameterIndex (@neededArguments) {
</span><span class="cx"> next if exists $fetchedArguments{$parameterIndex};
</span><del>- push(@implContent, " JSValue arg$parameterIndex(exec->argument($parameterIndex));\n");
</del><ins>+ push(@implContent, " JSValue arg$parameterIndex(state->argument($parameterIndex));\n");
</ins><span class="cx"> $fetchedArguments{$parameterIndex} = 1;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1517,16 +1517,16 @@
</span><span class="cx"> push(@implContent, "#if ${conditionalString}\n") if $conditionalString;
</span><span class="cx">
</span><span class="cx"> push(@implContent, " if ($parametersCheck)\n");
</span><del>- push(@implContent, " return ${functionName}$overload->{overloadIndex}(exec);\n");
</del><ins>+ push(@implContent, " return ${functionName}$overload->{overloadIndex}(state);\n");
</ins><span class="cx"> push(@implContent, "#endif\n\n") if $conditionalString;
</span><span class="cx">
</span><span class="cx"> }
</span><span class="cx"> if ($leastNumMandatoryParams >= 1) {
</span><span class="cx"> push(@implContent, " if (argsCount < $leastNumMandatoryParams)\n");
</span><del>- push(@implContent, " return throwVMError(exec, createNotEnoughArgumentsError(exec));\n");
</del><ins>+ push(@implContent, " return throwVMError(state, createNotEnoughArgumentsError(state));\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, <<END);
</span><del>- return throwVMTypeError(exec);
</del><ins>+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> END
</span><span class="lines">@@ -1703,9 +1703,9 @@
</span><span class="cx"> {
</span><span class="cx"> my $indexedGetterFunction = shift;
</span><span class="cx"> if ($indexedGetterFunction->signature->type eq "DOMString") {
</span><del>- return "jsStringOrUndefined(exec, thisObject->impl().item(index))";
</del><ins>+ return "jsStringOrUndefined(state, thisObject->impl().item(index))";
</ins><span class="cx"> }
</span><del>- return "toJS(exec, thisObject->globalObject(), thisObject->impl().item(index))";
</del><ins>+ return "toJS(state, thisObject->globalObject(), thisObject->impl().item(index))";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> sub GenerateImplementation
</span><span class="lines">@@ -2021,20 +2021,20 @@
</span><span class="cx"> if (PrototypeOverridesGetOwnPropertySlot($interface)) {
</span><span class="cx"> my $numPrototypeAttributes = PrototypeAttributeCount($interface);
</span><span class="cx"> if (IsDOMGlobalObject($interface)) {
</span><del>- push(@implContent, "bool ${className}Prototype::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)\n");
</del><ins>+ push(@implContent, "bool ${className}Prototype::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><del>- push(@implContent, " VM& vm = exec->vm();\n");
</del><ins>+ push(@implContent, " VM& vm = state->vm();\n");
</ins><span class="cx"> push(@implContent, " UNUSED_PARAM(vm);\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}Prototype*>(object);\n");
</span><span class="cx">
</span><span class="cx"> if ($numConstants eq 0 && $numFunctions eq 0 && $numPrototypeAttributes eq 0) {
</span><del>- push(@implContent, " return Base::getOwnPropertySlot(thisObject, exec, propertyName, slot);\n");
</del><ins>+ push(@implContent, " return Base::getOwnPropertySlot(thisObject, state, propertyName, slot);\n");
</ins><span class="cx"> } elsif ($numConstants eq 0 && $numPrototypeAttributes eq 0) {
</span><del>- push(@implContent, " return getStaticFunctionSlot<JSObject>(exec, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</del><ins>+ push(@implContent, " return getStaticFunctionSlot<JSObject>(state, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</ins><span class="cx"> } elsif ($numFunctions eq 0 && $numPrototypeAttributes eq 0) {
</span><del>- push(@implContent, " return getStaticValueSlot<${className}Prototype, JSObject>(exec, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</del><ins>+ push(@implContent, " return getStaticValueSlot<${className}Prototype, JSObject>(state, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</ins><span class="cx"> } else {
</span><del>- push(@implContent, " return getStaticPropertySlot<${className}Prototype, JSObject>(exec, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</del><ins>+ push(@implContent, " return getStaticPropertySlot<${className}Prototype, JSObject>(state, ${className}PrototypeTable, thisObject, propertyName, slot);\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx"> } elsif ($numConstants > 0 || $numFunctions > 0 || $numPrototypeAttributes > 0) {
</span><span class="lines">@@ -2066,12 +2066,12 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"JSCustomNamedGetterOnPrototype"}) {
</span><del>- push(@implContent, "void ${className}Prototype::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)\n");
</del><ins>+ push(@implContent, "void ${className}Prototype::put(JSCell* cell, ExecState* state, PropertyName propertyName, JSValue value, PutPropertySlot& slot)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}Prototype*>(cell);\n");
</span><del>- push(@implContent, " if (thisObject->putDelegate(exec, propertyName, value, slot))\n");
</del><ins>+ push(@implContent, " if (thisObject->putDelegate(state, propertyName, value, slot))\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><del>- push(@implContent, " Base::put(thisObject, exec, propertyName, value, slot);\n");
</del><ins>+ push(@implContent, " Base::put(thisObject, state, propertyName, value, slot);\n");
</ins><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2152,7 +2152,7 @@
</span><span class="cx"> # Attributes
</span><span class="cx"> if ($hasGetter) {
</span><span class="cx"> if (!$interface->extendedAttributes->{"CustomGetOwnPropertySlot"}) {
</span><del>- push(@implContent, "bool ${className}::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)\n");
</del><ins>+ push(@implContent, "bool ${className}::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}*>(object);\n");
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
</span><span class="lines">@@ -2163,7 +2163,7 @@
</span><span class="cx"> if ($indexedGetterFunction || $namedGetterFunction
</span><span class="cx"> || $interface->extendedAttributes->{"CustomNamedGetter"}
</span><span class="cx"> || $interface->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}) {
</span><del>- push(@implContent, "bool ${className}::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, unsigned index, PropertySlot& slot)\n");
</del><ins>+ push(@implContent, "bool ${className}::getOwnPropertySlotByIndex(JSObject* object, ExecState* state, unsigned index, PropertySlot& slot)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}*>(object);\n");
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
</span><span class="lines">@@ -2175,7 +2175,7 @@
</span><span class="cx"> if ($generatedPropertyName) {
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- push(@implContent, " Identifier propertyName = Identifier::from(exec, index);\n");
</del><ins>+ push(@implContent, " Identifier propertyName = Identifier::from(state, index);\n");
</ins><span class="cx"> $generatedPropertyName = 1;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -2202,7 +2202,7 @@
</span><span class="cx"> # This condition is to make sure we use the subclass' named getter instead of the base class one when possible.
</span><span class="cx"> push(@implContent, " if (thisObject->classInfo() == info()) {\n");
</span><span class="cx"> push(@implContent, " JSValue value;\n");
</span><del>- push(@implContent, " if (thisObject->nameGetter(exec, propertyName, value)) {\n");
</del><ins>+ push(@implContent, " if (thisObject->nameGetter(state, propertyName, value)) {\n");
</ins><span class="cx"> push(@implContent, " slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);\n");
</span><span class="cx"> push(@implContent, " return true;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="lines">@@ -2212,11 +2212,11 @@
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}) {
</span><span class="cx"> &$propertyNameGeneration();
</span><del>- push(@implContent, " if (thisObject->getOwnPropertySlotDelegate(exec, propertyName, slot))\n");
</del><ins>+ push(@implContent, " if (thisObject->getOwnPropertySlotDelegate(state, propertyName, slot))\n");
</ins><span class="cx"> push(@implContent, " return true;\n");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, " return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);\n");
</del><ins>+ push(@implContent, " return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);\n");
</ins><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2235,10 +2235,10 @@
</span><span class="cx"> my $attributeConditionalString = $codeGenerator->GenerateConditionalString($attribute->signature);
</span><span class="cx"> push(@implContent, "#if ${attributeConditionalString}\n") if $attributeConditionalString;
</span><span class="cx">
</span><del>- push(@implContent, "EncodedJSValue ${getFunctionName}(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)\n");
</del><ins>+ push(@implContent, "EncodedJSValue ${getFunctionName}(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx">
</span><del>- push(@implContent, " UNUSED_PARAM(exec);\n");
</del><ins>+ push(@implContent, " UNUSED_PARAM(state);\n");
</ins><span class="cx"> push(@implContent, " UNUSED_PARAM(slotBase);\n");
</span><span class="cx"> push(@implContent, " UNUSED_PARAM(thisValue);\n");
</span><span class="cx"> if (!$attribute->isStatic || $attribute->signature->type =~ /Constructor$/) {
</span><span class="lines">@@ -2249,14 +2249,14 @@
</span><span class="cx"> if (InterfaceRequiresAttributesOnInstanceForCompatibility($interface)) {
</span><span class="cx"> push(@implContent, " ${className}* castedThisObject = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThisObject))\n");
</span><del>- push(@implContent, " reportDeprecatedGetterError(*exec, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " reportDeprecatedGetterError(*state, \"$interfaceName\", \"$name\");\n");
</ins><span class="cx"> }
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " ${className}* castedThis = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis)) {\n");
</span><span class="cx"> push(@implContent, " if (jsDynamicCast<${className}Prototype*>(slotBase))\n");
</span><del>- push(@implContent, " return reportDeprecatedGetterError(*exec, \"$interfaceName\", \"$name\");\n");
- push(@implContent, " return throwGetterTypeError(*exec, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " return reportDeprecatedGetterError(*state, \"$interfaceName\", \"$name\");\n");
+ push(@implContent, " return throwGetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
</ins><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -2293,7 +2293,7 @@
</span><span class="cx"> if ($interface->extendedAttributes->{"CheckSecurity"} &&
</span><span class="cx"> !$attribute->signature->extendedAttributes->{"DoNotCheckSecurity"} &&
</span><span class="cx"> !$attribute->signature->extendedAttributes->{"DoNotCheckSecurityOnGetter"}) {
</span><del>- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))\n");
</del><ins>+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2303,7 +2303,7 @@
</span><span class="cx"> AddToImplIncludes("<wtf/NeverDestroyed.h>", "WEB_REPLAY");
</span><span class="cx">
</span><span class="cx"> push(@implContent, "#if ENABLE(WEB_REPLAY)\n");
</span><del>- push(@implContent, " JSGlobalObject* globalObject = exec->lexicalGlobalObject();\n");
</del><ins>+ push(@implContent, " JSGlobalObject* globalObject = state->lexicalGlobalObject();\n");
</ins><span class="cx"> push(@implContent, " InputCursor& cursor = globalObject->inputCursor();\n");
</span><span class="cx">
</span><span class="cx"> my $nativeType = GetNativeType($type);
</span><span class="lines">@@ -2314,7 +2314,7 @@
</span><span class="cx"> push(@implContent, " $memoizedType memoizedResult = castedThis->impl().$implGetterFunctionName(" . join(", ", @arguments) . ");\n");
</span><span class="cx"> push(@implContent, " cursor.appendInput<MemoizedDOMResult<$memoizedType>>(bindingName.get().string(), memoizedResult, $exceptionCode);\n");
</span><span class="cx"> push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "memoizedResult", "castedThis") . ";\n");
</span><del>- push(@implContent, " setDOMException(exec, ec);\n") if $getterExceptions;
</del><ins>+ push(@implContent, " setDOMException(state, ec);\n") if $getterExceptions;
</ins><span class="cx"> push(@implContent, " return JSValue::encode(result);\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> push(@implContent, "\n");
</span><span class="lines">@@ -2324,7 +2324,7 @@
</span><span class="cx"> push(@implContent, " if (input && input->convertTo<$memoizedType>(memoizedResult)) {\n");
</span><span class="cx"> # FIXME: the generated code should report an error if an input cannot be fetched or converted.
</span><span class="cx"> push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "memoizedResult", "castedThis") . ";\n");
</span><del>- push(@implContent, " setDOMException(exec, input->exceptionCode());\n") if $getterExceptions;
</del><ins>+ push(@implContent, " setDOMException(state, input->exceptionCode());\n") if $getterExceptions;
</ins><span class="cx"> push(@implContent, " return JSValue::encode(result);\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="lines">@@ -2332,17 +2332,17 @@
</span><span class="cx"> } # attribute Nondeterministic
</span><span class="cx">
</span><span class="cx"> if (HasCustomGetter($attribute->signature->extendedAttributes)) {
</span><del>- push(@implContent, " return JSValue::encode(castedThis->$implGetterFunctionName(exec));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(castedThis->$implGetterFunctionName(state));\n");
</ins><span class="cx"> } elsif ($attribute->signature->extendedAttributes->{"CheckSecurityForNode"}) {
</span><span class="cx"> $implIncludes{"JSDOMBinding.h"} = 1;
</span><span class="cx"> push(@implContent, " auto& impl = castedThis->impl();\n");
</span><del>- push(@implContent, " return JSValue::encode(shouldAllowAccessToNode(exec, impl." . $attribute->signature->name . "()) ? " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName()", "castedThis") . " : jsNull());\n");
</del><ins>+ push(@implContent, " return JSValue::encode(shouldAllowAccessToNode(state, impl." . $attribute->signature->name . "()) ? " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName()", "castedThis") . " : jsNull());\n");
</ins><span class="cx"> } elsif ($type eq "EventHandler") {
</span><span class="cx"> my $getter = $attribute->signature->extendedAttributes->{"WindowEventHandler"} ? "windowEventHandlerAttribute"
</span><span class="cx"> : $attribute->signature->extendedAttributes->{"DocumentEventHandler"} ? "documentEventHandlerAttribute"
</span><span class="cx"> : "eventHandlerAttribute";
</span><span class="cx"> my $eventName = EventHandlerAttributeEventName($attribute);
</span><del>- push(@implContent, " UNUSED_PARAM(exec);\n");
</del><ins>+ push(@implContent, " UNUSED_PARAM(state);\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode($getter(castedThis->impl(), $eventName));\n");
</span><span class="cx"> } elsif ($attribute->signature->type =~ /Constructor$/) {
</span><span class="cx"> my $constructorType = $attribute->signature->type;
</span><span class="lines">@@ -2352,10 +2352,10 @@
</span><span class="cx"> if ($interfaceName eq "DOMWindow") {
</span><span class="cx"> my $named = ($constructorType =~ /Named$/) ? "Named" : "";
</span><span class="cx"> $constructorType =~ s/Named$//;
</span><del>- push(@implContent, " return JSValue::encode(JS" . $constructorType . "::get${named}Constructor(exec->vm(), castedThis));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(JS" . $constructorType . "::get${named}Constructor(state->vm(), castedThis));\n");
</ins><span class="cx"> } else {
</span><span class="cx"> AddToImplIncludes("JS" . $constructorType . ".h", $attribute->signature->extendedAttributes->{"Conditional"});
</span><del>- push(@implContent, " return JSValue::encode(JS" . $constructorType . "::getConstructor(exec->vm(), castedThis->globalObject()));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(JS" . $constructorType . "::getConstructor(state->vm(), castedThis->globalObject()));\n");
</ins><span class="cx"> }
</span><span class="cx"> } elsif (!$attribute->signature->extendedAttributes->{"GetterRaisesException"}) {
</span><span class="cx"> push(@implContent, " bool isNull = false;\n") if $isNullable;
</span><span class="lines">@@ -2399,7 +2399,7 @@
</span><span class="cx"> push(@implContent, " auto& impl = castedThis->impl();\n") if !$attribute->isStatic;
</span><span class="cx"> if ($codeGenerator->IsSVGAnimatedType($type)) {
</span><span class="cx"> push(@implContent, " RefPtr<$type> obj = $jsType;\n");
</span><del>- push(@implContent, " JSValue result = toJS(exec, castedThis->globalObject(), obj.get());\n");
</del><ins>+ push(@implContent, " JSValue result = toJS(state, castedThis->globalObject(), obj.get());\n");
</ins><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " JSValue result = $jsType;\n");
</span><span class="cx"> }
</span><span class="lines">@@ -2410,7 +2410,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, " castedThis->m_" . $attribute->signature->name . ".set(exec->vm(), castedThis, result);\n") if ($attribute->signature->extendedAttributes->{"CachedAttribute"});
</del><ins>+ push(@implContent, " castedThis->m_" . $attribute->signature->name . ".set(state->vm(), castedThis, result);\n") if ($attribute->signature->extendedAttributes->{"CachedAttribute"});
</ins><span class="cx"> push(@implContent, " return JSValue::encode(result);\n");
</span><span class="cx">
</span><span class="cx"> } else {
</span><span class="lines">@@ -2429,7 +2429,7 @@
</span><span class="cx"> push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName(" . join(", ", @arguments) . ")", "castedThis") . ";\n");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, " setDOMException(exec, ec);\n");
</del><ins>+ push(@implContent, " setDOMException(state, ec);\n");
</ins><span class="cx">
</span><span class="cx"> if ($isNullable) {
</span><span class="cx"> push(@implContent, " if (isNull)\n");
</span><span class="lines">@@ -2450,33 +2450,33 @@
</span><span class="cx"> my $constructorFunctionName = "js" . $interfaceName . "Constructor";
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomProxyToJSObject"}) {
</span><del>- push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)\n");
</del><ins>+ push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " ${className}* domObject = to${className}(JSValue::decode(thisValue));\n");
</span><span class="cx"> } elsif (ConstructorShouldBeOnInstance($interface)) {
</span><del>- push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)\n");
</del><ins>+ push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " ${className}* domObject = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> } else {
</span><del>- push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)\n");
</del><ins>+ push(@implContent, "EncodedJSValue ${constructorFunctionName}(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " ${className}Prototype* domObject = jsDynamicCast<${className}Prototype*>(baseValue);\n");
</span><span class="cx"> }
</span><span class="cx"> push(@implContent, " if (!domObject)\n");
</span><del>- push(@implContent, " return throwVMTypeError(exec);\n");
</del><ins>+ push(@implContent, " return throwVMTypeError(state);\n");
</ins><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CheckSecurity"}) {
</span><span class="cx"> die if !ConstructorShouldBeOnInstance($interface);
</span><del>- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, domObject->impl()))\n");
</del><ins>+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->impl()))\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (!$interface->extendedAttributes->{"NoInterfaceObject"}) {
</span><del>- push(@implContent, " return JSValue::encode(${className}::getConstructor(exec->vm(), domObject->globalObject()));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(${className}::getConstructor(state->vm(), domObject->globalObject()));\n");
</ins><span class="cx"> } else {
</span><del>- push(@implContent, " JSValue constructor = ${className}Constructor::create(exec->vm(), ${className}Constructor::createStructure(exec->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));\n");
</del><ins>+ push(@implContent, " JSValue constructor = ${className}Constructor::create(state->vm(), ${className}Constructor::createStructure(state->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));\n");
</ins><span class="cx"> push(@implContent, " // Shadowing constructor property to ensure reusing the same constructor object\n");
</span><del>- push(@implContent, " domObject->putDirect(exec->vm(), exec->propertyNames().constructor, constructor, DontEnum | ReadOnly);\n");
</del><ins>+ push(@implContent, " domObject->putDirect(state->vm(), state->propertyNames().constructor, constructor, DontEnum | ReadOnly);\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(constructor);\n");
</span><span class="cx"> }
</span><span class="cx"> push(@implContent, "}\n\n");
</span><span class="lines">@@ -2485,7 +2485,7 @@
</span><span class="cx"> if ($interface->extendedAttributes->{"ReplaceableConstructor"}) {
</span><span class="cx"> my $constructorFunctionName = "setJS" . $interfaceName . "Constructor";
</span><span class="cx">
</span><del>- push(@implContent, "void ${constructorFunctionName}(ExecState* exec, JSObject*, EncodedJSValue thisValue, EncodedJSValue encodedValue)\n");
</del><ins>+ push(@implContent, "void ${constructorFunctionName}(ExecState* state, JSObject*, EncodedJSValue thisValue, EncodedJSValue encodedValue)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " JSValue value = JSValue::decode(encodedValue);");
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomProxyToJSObject"}) {
</span><span class="lines">@@ -2494,14 +2494,14 @@
</span><span class="cx"> push(@implContent, " ${className}* castedThis = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> }
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis)) {\n");
</span><del>- push(@implContent, " throwVMTypeError(exec);\n");
</del><ins>+ push(@implContent, " throwVMTypeError(state);\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> if ($interface->extendedAttributes->{"CheckSecurity"}) {
</span><span class="cx"> if ($interfaceName eq "DOMWindow") {
</span><del>- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))\n");
</del><ins>+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
</ins><span class="cx"> } else {
</span><del>- push(@implContent, " if (!shouldAllowAccessToFrame(exec, castedThis->impl().frame()))\n");
</del><ins>+ push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->impl().frame()))\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> }
</span><span class="lines">@@ -2509,7 +2509,7 @@
</span><span class="cx"> push(@implContent, " // Shadowing a built-in constructor\n");
</span><span class="cx">
</span><span class="cx"> if ($interfaceName eq "DOMWindow") {
</span><del>- push(@implContent, " castedThis->putDirect(exec->vm(), exec->propertyNames().constructor, value);\n");
</del><ins>+ push(@implContent, " castedThis->putDirect(state->vm(), state->propertyNames().constructor, value);\n");
</ins><span class="cx"> } else {
</span><span class="cx"> die "No way to handle interface with ReplaceableConstructor extended attribute: $interfaceName";
</span><span class="cx"> }
</span><span class="lines">@@ -2521,45 +2521,45 @@
</span><span class="cx">
</span><span class="cx"> if ($hasCustomSetter) {
</span><span class="cx"> if (!$interface->extendedAttributes->{"CustomPutFunction"}) {
</span><del>- push(@implContent, "void ${className}::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)\n");
</del><ins>+ push(@implContent, "void ${className}::put(JSCell* cell, ExecState* state, PropertyName propertyName, JSValue value, PutPropertySlot& slot)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}*>(cell);\n");
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomIndexedSetter"}) {
</span><span class="cx"> push(@implContent, " if (Optional<uint32_t> index = parseIndex(propertyName)) {\n");
</span><del>- push(@implContent, " thisObject->indexSetter(exec, index.value(), value);\n");
</del><ins>+ push(@implContent, " thisObject->indexSetter(state, index.value(), value);\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomNamedSetter"}) {
</span><del>- push(@implContent, " if (thisObject->putDelegate(exec, propertyName, value, slot))\n");
</del><ins>+ push(@implContent, " if (thisObject->putDelegate(state, propertyName, value, slot))\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, " Base::put(thisObject, exec, propertyName, value, slot);\n");
</del><ins>+ push(@implContent, " Base::put(thisObject, state, propertyName, value, slot);\n");
</ins><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomIndexedSetter"} || $interface->extendedAttributes->{"CustomNamedSetter"}) {
</span><del>- push(@implContent, "void ${className}::putByIndex(JSCell* cell, ExecState* exec, unsigned index, JSValue value, bool shouldThrow)\n");
</del><ins>+ push(@implContent, "void ${className}::putByIndex(JSCell* cell, ExecState* state, unsigned index, JSValue value, bool shouldThrow)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}*>(cell);\n");
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomIndexedSetter"}) {
</span><span class="cx"> push(@implContent, " if (index <= MAX_ARRAY_INDEX) {\n");
</span><del>- push(@implContent, " thisObject->indexSetter(exec, index, value);\n");
</del><ins>+ push(@implContent, " thisObject->indexSetter(state, index, value);\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomNamedSetter"}) {
</span><del>- push(@implContent, " Identifier propertyName = Identifier::from(exec, index);\n");
</del><ins>+ push(@implContent, " Identifier propertyName = Identifier::from(state, index);\n");
</ins><span class="cx"> push(@implContent, " PutPropertySlot slot(thisObject, shouldThrow);\n");
</span><del>- push(@implContent, " if (thisObject->putDelegate(exec, propertyName, value, slot))\n");
</del><ins>+ push(@implContent, " if (thisObject->putDelegate(state, propertyName, value, slot))\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, " Base::putByIndex(cell, exec, index, value, shouldThrow);\n");
</del><ins>+ push(@implContent, " Base::putByIndex(cell, state, index, value, shouldThrow);\n");
</ins><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -2576,7 +2576,7 @@
</span><span class="cx"> my $attributeConditionalString = $codeGenerator->GenerateConditionalString($attribute->signature);
</span><span class="cx"> push(@implContent, "#if ${attributeConditionalString}\n") if $attributeConditionalString;
</span><span class="cx">
</span><del>- push(@implContent, "void ${putFunctionName}(ExecState* exec, JSObject* baseObject, EncodedJSValue");
</del><ins>+ push(@implContent, "void ${putFunctionName}(ExecState* state, JSObject* baseObject, EncodedJSValue");
</ins><span class="cx"> push(@implContent, " thisValue") if !$attribute->isStatic;
</span><span class="cx"> push(@implContent, ", EncodedJSValue encodedValue)\n");
</span><span class="cx"> push(@implContent, "{\n");
</span><span class="lines">@@ -2591,46 +2591,46 @@
</span><span class="cx"> if (InterfaceRequiresAttributesOnInstanceForCompatibility($interface)) {
</span><span class="cx"> push(@implContent, " ${className}* castedThisObject = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThisObject))\n");
</span><del>- push(@implContent, " reportDeprecatedSetterError(*exec, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " reportDeprecatedSetterError(*state, \"$interfaceName\", \"$name\");\n");
</ins><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " UNUSED_PARAM(thisValue);\n");
</span><del>- push(@implContent, " UNUSED_PARAM(exec);\n");
</del><ins>+ push(@implContent, " UNUSED_PARAM(state);\n");
</ins><span class="cx"> }
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " ${className}* castedThis = " . GetCastingHelperForThisObject($interface) . "(JSValue::decode(thisValue));\n");
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis)) {\n");
</span><span class="cx"> push(@implContent, " if (jsDynamicCast<${className}Prototype*>(JSValue::decode(thisValue)))\n");
</span><del>- push(@implContent, " reportDeprecatedSetterError(*exec, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " reportDeprecatedSetterError(*state, \"$interfaceName\", \"$name\");\n");
</ins><span class="cx"> push(@implContent, " else\n");
</span><del>- push(@implContent, " throwSetterTypeError(*exec, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " throwSetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> if ($interface->extendedAttributes->{"CheckSecurity"} && !$attribute->signature->extendedAttributes->{"DoNotCheckSecurity"}) {
</span><span class="cx"> if ($interfaceName eq "DOMWindow") {
</span><del>- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))\n");
</del><ins>+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
</ins><span class="cx"> } else {
</span><del>- push(@implContent, " if (!shouldAllowAccessToFrame(exec, castedThis->impl().frame()))\n");
</del><ins>+ push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->impl().frame()))\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (HasCustomSetter($attribute->signature->extendedAttributes)) {
</span><del>- push(@implContent, " castedThis->set$implSetterFunctionName(exec, value);\n");
</del><ins>+ push(@implContent, " castedThis->set$implSetterFunctionName(state, value);\n");
</ins><span class="cx"> } elsif ($type eq "EventHandler") {
</span><span class="cx"> $implIncludes{"JSEventListener.h"} = 1;
</span><span class="cx"> my $eventName = EventHandlerAttributeEventName($attribute);
</span><span class="cx"> # FIXME: Find a way to do this special case without hardcoding the class and attribute names here.
</span><span class="cx"> if ((($interfaceName eq "DOMWindow") or ($interfaceName eq "WorkerGlobalScope")) and $name eq "onerror") {
</span><span class="cx"> $implIncludes{"JSErrorHandler.h"} = 1;
</span><del>- push(@implContent, " castedThis->impl().setAttributeEventListener($eventName, createJSErrorHandler(exec, value, castedThis));\n");
</del><ins>+ push(@implContent, " castedThis->impl().setAttributeEventListener($eventName, createJSErrorHandler(state, value, castedThis));\n");
</ins><span class="cx"> } else {
</span><span class="cx"> $implIncludes{"JSEventListener.h"} = 1;
</span><span class="cx"> my $setter = $attribute->signature->extendedAttributes->{"WindowEventHandler"} ? "setWindowEventHandlerAttribute"
</span><span class="cx"> : $attribute->signature->extendedAttributes->{"DocumentEventHandler"} ? "setDocumentEventHandlerAttribute"
</span><span class="cx"> : "setEventHandlerAttribute";
</span><del>- push(@implContent, " $setter(*exec, *castedThis, castedThis->impl(), $eventName, value);\n");
</del><ins>+ push(@implContent, " $setter(*state, *castedThis, castedThis->impl(), $eventName, value);\n");
</ins><span class="cx"> }
</span><span class="cx"> } elsif ($attribute->signature->type =~ /Constructor$/) {
</span><span class="cx"> my $constructorType = $attribute->signature->type;
</span><span class="lines">@@ -2642,10 +2642,10 @@
</span><span class="cx"> AddToImplIncludes("JS" . $constructorType . ".h", $attribute->signature->extendedAttributes->{"Conditional"});
</span><span class="cx"> }
</span><span class="cx"> push(@implContent, " // Shadowing a built-in constructor.\n");
</span><del>- push(@implContent, " castedThis->putDirect(exec->vm(), Identifier::fromString(exec, \"$name\"), value);\n");
</del><ins>+ push(@implContent, " castedThis->putDirect(state->vm(), Identifier::fromString(state, \"$name\"), value);\n");
</ins><span class="cx"> } elsif ($attribute->signature->extendedAttributes->{"Replaceable"}) {
</span><span class="cx"> push(@implContent, " // Shadowing a built-in object.\n");
</span><del>- push(@implContent, " castedThis->putDirect(exec->vm(), Identifier::fromString(exec, \"$name\"), value);\n");
</del><ins>+ push(@implContent, " castedThis->putDirect(state->vm(), Identifier::fromString(state, \"$name\"), value);\n");
</ins><span class="cx"> } else {
</span><span class="cx"> if (!$attribute->isStatic) {
</span><span class="cx"> my $putForwards = $attribute->signature->extendedAttributes->{"PutForwards"};
</span><span class="lines">@@ -2673,14 +2673,14 @@
</span><span class="cx"> my $argType = $attribute->signature->type;
</span><span class="cx"> if ($codeGenerator->IsWrapperType($argType)) {
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!value.isUndefinedOrNull() && !value.inherits(JS${argType}::info()))) {\n");
</span><del>- push(@implContent, " throwAttributeTypeError(*exec, \"$interfaceName\", \"$name\", \"$argType\");\n");
</del><ins>+ push(@implContent, " throwAttributeTypeError(*state, \"$interfaceName\", \"$name\", \"$argType\");\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " };\n");
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> push(@implContent, " " . GetNativeTypeFromSignature($attribute->signature) . " nativeValue = " . JSValueToNative($attribute->signature, "value", $attribute->signature->extendedAttributes->{"Conditional"}) . ";\n");
</span><del>- push(@implContent, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@implContent, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsEnumType($type)) {
</span><span class="lines">@@ -2695,7 +2695,7 @@
</span><span class="cx">
</span><span class="cx"> if ($attribute->signature->type eq "double" or $attribute->signature->type eq "float") {
</span><span class="cx"> push(@implContent, " if (!std::isfinite(nativeValue)) {\n");
</span><del>- push(@implContent, " setDOMException(exec, TypeError);\n");
</del><ins>+ push(@implContent, " setDOMException(state, TypeError);\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="lines">@@ -2703,7 +2703,7 @@
</span><span class="cx"> if ($svgPropertyOrListPropertyType) {
</span><span class="cx"> if ($svgPropertyType) {
</span><span class="cx"> push(@implContent, " if (impl.isReadOnly()) {\n");
</span><del>- push(@implContent, " setDOMException(exec, NO_MODIFICATION_ALLOWED_ERR);\n");
</del><ins>+ push(@implContent, " setDOMException(state, NO_MODIFICATION_ALLOWED_ERR);\n");
</ins><span class="cx"> push(@implContent, " return;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> $implIncludes{"ExceptionCode.h"} = 1;
</span><span class="lines">@@ -2715,7 +2715,7 @@
</span><span class="cx"> push(@implContent, " podImpl.set$implSetterFunctionName(nativeValue");
</span><span class="cx"> push(@implContent, ", ec") if $setterRaisesException;
</span><span class="cx"> push(@implContent, ");\n");
</span><del>- push(@implContent, " setDOMException(exec, ec);\n") if $setterRaisesException;
</del><ins>+ push(@implContent, " setDOMException(state, ec);\n") if $setterRaisesException;
</ins><span class="cx"> }
</span><span class="cx"> if ($svgPropertyType) {
</span><span class="cx"> if ($setterRaisesException) {
</span><span class="lines">@@ -2748,7 +2748,7 @@
</span><span class="cx">
</span><span class="cx"> push(@arguments, "ec") if $setterRaisesException;
</span><span class="cx"> push(@implContent, " ${functionName}(" . join(", ", @arguments) . ");\n");
</span><del>- push(@implContent, " setDOMException(exec, ec);\n") if $setterRaisesException;
</del><ins>+ push(@implContent, " setDOMException(state, ec);\n") if $setterRaisesException;
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2759,13 +2759,13 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($indexedGetterFunction && !$interface->extendedAttributes->{"CustomEnumerateProperty"}) {
</span><del>- push(@implContent, "void ${className}::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)\n");
</del><ins>+ push(@implContent, "void ${className}::getOwnPropertyNames(JSObject* object, ExecState* state, PropertyNameArray& propertyNames, EnumerationMode mode)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx"> push(@implContent, " auto* thisObject = jsCast<${className}*>(object);\n");
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
</span><span class="cx"> push(@implContent, " for (unsigned i = 0, count = thisObject->impl().length(); i < count; ++i)\n");
</span><del>- push(@implContent, " propertyNames.add(Identifier::from(exec, i));\n");
- push(@implContent, " Base::getOwnPropertyNames(thisObject, exec, propertyNames, mode);\n");
</del><ins>+ push(@implContent, " propertyNames.add(Identifier::from(state, i));\n");
+ push(@implContent, " Base::getOwnPropertyNames(thisObject, state, propertyNames, mode);\n");
</ins><span class="cx"> push(@implContent, "}\n\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2827,16 +2827,16 @@
</span><span class="cx"> AddToImplIncludes("JSDOMPromise.h");
</span><span class="cx">
</span><span class="cx"> push(@implContent, "static inline EncodedJSValue ${functionName}Promise(ExecState*, JSPromiseDeferred*);\n");
</span><del>- push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* exec)\n");
</del><ins>+ push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* state)\n");
</ins><span class="cx"> push(@implContent, "{\n");
</span><span class="cx">
</span><del>- push(@implContent, " return JSValue::encode(callPromiseFunction(*exec, ${functionName}Promise));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(callPromiseFunction(*state, ${functionName}Promise));\n");
</ins><span class="cx">
</span><span class="cx"> push(@implContent, "}\n");
</span><del>- push(@implContent, "\nstatic inline EncodedJSValue ${functionName}Promise(ExecState* exec, JSPromiseDeferred* promiseDeferred)\n");
</del><ins>+ push(@implContent, "\nstatic inline EncodedJSValue ${functionName}Promise(ExecState* state, JSPromiseDeferred* promiseDeferred)\n");
</ins><span class="cx"> }
</span><span class="cx"> else {
</span><del>- push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* exec)\n");
</del><ins>+ push(@implContent, "EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* state)\n");
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> push(@implContent, "{\n");
</span><span class="lines">@@ -2846,7 +2846,7 @@
</span><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> if ($isCustom) {
</span><span class="cx"> GenerateArgumentsCountCheck(\@implContent, $function, $interface);
</span><del>- push(@implContent, " return JSValue::encode(${className}::" . $functionImplementationName . "(exec));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(${className}::" . $functionImplementationName . "(state));\n");
</ins><span class="cx"> } else {
</span><span class="cx"> GenerateArgumentsCountCheck(\@implContent, $function, $interface);
</span><span class="cx">
</span><span class="lines">@@ -2861,17 +2861,17 @@
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"CheckSecurity"} and
</span><span class="cx"> !$function->signature->extendedAttributes->{"DoNotCheckSecurity"}) {
</span><del>- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))\n");
</del><ins>+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($isCustom) {
</span><del>- push(@implContent, " return JSValue::encode(castedThis->" . $functionImplementationName . "(exec));\n");
</del><ins>+ push(@implContent, " return JSValue::encode(castedThis->" . $functionImplementationName . "(state));\n");
</ins><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " auto& impl = castedThis->impl();\n");
</span><span class="cx"> if ($svgPropertyType) {
</span><span class="cx"> push(@implContent, " if (impl.isReadOnly()) {\n");
</span><del>- push(@implContent, " setDOMException(exec, NO_MODIFICATION_ALLOWED_ERR);\n");
</del><ins>+ push(@implContent, " setDOMException(state, NO_MODIFICATION_ALLOWED_ERR);\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> push(@implContent, " $svgPropertyType& podImpl = impl.propertyReference();\n");
</span><span class="lines">@@ -2889,7 +2889,7 @@
</span><span class="cx"> push(@implContent, " ExceptionCode ec = 0;\n") if $raisesException;
</span><span class="cx">
</span><span class="cx"> if ($function->signature->extendedAttributes->{"CheckSecurityForNode"}) {
</span><del>- push(@implContent, " if (!shouldAllowAccessToNode(exec, impl." . $function->signature->name . "(" . ($raisesException ? "ec" : "") .")))\n");
</del><ins>+ push(@implContent, " if (!shouldAllowAccessToNode(state, impl." . $function->signature->name . "(" . ($raisesException ? "ec" : "") .")))\n");
</ins><span class="cx"> push(@implContent, " return JSValue::encode(jsNull());\n");
</span><span class="cx"> $implIncludes{"JSDOMBinding.h"} = 1;
</span><span class="cx"> }
</span><span class="lines">@@ -3160,19 +3160,19 @@
</span><span class="cx"> my $className = shift;
</span><span class="cx"> my $function = shift;
</span><span class="cx"> if ($interface->extendedAttributes->{"CustomProxyToJSObject"}) {
</span><del>- push(@implContent, " $className* castedThis = to${className}(exec->thisValue().toThis(exec, NotStrictMode));\n");
</del><ins>+ push(@implContent, " $className* castedThis = to${className}(state->thisValue().toThis(state, NotStrictMode));\n");
</ins><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis))\n");
</span><del>- push(@implContent, " return throwVMTypeError(exec);\n");
</del><ins>+ push(@implContent, " return throwVMTypeError(state);\n");
</ins><span class="cx"> } elsif ($interface->extendedAttributes->{"WorkerGlobalScope"}) {
</span><del>- push(@implContent, " $className* castedThis = to${className}(exec->thisValue().toThis(exec, NotStrictMode));\n");
</del><ins>+ push(@implContent, " $className* castedThis = to${className}(state->thisValue().toThis(state, NotStrictMode));\n");
</ins><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis))\n");
</span><del>- push(@implContent, " return throwVMTypeError(exec);\n");
</del><ins>+ push(@implContent, " return throwVMTypeError(state);\n");
</ins><span class="cx"> } else {
</span><del>- push(@implContent, " JSValue thisValue = exec->thisValue();\n");
</del><ins>+ push(@implContent, " JSValue thisValue = state->thisValue();\n");
</ins><span class="cx"> push(@implContent, " $className* castedThis = " . GetCastingHelperForThisObject($interface) . "(thisValue);\n");
</span><span class="cx"> my $domFunctionName = $function->signature->name;
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis))\n");
</span><del>- push(@implContent, " return throwThisTypeError(*exec, \"$interfaceName\", \"$domFunctionName\");\n");
</del><ins>+ push(@implContent, " return throwThisTypeError(*state, \"$interfaceName\", \"$domFunctionName\");\n");
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(castedThis, ${className}::info());\n");
</span><span class="lines">@@ -3187,21 +3187,21 @@
</span><span class="cx"> my $function = shift;
</span><span class="cx">
</span><span class="cx"> my @callWithArgs;
</span><del>- push(@callWithArgs, "exec") if $codeGenerator->ExtendedAttributeContains($callWith, "ScriptState");
</del><ins>+ push(@callWithArgs, "*state") if $codeGenerator->ExtendedAttributeContains($callWith, "ScriptState");
</ins><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($callWith, "ScriptExecutionContext")) {
</span><del>- push(@$outputArray, " auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();\n");
</del><ins>+ push(@$outputArray, " auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();\n");
</ins><span class="cx"> push(@$outputArray, " if (!scriptContext)\n");
</span><span class="cx"> push(@$outputArray, " return" . ($returnValue ? " " . $returnValue : "") . ";\n");
</span><span class="cx"> push(@callWithArgs, "scriptContext");
</span><span class="cx"> }
</span><span class="cx"> if ($function and $codeGenerator->ExtendedAttributeContains($callWith, "ScriptArguments")) {
</span><del>- push(@$outputArray, " RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(exec, " . @{$function->parameters} . "));\n");
</del><ins>+ push(@$outputArray, " RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(state, " . @{$function->parameters} . "));\n");
</ins><span class="cx"> $implIncludes{"<inspector/ScriptArguments.h>"} = 1;
</span><span class="cx"> $implIncludes{"<inspector/ScriptCallStackFactory.h>"} = 1;
</span><span class="cx"> push(@callWithArgs, "scriptArguments.release()");
</span><span class="cx"> }
</span><del>- push(@callWithArgs, "activeDOMWindow(exec)") if $codeGenerator->ExtendedAttributeContains($callWith, "ActiveWindow");
- push(@callWithArgs, "firstDOMWindow(exec)") if $codeGenerator->ExtendedAttributeContains($callWith, "FirstWindow");
</del><ins>+ push(@callWithArgs, "activeDOMWindow(state)") if $codeGenerator->ExtendedAttributeContains($callWith, "ActiveWindow");
+ push(@callWithArgs, "firstDOMWindow(state)") if $codeGenerator->ExtendedAttributeContains($callWith, "FirstWindow");
</ins><span class="cx">
</span><span class="cx"> return @callWithArgs;
</span><span class="cx"> }
</span><span class="lines">@@ -3222,8 +3222,8 @@
</span><span class="cx"> }
</span><span class="cx"> if ($numMandatoryParams >= 1)
</span><span class="cx"> {
</span><del>- push(@$outputArray, " if (UNLIKELY(exec->argumentCount() < $numMandatoryParams))\n");
- push(@$outputArray, " return throwVMError(exec, createNotEnoughArgumentsError(exec));\n");
</del><ins>+ push(@$outputArray, " if (UNLIKELY(state->argumentCount() < $numMandatoryParams))\n");
+ push(@$outputArray, " return throwVMError(state, createNotEnoughArgumentsError(state));\n");
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3280,7 +3280,7 @@
</span><span class="cx"> if ($optional && !$defaultAttribute && $argType ne "Dictionary" && !$codeGenerator->IsCallbackInterface($parameter->type)) {
</span><span class="cx"> # Generate early call if there are enough parameters.
</span><span class="cx"> if (!$hasOptionalArguments) {
</span><del>- push(@$outputArray, "\n size_t argsCount = exec->argumentCount();\n");
</del><ins>+ push(@$outputArray, "\n size_t argsCount = state->argumentCount();\n");
</ins><span class="cx"> $hasOptionalArguments = 1;
</span><span class="cx"> }
</span><span class="cx"> push(@$outputArray, " if (argsCount <= $argsIndex) {\n");
</span><span class="lines">@@ -3296,10 +3296,10 @@
</span><span class="cx">
</span><span class="cx"> if ($argType eq "XPathNSResolver") {
</span><span class="cx"> push(@$outputArray, " RefPtr<XPathNSResolver> customResolver;\n");
</span><del>- push(@$outputArray, " XPathNSResolver* resolver = JSXPathNSResolver::toWrapped(exec->argument($argsIndex));\n");
</del><ins>+ push(@$outputArray, " XPathNSResolver* resolver = JSXPathNSResolver::toWrapped(state->argument($argsIndex));\n");
</ins><span class="cx"> push(@$outputArray, " if (!resolver) {\n");
</span><del>- push(@$outputArray, " customResolver = JSCustomXPathNSResolver::create(exec, exec->argument($argsIndex));\n");
- push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, " customResolver = JSCustomXPathNSResolver::create(state, state->argument($argsIndex));\n");
+ push(@$outputArray, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> push(@$outputArray, " resolver = customResolver.get();\n");
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="lines">@@ -3308,39 +3308,39 @@
</span><span class="cx"> $implIncludes{"$callbackClassName.h"} = 1;
</span><span class="cx"> if ($optional) {
</span><span class="cx"> push(@$outputArray, " RefPtr<$argType> $name;\n");
</span><del>- push(@$outputArray, " if (!exec->argument($argsIndex).isUndefinedOrNull()) {\n");
</del><ins>+ push(@$outputArray, " if (!state->argument($argsIndex).isUndefinedOrNull()) {\n");
</ins><span class="cx"> if ($codeGenerator->IsFunctionOnlyCallbackInterface($parameter->type)) {
</span><del>- push(@$outputArray, " if (!exec->uncheckedArgument($argsIndex).isFunction())\n");
</del><ins>+ push(@$outputArray, " if (!state->uncheckedArgument($argsIndex).isFunction())\n");
</ins><span class="cx"> } else {
</span><del>- push(@$outputArray, " if (!exec->uncheckedArgument($argsIndex).isObject())\n");
</del><ins>+ push(@$outputArray, " if (!state->uncheckedArgument($argsIndex).isObject())\n");
</ins><span class="cx"> }
</span><del>- push(@$outputArray, " return throwArgumentMustBeFunctionError(*exec, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</del><ins>+ push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</ins><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> AddToImplIncludes("CallbackFunction.h");
</span><del>- push(@$outputArray, " $name = createFunctionOnlyCallback<${callbackClassName}>(exec, jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), exec->uncheckedArgument($argsIndex));\n");
</del><ins>+ push(@$outputArray, " $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argsIndex));\n");
</ins><span class="cx"> } else {
</span><del>- push(@$outputArray, " $name = ${callbackClassName}::create(asObject(exec->uncheckedArgument($argsIndex)), castedThis->globalObject());\n");
</del><ins>+ push(@$outputArray, " $name = ${callbackClassName}::create(asObject(state->uncheckedArgument($argsIndex)), castedThis->globalObject());\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> } else {
</span><span class="cx"> if ($codeGenerator->IsFunctionOnlyCallbackInterface($parameter->type)) {
</span><del>- push(@$outputArray, " if (!exec->argument($argsIndex).isFunction())\n");
</del><ins>+ push(@$outputArray, " if (!state->argument($argsIndex).isFunction())\n");
</ins><span class="cx"> } else {
</span><del>- push(@$outputArray, " if (!exec->argument($argsIndex).isObject())\n");
</del><ins>+ push(@$outputArray, " if (!state->argument($argsIndex).isObject())\n");
</ins><span class="cx"> }
</span><del>- push(@$outputArray, " return throwArgumentMustBeFunctionError(*exec, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</del><ins>+ push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</ins><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> AddToImplIncludes("CallbackFunction.h");
</span><del>- push(@$outputArray, " RefPtr<$argType> $name = createFunctionOnlyCallback<${callbackClassName}>(exec, jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), exec->uncheckedArgument($argsIndex));\n");
</del><ins>+ push(@$outputArray, " RefPtr<$argType> $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argsIndex));\n");
</ins><span class="cx"> } else {
</span><del>- push(@$outputArray, " RefPtr<$argType> $name = ${callbackClassName}::create(asObject(exec->uncheckedArgument($argsIndex)), castedThis->globalObject());\n");
</del><ins>+ push(@$outputArray, " RefPtr<$argType> $name = ${callbackClassName}::create(asObject(state->uncheckedArgument($argsIndex)), castedThis->globalObject());\n");
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> } elsif ($parameter->extendedAttributes->{"Clamp"}) {
</span><span class="cx"> my $nativeValue = "${name}NativeValue";
</span><span class="cx"> push(@$outputArray, " $argType $name = 0;\n");
</span><del>- push(@$outputArray, " double $nativeValue = exec->argument($argsIndex).toNumber(exec);\n");
- push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, " double $nativeValue = state->argument($argsIndex).toNumber(state);\n");
+ push(@$outputArray, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n\n");
</span><span class="cx"> push(@$outputArray, " if (!std::isnan($nativeValue))\n");
</span><span class="cx"> push(@$outputArray, " $name = clampTo<$argType>($nativeValue);\n\n");
</span><span class="lines">@@ -3354,15 +3354,15 @@
</span><span class="cx">
</span><span class="cx"> if (!IsNativeType($argType)) {
</span><span class="cx"> push(@$outputArray, " Vector<$nativeElementType> $name;\n");
</span><del>- push(@$outputArray, " for (unsigned i = $argsIndex, count = exec->argumentCount(); i < count; ++i) {\n");
- push(@$outputArray, " if (!exec->uncheckedArgument(i).inherits(JS${argType}::info()))\n");
- push(@$outputArray, " return throwArgumentTypeError(*exec, i, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$argType\");\n");
- push(@$outputArray, " $name.append(JS${argType}::toWrapped(exec->uncheckedArgument(i)));\n");
</del><ins>+ push(@$outputArray, " for (unsigned i = $argsIndex, count = state->argumentCount(); i < count; ++i) {\n");
+ push(@$outputArray, " if (!state->uncheckedArgument(i).inherits(JS${argType}::info()))\n");
+ push(@$outputArray, " return throwArgumentTypeError(*state, i, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$argType\");\n");
+ push(@$outputArray, " $name.append(JS${argType}::toWrapped(state->uncheckedArgument(i)));\n");
</ins><span class="cx"> push(@$outputArray, " }\n")
</span><span class="cx"> } else {
</span><del>- push(@$outputArray, " Vector<$nativeElementType> $name = toNativeArguments<$nativeElementType>(exec, $argsIndex);\n");
</del><ins>+ push(@$outputArray, " Vector<$nativeElementType> $name = toNativeArguments<$nativeElementType>(state, $argsIndex);\n");
</ins><span class="cx"> # Check if the type conversion succeeded.
</span><del>- push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3371,7 +3371,7 @@
</span><span class="cx">
</span><span class="cx"> my $exceptionCheck = sub {
</span><span class="cx"> my $indent = shift;
</span><del>- push(@$outputArray, $indent . " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, $indent . " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, $indent . " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -3389,23 +3389,23 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> push(@$outputArray, $indent . " if (" . join(" && ", @enumChecks) . ")\n");
</span><del>- push(@$outputArray, $indent . " return throwArgumentMustBeEnumError(*exec, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$enums\");\n");
</del><ins>+ push(@$outputArray, $indent . " return throwArgumentMustBeEnumError(*state, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$enums\");\n");
</ins><span class="cx"> };
</span><span class="cx">
</span><del>- my $argValue = "exec->argument($argsIndex)";
</del><ins>+ my $argValue = "state->argument($argsIndex)";
</ins><span class="cx"> if ($parameter->isOptional && $parameter->default) {
</span><span class="cx"> push(@$outputArray, " String $name;\n");
</span><span class="cx"> push(@$outputArray, " if (${argValue}.isUndefined())\n");
</span><span class="cx"> push(@$outputArray, " $name = ASCIILiteral(" . $parameter->default . ");\n");
</span><span class="cx"> push(@$outputArray, " else {\n");
</span><del>- push(@$outputArray, " $name = exec->uncheckedArgument($argsIndex).toString(exec)->value(exec);\n");
</del><ins>+ push(@$outputArray, " $name = state->uncheckedArgument($argsIndex).toString(state)->value(state);\n");
</ins><span class="cx"> &$exceptionCheck(" ");
</span><span class="cx"> &$enumValueCheck(" ");
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> } else {
</span><span class="cx"> push(@$outputArray, " // Keep pointer to the JSString in a local so we don't need to ref the String.\n");
</span><del>- push(@$outputArray, " auto* ${name}String = ${argValue}.toString(exec);\n");
- push(@$outputArray, " auto& $name = ${name}String->value(exec);\n");
</del><ins>+ push(@$outputArray, " auto* ${name}String = ${argValue}.toString(state);\n");
+ push(@$outputArray, " auto& $name = ${name}String->value(state);\n");
</ins><span class="cx"> &$exceptionCheck("");
</span><span class="cx"> &$enumValueCheck("");
</span><span class="cx"> }
</span><span class="lines">@@ -3418,48 +3418,48 @@
</span><span class="cx"> if ($function->signature->extendedAttributes->{"StrictTypeChecking"}) {
</span><span class="cx"> $implIncludes{"<runtime/Error.h>"} = 1;
</span><span class="cx">
</span><del>- my $argValue = "exec->argument($argsIndex)";
</del><ins>+ my $argValue = "state->argument($argsIndex)";
</ins><span class="cx"> if ($codeGenerator->IsWrapperType($argType)) {
</span><span class="cx"> push(@$outputArray, " if (!${argValue}.isUndefinedOrNull() && !${argValue}.inherits(JS${argType}::info()))\n");
</span><del>- push(@$outputArray, " return throwArgumentTypeError(*exec, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$argType\");\n");
</del><ins>+ push(@$outputArray, " return throwArgumentTypeError(*state, $argsIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$argType\");\n");
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($parameter->extendedAttributes->{"RequiresExistingAtomicString"}) {
</span><span class="cx"> # FIXME: This could be made slightly more efficient if we added an AtomicString(RefPtr<AtomicStringImpl>&&) constructor and removed the call to get() here.
</span><del>- push(@$outputArray, " AtomicString $name = exec->argument($argsIndex).toString(exec)->toExistingAtomicString(exec).get();\n");
</del><ins>+ push(@$outputArray, " AtomicString $name = state->argument($argsIndex).toString(state)->toExistingAtomicString(state).get();\n");
</ins><span class="cx"> push(@$outputArray, " if ($name.isNull())\n");
</span><span class="cx"> push(@$outputArray, " return JSValue::encode(jsNull());\n");
</span><span class="cx"> } else {
</span><span class="cx"> my $outer;
</span><span class="cx"> my $inner;
</span><span class="cx"> if ($optional && $defaultAttribute && $defaultAttribute eq "NullString") {
</span><del>- $outer = "exec->argument($argsIndex).isUndefined() ? String() : ";
- $inner = "exec->uncheckedArgument($argsIndex)";
</del><ins>+ $outer = "state->argument($argsIndex).isUndefined() ? String() : ";
+ $inner = "state->uncheckedArgument($argsIndex)";
</ins><span class="cx"> } elsif ($optional && $parameter->default) {
</span><del>- $outer = "exec->argument($argsIndex).isUndefined() ? " . $parameter->default . " : ";
- $inner = "exec->uncheckedArgument($argsIndex)";
</del><ins>+ $outer = "state->argument($argsIndex).isUndefined() ? " . $parameter->default . " : ";
+ $inner = "state->uncheckedArgument($argsIndex)";
</ins><span class="cx"> } else {
</span><span class="cx"> $outer = "";
</span><del>- $inner = "exec->argument($argsIndex)";
</del><ins>+ $inner = "state->argument($argsIndex)";
</ins><span class="cx"> }
</span><span class="cx"> push(@$outputArray, " " . GetNativeTypeFromSignature($parameter) . " $name = $outer" . JSValueToNative($parameter, $inner, $function->signature->extendedAttributes->{"Conditional"}) . ";\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> # Check if the type conversion succeeded.
</span><del>- push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsSVGTypeNeedingTearOff($argType) and not $interfaceName =~ /List$/) {
</span><span class="cx"> push(@$outputArray, " if (!$name) {\n");
</span><del>- push(@$outputArray, " setDOMException(exec, TYPE_MISMATCH_ERR);\n");
</del><ins>+ push(@$outputArray, " setDOMException(state, TYPE_MISMATCH_ERR);\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($parameter->type eq "double" or $parameter->type eq "float") {
</span><span class="cx"> push(@$outputArray, " if (!std::isfinite($name)) {\n");
</span><del>- push(@$outputArray, " setDOMException(exec, TypeError);\n");
</del><ins>+ push(@$outputArray, " setDOMException(state, TypeError);\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> }
</span><span class="lines">@@ -3485,7 +3485,7 @@
</span><span class="cx"> my $function = shift;
</span><span class="cx"> my @arguments;
</span><span class="cx">
</span><del>- push(@arguments, "DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred)") if IsReturningPromise($function);
</del><ins>+ push(@arguments, "DeferredWrapper(state, castedThis->globalObject(), promiseDeferred)") if IsReturningPromise($function);
</ins><span class="cx"> push(@arguments, "ec") if $function->signature->extendedAttributes->{"RaisesException"};
</span><span class="cx"> return @arguments;
</span><span class="cx"> }
</span><span class="lines">@@ -3567,7 +3567,7 @@
</span><span class="cx">
</span><span class="cx"> # toJS().
</span><span class="cx"> push(@headerContent, "JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, $interfaceName*);\n");
</span><del>- push(@headerContent, "inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, $interfaceName& impl) { return toJS(exec, globalObject, &impl); }\n\n");
</del><ins>+ push(@headerContent, "inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, $interfaceName& impl) { return toJS(state, globalObject, &impl); }\n\n");
</ins><span class="cx">
</span><span class="cx"> push(@headerContent, "} // namespace WebCore\n\n");
</span><span class="cx"> my $conditionalString = $codeGenerator->GenerateConditionalString($interface);
</span><span class="lines">@@ -3707,7 +3707,7 @@
</span><span class="cx"> push(@implContent, " return true;\n\n");
</span><span class="cx"> push(@implContent, " Ref<$className> protect(*this);\n\n");
</span><span class="cx"> push(@implContent, " JSLockHolder lock(m_data->globalObject()->vm());\n\n");
</span><del>- push(@implContent, " ExecState* exec = m_data->globalObject()->globalExec();\n");
</del><ins>+ push(@implContent, " ExecState* state = m_data->globalObject()->globalExec();\n");
</ins><span class="cx"> push(@implContent, " MarkedArgumentBuffer args;\n");
</span><span class="cx">
</span><span class="cx"> foreach my $param (@params) {
</span><span class="lines">@@ -3717,14 +3717,14 @@
</span><span class="cx">
</span><span class="cx"> push(@implContent, "\n NakedPtr<Exception> returnedException;\n");
</span><span class="cx">
</span><del>- my $propertyToLookup = "Identifier::fromString(exec, \"${functionName}\")";
</del><ins>+ my $propertyToLookup = "Identifier::fromString(state, \"${functionName}\")";
</ins><span class="cx"> my $invokeMethod = "JSCallbackData::CallbackType::FunctionOrObject";
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"Callback"}, "FunctionOnly")) {
</span><span class="cx"> # For callback functions, do not look up callable property on the user object.
</span><span class="cx"> # https://heycam.github.io/webidl/#es-callback-function
</span><span class="cx"> $invokeMethod = "JSCallbackData::CallbackType::Function";
</span><span class="cx"> $propertyToLookup = "Identifier()";
</span><del>- push(@implContent, " UNUSED_PARAM(exec);\n");
</del><ins>+ push(@implContent, " UNUSED_PARAM(state);\n");
</ins><span class="cx"> } elsif ($numFunctions > 1) {
</span><span class="cx"> # The callback interface has more than one operation so we should not call the user object as a function.
</span><span class="cx"> # instead, we should look for a property with the same name as the operation on the user object.
</span><span class="lines">@@ -3736,7 +3736,7 @@
</span><span class="cx"> # FIXME: We currently just report the exception. We should probably add an extended attribute to indicate when
</span><span class="cx"> # we want the exception to be rethrown instead.
</span><span class="cx"> push(@implContent, " if (returnedException)\n");
</span><del>- push(@implContent, " reportException(exec, returnedException);\n");
</del><ins>+ push(@implContent, " reportException(state, returnedException);\n");
</ins><span class="cx"> push(@implContent, " return !returnedException;\n");
</span><span class="cx"> push(@implContent, "}\n");
</span><span class="cx"> }
</span><span class="lines">@@ -3774,18 +3774,18 @@
</span><span class="cx"> if ($nondeterministic) {
</span><span class="cx"> AddToImplIncludes("<replay/InputCursor.h>", "WEB_REPLAY");
</span><span class="cx"> push(@implContent, "#if ENABLE(WEB_REPLAY)\n");
</span><del>- push(@implContent, $indent . "InputCursor& cursor = exec->lexicalGlobalObject()->inputCursor();\n");
</del><ins>+ push(@implContent, $indent . "InputCursor& cursor = state->lexicalGlobalObject()->inputCursor();\n");
</ins><span class="cx"> push(@implContent, $indent . "if (!cursor.isReplaying()) {\n");
</span><span class="cx"> push(@implContent, $indent . " $functionString;\n");
</span><del>- push(@implContent, $indent . " setDOMException(exec, ec);\n") if $raisesException;
</del><ins>+ push(@implContent, $indent . " setDOMException(state, ec);\n") if $raisesException;
</ins><span class="cx"> push(@implContent, $indent . "}\n");
</span><span class="cx"> push(@implContent, "#else\n");
</span><span class="cx"> push(@implContent, $indent . "$functionString;\n");
</span><del>- push(@implContent, $indent . "setDOMException(exec, ec);\n") if $raisesException;
</del><ins>+ push(@implContent, $indent . "setDOMException(state, ec);\n") if $raisesException;
</ins><span class="cx"> push(@implContent, "#endif\n");
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, $indent . "$functionString;\n");
</span><del>- push(@implContent, $indent . "setDOMException(exec, ec);\n") if $raisesException;
</del><ins>+ push(@implContent, $indent . "setDOMException(state, ec);\n") if $raisesException;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($svgPropertyType and !$function->isStatic) {
</span><span class="lines">@@ -3810,7 +3810,7 @@
</span><span class="cx"> my $bindingName = $interfaceName . "." . $function->signature->name;
</span><span class="cx"> push(@implContent, $indent . "JSValue result;\n");
</span><span class="cx"> push(@implContent, "#if ENABLE(WEB_REPLAY)\n");
</span><del>- push(@implContent, $indent . "InputCursor& cursor = exec->lexicalGlobalObject()->inputCursor();\n");
</del><ins>+ push(@implContent, $indent . "InputCursor& cursor = state->lexicalGlobalObject()->inputCursor();\n");
</ins><span class="cx"> push(@implContent, $indent . "static NeverDestroyed<const AtomicString> bindingName(\"$bindingName\", AtomicString::ConstructFromLiteral);\n");
</span><span class="cx"> push(@implContent, $indent . "if (cursor.isCapturing()) {\n");
</span><span class="cx"> push(@implContent, $indent . " $nativeType memoizedResult = $functionString;\n");
</span><span class="lines">@@ -3834,10 +3834,10 @@
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, $indent . "JSValue result = " . NativeToJSValue($function->signature, 1, $interfaceName, $functionString, $thisObject) . ";\n");
</span><span class="cx"> }
</span><del>- push(@implContent, "\n" . $indent . "setDOMException(exec, ec);\n") if $raisesException;
</del><ins>+ push(@implContent, "\n" . $indent . "setDOMException(state, ec);\n") if $raisesException;
</ins><span class="cx">
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($function->signature->extendedAttributes->{"CallWith"}, "ScriptState")) {
</span><del>- push(@implContent, $indent . "if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@implContent, $indent . "if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@implContent, $indent . " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3978,61 +3978,61 @@
</span><span class="cx">
</span><span class="cx"> my $type = $signature->type;
</span><span class="cx">
</span><del>- return "$value.toBoolean(exec)" if $type eq "boolean";
- return "$value.toNumber(exec)" if $type eq "double" or $type eq "unrestricted double" ;
- return "$value.toFloat(exec)" if $type eq "float" or $type eq "unrestricted float" ;
</del><ins>+ return "$value.toBoolean(state)" if $type eq "boolean";
+ return "$value.toNumber(state)" if $type eq "double" or $type eq "unrestricted double" ;
+ return "$value.toFloat(state)" if $type eq "float" or $type eq "unrestricted float" ;
</ins><span class="cx">
</span><span class="cx"> my $intConversion = $signature->extendedAttributes->{"EnforceRange"} ? "EnforceRange" : "NormalConversion";
</span><del>- return "toInt8(exec, $value, $intConversion)" if $type eq "byte";
- return "toUInt8(exec, $value, $intConversion)" if $type eq "octet";
- return "toInt16(exec, $value, $intConversion)" if $type eq "short";
- return "toUInt16(exec, $value, $intConversion)" if $type eq "unsigned short";
- return "toInt32(exec, $value, $intConversion)" if $type eq "long";
- return "toUInt32(exec, $value, $intConversion)" if $type eq "unsigned long";
- return "toInt64(exec, $value, $intConversion)" if $type eq "long long";
- return "toUInt64(exec, $value, $intConversion)" if $type eq "unsigned long long";
</del><ins>+ return "toInt8(state, $value, $intConversion)" if $type eq "byte";
+ return "toUInt8(state, $value, $intConversion)" if $type eq "octet";
+ return "toInt16(state, $value, $intConversion)" if $type eq "short";
+ return "toUInt16(state, $value, $intConversion)" if $type eq "unsigned short";
+ return "toInt32(state, $value, $intConversion)" if $type eq "long";
+ return "toUInt32(state, $value, $intConversion)" if $type eq "unsigned long";
+ return "toInt64(state, $value, $intConversion)" if $type eq "long long";
+ return "toUInt64(state, $value, $intConversion)" if $type eq "unsigned long long";
</ins><span class="cx">
</span><del>- return "valueToDate(exec, $value)" if $type eq "Date";
</del><ins>+ return "valueToDate(state, $value)" if $type eq "Date";
</ins><span class="cx">
</span><span class="cx"> if ($type eq "DOMString") {
</span><span class="cx"> # FIXME: This implements [TreatNullAs=NullString] and [TreatUndefinedAs=NullString],
</span><span class="cx"> # but the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString].
</span><span class="cx"> if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") and ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString")) {
</span><del>- return "valueToStringWithUndefinedOrNullCheck(exec, $value)"
</del><ins>+ return "valueToStringWithUndefinedOrNullCheck(state, $value)"
</ins><span class="cx"> }
</span><span class="cx"> if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") or $signature->extendedAttributes->{"Reflect"}) {
</span><del>- return "valueToStringWithNullCheck(exec, $value)"
</del><ins>+ return "valueToStringWithNullCheck(state, $value)"
</ins><span class="cx"> }
</span><span class="cx"> if ($signature->extendedAttributes->{"AtomicString"}) {
</span><del>- return "$value.toString(exec)->toAtomicString(exec)";
</del><ins>+ return "$value.toString(state)->toAtomicString(state)";
</ins><span class="cx"> }
</span><span class="cx"> # FIXME: Add the case for 'if ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString"))'.
</span><del>- return "$value.toString(exec)->value(exec)";
</del><ins>+ return "$value.toString(state)->value(state)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "any") {
</span><span class="cx"> AddToImplIncludes("<bindings/ScriptValue.h>");
</span><del>- return "{ exec->vm(), $value }";
</del><ins>+ return "{ state->vm(), $value }";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "NodeFilter") {
</span><span class="cx"> AddToImplIncludes("JS$type.h", $conditional);
</span><del>- return "JS${type}::toWrapped(exec->vm(), $value)";
</del><ins>+ return "JS${type}::toWrapped(state->vm(), $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "SerializedScriptValue") {
</span><span class="cx"> AddToImplIncludes("SerializedScriptValue.h", $conditional);
</span><del>- return "SerializedScriptValue::create(exec, $value, 0, 0)";
</del><ins>+ return "SerializedScriptValue::create(state, $value, 0, 0)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "Dictionary") {
</span><span class="cx"> AddToImplIncludes("Dictionary.h", $conditional);
</span><del>- return "{ exec, $value }";
</del><ins>+ return "{ state, $value }";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "DOMStringList" ) {
</span><span class="cx"> AddToImplIncludes("JSDOMStringList.h", $conditional);
</span><del>- return "toDOMStringList(exec, $value)";
</del><ins>+ return "toDOMStringList(state, $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsTypedArrayType($type)) {
</span><span class="lines">@@ -4049,13 +4049,13 @@
</span><span class="cx"> if ($arrayOrSequenceType) {
</span><span class="cx"> if ($codeGenerator->IsRefPtrType($arrayOrSequenceType)) {
</span><span class="cx"> AddToImplIncludes("JS${arrayOrSequenceType}.h");
</span><del>- return "(toRefPtrNativeArray<${arrayOrSequenceType}, JS${arrayOrSequenceType}>(exec, $value, &JS${arrayOrSequenceType}::toWrapped))";
</del><ins>+ return "(toRefPtrNativeArray<${arrayOrSequenceType}, JS${arrayOrSequenceType}>(state, $value, &JS${arrayOrSequenceType}::toWrapped))";
</ins><span class="cx"> }
</span><del>- return "toNativeArray<" . GetNativeVectorInnerType($arrayOrSequenceType) . ">(exec, $value)";
</del><ins>+ return "toNativeArray<" . GetNativeVectorInnerType($arrayOrSequenceType) . ">(state, $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsEnumType($type)) {
</span><del>- return "$value.toString(exec)->value(exec)";
</del><ins>+ return "$value.toString(state)->value(state)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> # Default, assume autogenerated type conversion routines
</span><span class="lines">@@ -4080,12 +4080,12 @@
</span><span class="cx"> if ($type eq "Date") {
</span><span class="cx"> my $conv = $signature->extendedAttributes->{"TreatReturnedNaNDateAs"};
</span><span class="cx"> if (defined $conv) {
</span><del>- return "jsDateOrNull(exec, $value)" if $conv eq "Null";
- return "jsDateOrNaN(exec, $value)" if $conv eq "NaN";
</del><ins>+ return "jsDateOrNull(state, $value)" if $conv eq "Null";
+ return "jsDateOrNaN(state, $value)" if $conv eq "NaN";
</ins><span class="cx">
</span><span class="cx"> die "Unknown value for TreatReturnedNaNDateAs extended attribute";
</span><span class="cx"> }
</span><del>- return "jsDateOrNull(exec, $value)";
</del><ins>+ return "jsDateOrNull(state, $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($signature->extendedAttributes->{"Reflect"} and ($type eq "unsigned long" or $type eq "unsigned short")) {
</span><span class="lines">@@ -4099,20 +4099,20 @@
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsEnumType($type)) {
</span><span class="cx"> AddToImplIncludes("<runtime/JSString.h>", $conditional);
</span><del>- return "jsStringWithCache(exec, $value)";
</del><ins>+ return "jsStringWithCache(state, $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsStringType($type)) {
</span><span class="cx"> AddToImplIncludes("URL.h", $conditional);
</span><span class="cx"> my $conv = $signature->extendedAttributes->{"TreatReturnedNullStringAs"};
</span><span class="cx"> if (defined $conv) {
</span><del>- return "jsStringOrNull(exec, $value)" if $conv eq "Null";
- return "jsStringOrUndefined(exec, $value)" if $conv eq "Undefined";
</del><ins>+ return "jsStringOrNull(state, $value)" if $conv eq "Null";
+ return "jsStringOrUndefined(state, $value)" if $conv eq "Undefined";
</ins><span class="cx">
</span><span class="cx"> die "Unknown value for TreatReturnedNullStringAs extended attribute";
</span><span class="cx"> }
</span><span class="cx"> AddToImplIncludes("<runtime/JSString.h>", $conditional);
</span><del>- return "jsStringWithCache(exec, $value)";
</del><ins>+ return "jsStringWithCache(state, $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> my $globalObject;
</span><span class="lines">@@ -4143,7 +4143,7 @@
</span><span class="cx"> }
</span><span class="cx"> AddToImplIncludes("<runtime/JSArray.h>", $conditional);
</span><span class="cx">
</span><del>- return "jsArray(exec, $thisValue->globalObject(), $value)";
</del><ins>+ return "jsArray(state, $thisValue->globalObject(), $value)";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($type eq "any") {
</span><span class="lines">@@ -4154,7 +4154,7 @@
</span><span class="cx"> }
</span><span class="cx"> } elsif ($type eq "SerializedScriptValue" or $type eq "any") {
</span><span class="cx"> AddToImplIncludes("SerializedScriptValue.h", $conditional);
</span><del>- return "$value ? $value->deserialize(exec, castedThis->globalObject(), 0) : jsNull()";
</del><ins>+ return "$value ? $value->deserialize(state, castedThis->globalObject(), 0) : jsNull()";
</ins><span class="cx"> } elsif ($codeGenerator->IsTypedArrayType($type)) {
</span><span class="cx"> # Do nothing - all headers are already included.
</span><span class="cx"> } else {
</span><span class="lines">@@ -4166,7 +4166,7 @@
</span><span class="cx"> return $value if $codeGenerator->IsSVGAnimatedType($type);
</span><span class="cx">
</span><span class="cx"> if ($signature->extendedAttributes->{"NewObject"}) {
</span><del>- return "toJSNewlyCreated(exec, $globalObject, WTF::getPtr($value))";
</del><ins>+ return "toJSNewlyCreated(state, $globalObject, WTF::getPtr($value))";
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->IsSVGAnimatedType($interfaceName) or $interfaceName eq "SVGViewSpec") {
</span><span class="lines">@@ -4198,9 +4198,9 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> if ($globalObject) {
</span><del>- return "toJS(exec, $globalObject, WTF::getPtr($value))";
</del><ins>+ return "toJS(state, $globalObject, WTF::getPtr($value))";
</ins><span class="cx"> } else {
</span><del>- return "toJS(exec, jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), WTF::getPtr($value))";
</del><ins>+ return "toJS(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), WTF::getPtr($value))";
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -4644,9 +4644,9 @@
</span><span class="cx"> my $lengthOfLongestOverloadedConstructorParameterList = LengthOfLongestFunctionParameterList($interface->constructors);
</span><span class="cx">
</span><span class="cx"> push(@$outputArray, <<END);
</span><del>-EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL ${functionName}(ExecState* state)
</ins><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>($lengthOfLongestOverloadedConstructorParameterList, exec->argumentCount());
</del><ins>+ size_t argsCount = std::min<size_t>($lengthOfLongestOverloadedConstructorParameterList, state->argumentCount());
</ins><span class="cx"> END
</span><span class="cx">
</span><span class="cx"> my %fetchedArguments = ();
</span><span class="lines">@@ -4659,20 +4659,20 @@
</span><span class="cx">
</span><span class="cx"> foreach my $parameterIndex (@neededArguments) {
</span><span class="cx"> next if exists $fetchedArguments{$parameterIndex};
</span><del>- push(@$outputArray, " JSValue arg$parameterIndex(exec->argument($parameterIndex));\n");
</del><ins>+ push(@$outputArray, " JSValue arg$parameterIndex(state->argument($parameterIndex));\n");
</ins><span class="cx"> $fetchedArguments{$parameterIndex} = 1;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> push(@$outputArray, " if ($parametersCheck)\n");
</span><del>- push(@$outputArray, " return ${functionName}$overload->{overloadedIndex}(exec);\n");
</del><ins>+ push(@$outputArray, " return ${functionName}$overload->{overloadedIndex}(state);\n");
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($leastNumMandatoryParams >= 1) {
</span><span class="cx"> push(@$outputArray, " if (argsCount < $leastNumMandatoryParams)\n");
</span><del>- push(@$outputArray, " return throwVMError(exec, createNotEnoughArgumentsError(exec));\n");
</del><ins>+ push(@$outputArray, " return throwVMError(state, createNotEnoughArgumentsError(state));\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@$outputArray, <<END);
</span><del>- return throwVMTypeError(exec);
</del><ins>+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> END
</span><span class="lines">@@ -4697,30 +4697,30 @@
</span><span class="cx"> $implIncludes{"<runtime/Error.h>"} = 1;
</span><span class="cx">
</span><span class="cx"> push(@$outputArray, <<END);
</span><del>-EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* jsConstructor = jsCast<${constructorClassName}*>(exec->callee());
</del><ins>+ auto* jsConstructor = jsCast<${constructorClassName}*>(state->callee());
</ins><span class="cx">
</span><del>- ScriptExecutionContext* executionContext = jsConstructor->scriptExecutionContext();
- if (!executionContext)
- return throwVMError(exec, createReferenceError(exec, "Constructor associated execution context is unavailable"));
</del><ins>+ ScriptExecutionContext* stateutionContext = jsConstructor->scriptExecutionContext();
+ if (!stateutionContext)
+ return throwVMError(state, createReferenceError(state, "Constructor associated stateution context is unavailable"));
</ins><span class="cx">
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx">
</span><del>- AtomicString eventType = exec->argument(0).toString(exec)->toAtomicString(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ AtomicString eventType = state->argument(0).toString(state)->toAtomicString(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> ${interfaceName}Init eventInit;
</span><span class="cx">
</span><del>- JSValue initializerValue = exec->argument(1);
</del><ins>+ JSValue initializerValue = state->argument(1);
</ins><span class="cx"> if (!initializerValue.isUndefinedOrNull()) {
</span><span class="cx"> // Given the above test, this will always yield an object.
</span><del>- JSObject* initializerObject = initializerValue.toObject(exec);
</del><ins>+ JSObject* initializerObject = initializerValue.toObject(state);
</ins><span class="cx">
</span><span class="cx"> // Create the dictionary wrapper from the initializer object.
</span><del>- JSDictionary dictionary(exec, initializerObject);
</del><ins>+ JSDictionary dictionary(state, initializerObject);
</ins><span class="cx">
</span><span class="cx"> // Attempt to fill in the EventInit.
</span><span class="cx"> if (!fill${interfaceName}Init(eventInit, dictionary))
</span><span class="lines">@@ -4728,7 +4728,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> RefPtr<${interfaceName}> event = ${interfaceName}::create(eventType, eventInit);
</span><del>- return JSValue::encode(toJS(exec, jsConstructor->globalObject(), event.get()));
</del><ins>+ return JSValue::encode(toJS(state, jsConstructor->globalObject(), event.get()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool fill${interfaceName}Init(${interfaceName}Init& eventInit, JSDictionary& dictionary)
</span><span class="lines">@@ -4767,9 +4767,9 @@
</span><span class="cx"> $overloadedIndexString .= $function->{overloadedIndex};
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@$outputArray, "EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}${overloadedIndexString}(ExecState* exec)\n");
</del><ins>+ push(@$outputArray, "EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}${overloadedIndexString}(ExecState* state)\n");
</ins><span class="cx"> push(@$outputArray, "{\n");
</span><del>- push(@$outputArray, " auto* castedThis = jsCast<${constructorClassName}*>(exec->callee());\n");
</del><ins>+ push(@$outputArray, " auto* castedThis = jsCast<${constructorClassName}*>(state->callee());\n");
</ins><span class="cx">
</span><span class="cx"> my @constructorArgList;
</span><span class="cx">
</span><span class="lines">@@ -4788,20 +4788,20 @@
</span><span class="cx"> my ($dummy, $paramIndex) = GenerateParametersCheck($outputArray, $function, $interface, $numParameters, $interfaceName, "constructorCallback", undef, undef, undef);
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "ScriptState")) {
</span><del>- push(@constructorArgList, "*exec");
</del><ins>+ push(@constructorArgList, "*state");
</ins><span class="cx"> }
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "ScriptExecutionContext")) {
</span><span class="cx"> push(@constructorArgList, "*context");
</span><span class="cx"> push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
</span><span class="cx"> push(@$outputArray, " if (!context)\n");
</span><del>- push(@$outputArray, " return throwConstructorDocumentUnavailableError(*exec, \"${interfaceName}\");\n");
</del><ins>+ push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
</ins><span class="cx"> }
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "Document")) {
</span><span class="cx"> $implIncludes{"Document.h"} = 1;
</span><span class="cx"> push(@constructorArgList, "document");
</span><span class="cx"> push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
</span><span class="cx"> push(@$outputArray, " if (!context)\n");
</span><del>- push(@$outputArray, " return throwConstructorDocumentUnavailableError(*exec, \"${interfaceName}\");\n");
</del><ins>+ push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
</ins><span class="cx"> push(@$outputArray, " auto& document = downcast<Document>(*context);\n");
</span><span class="cx"> }
</span><span class="cx"> if ($generatingNamedConstructor) {
</span><span class="lines">@@ -4827,17 +4827,17 @@
</span><span class="cx">
</span><span class="cx"> if ($interface->extendedAttributes->{"ConstructorRaisesException"}) {
</span><span class="cx"> push(@$outputArray, " if (ec) {\n");
</span><del>- push(@$outputArray, " setDOMException(exec, ec);\n");
</del><ins>+ push(@$outputArray, " setDOMException(state, ec);\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(JSValue());\n");
</span><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "ScriptState")) {
</span><del>- push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n");
</del><ins>+ push(@$outputArray, " if (UNLIKELY(state->hadException()))\n");
</ins><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@$outputArray, " return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));\n");
</del><ins>+ push(@$outputArray, " return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));\n");
</ins><span class="cx"> push(@$outputArray, "}\n\n");
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestActiveDOMObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -166,22 +166,22 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestActiveDOMObject::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestActiveDOMObject::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestActiveDOMObject*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestActiveDOMObject, Base>(exec, JSTestActiveDOMObjectTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestActiveDOMObject, Base>(state, JSTestActiveDOMObjectTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestActiveDOMObjectExcitingAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestActiveDOMObjectExcitingAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestActiveDOMObject*>(slotBase);
</span><del>- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))
</del><ins>+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.excitingAttr());
</span><span class="lines">@@ -189,14 +189,14 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestActiveDOMObjectConstructor(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestActiveDOMObjectConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestActiveDOMObject* domObject = jsDynamicCast<JSTestActiveDOMObject*>(JSValue::decode(thisValue));
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, domObject->impl()))
</del><ins>+ return throwVMTypeError(state);
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->impl()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- return JSValue::encode(JSTestActiveDOMObject::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return JSValue::encode(JSTestActiveDOMObject::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestActiveDOMObject::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -204,37 +204,37 @@
</span><span class="cx"> return getDOMConstructor<JSTestActiveDOMObjectConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionExcitingFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionExcitingFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestActiveDOMObject* castedThis = jsDynamicCast<JSTestActiveDOMObject*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestActiveDOMObject", "excitingFunction");
</del><ins>+ return throwThisTypeError(*state, "TestActiveDOMObject", "excitingFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestActiveDOMObject::info());
</span><del>- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))
</del><ins>+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Node* nextChild = JSNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Node* nextChild = JSNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.excitingFunction(nextChild);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionPostMessage(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionPostMessage(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestActiveDOMObject* castedThis = jsDynamicCast<JSTestActiveDOMObject*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestActiveDOMObject", "postMessage");
</del><ins>+ return throwThisTypeError(*state, "TestActiveDOMObject", "postMessage");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestActiveDOMObject::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String message = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String message = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.postMessage(message);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestActiveDOMObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestActiveDOMObject*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestActiveDOMObject& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestActiveDOMObject& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestActiveDOMObject*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCallbackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -126,13 +126,13 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackWithNoParam"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackWithNoParam"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -145,14 +145,14 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(arrayParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(arrayParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackWithArrayParam"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackWithArrayParam"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -165,15 +165,15 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(srzParam ? srzParam->deserialize(exec, castedThis->globalObject(), 0) : jsNull());
- args.append(jsStringWithCache(exec, strArg));
</del><ins>+ args.append(srzParam ? srzParam->deserialize(state, castedThis->globalObject(), 0) : jsNull());
+ args.append(jsStringWithCache(state, strArg));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackWithSerializedScriptValueParam"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackWithSerializedScriptValueParam"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -186,14 +186,14 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(listParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(listParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackWithStringList"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackWithStringList"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -206,14 +206,14 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx"> args.append(jsBoolean(boolParam));
</span><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackWithBoolean"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackWithBoolean"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -226,15 +226,15 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx"> args.append(jsNumber(longParam));
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(testNodeParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(testNodeParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(exec, "callbackRequiresThisToPass"), returnedException);
</del><ins>+ m_data->invokeCallback(args, JSCallbackData::CallbackType::Object, Identifier::fromString(state, "callbackRequiresThisToPass"), returnedException);
</ins><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCallbackh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestCallback*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestCallback& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestCallback& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCallbackFunctioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -71,14 +71,14 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -91,15 +91,15 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(arrayParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(arrayParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -112,16 +112,16 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(srzParam ? srzParam->deserialize(exec, castedThis->globalObject(), 0) : jsNull());
- args.append(jsStringWithCache(exec, strArg));
</del><ins>+ args.append(srzParam ? srzParam->deserialize(state, castedThis->globalObject(), 0) : jsNull());
+ args.append(jsStringWithCache(state, strArg));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -134,15 +134,15 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(listParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(listParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -155,15 +155,15 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx"> args.append(jsBoolean(boolParam));
</span><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -176,16 +176,16 @@
</span><span class="cx">
</span><span class="cx"> JSLockHolder lock(m_data->globalObject()->vm());
</span><span class="cx">
</span><del>- ExecState* exec = m_data->globalObject()->globalExec();
</del><ins>+ ExecState* state = m_data->globalObject()->globalExec();
</ins><span class="cx"> MarkedArgumentBuffer args;
</span><span class="cx"> args.append(jsNumber(longParam));
</span><del>- args.append(toJS(exec, m_data->globalObject(), WTF::getPtr(testNodeParam)));
</del><ins>+ args.append(toJS(state, m_data->globalObject(), WTF::getPtr(testNodeParam)));
</ins><span class="cx">
</span><span class="cx"> NakedPtr<Exception> returnedException;
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> m_data->invokeCallback(args, JSCallbackData::CallbackType::Function, Identifier(), returnedException);
</span><span class="cx"> if (returnedException)
</span><del>- reportException(exec, returnedException);
</del><ins>+ reportException(state, returnedException);
</ins><span class="cx"> return !returnedException;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCallbackFunctionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestCallbackFunction*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestCallbackFunction& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestCallbackFunction& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomConstructorWithNoInterfaceObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -146,14 +146,14 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestCustomConstructorWithNoInterfaceObjectConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestCustomConstructorWithNoInterfaceObjectConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestCustomConstructorWithNoInterfaceObjectPrototype* domObject = jsDynamicCast<JSTestCustomConstructorWithNoInterfaceObjectPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- JSValue constructor = JSTestCustomConstructorWithNoInterfaceObjectConstructor::create(exec->vm(), JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure(exec->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ JSValue constructor = JSTestCustomConstructorWithNoInterfaceObjectConstructor::create(state->vm(), JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure(state->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));
</ins><span class="cx"> // Shadowing constructor property to ensure reusing the same constructor object
</span><del>- domObject->putDirect(exec->vm(), exec->propertyNames().constructor, constructor, DontEnum | ReadOnly);
</del><ins>+ domObject->putDirect(state->vm(), state->propertyNames().constructor, constructor, DontEnum | ReadOnly);
</ins><span class="cx"> return JSValue::encode(constructor);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomConstructorWithNoInterfaceObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestCustomConstructorWithNoInterfaceObject*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestCustomConstructorWithNoInterfaceObject& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestCustomConstructorWithNoInterfaceObject& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestCustomConstructorWithNoInterfaceObject*);
</span><span class="cx">
</span><span class="cx"> // Custom constructor
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -160,19 +160,19 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestCustomNamedGetter::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestCustomNamedGetter::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestCustomNamedGetter*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestCustomNamedGetter, Base>(exec, JSTestCustomNamedGetterTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestCustomNamedGetter, Base>(state, JSTestCustomNamedGetterTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> JSValue proto = thisObject->prototype();
</span><del>- if (proto.isObject() && jsCast<JSObject*>(proto)->hasProperty(exec, propertyName))
</del><ins>+ if (proto.isObject() && jsCast<JSObject*>(proto)->hasProperty(state, propertyName))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="lines">@@ -180,27 +180,27 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestCustomNamedGetter::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, unsigned index, PropertySlot& slot)
</del><ins>+bool JSTestCustomNamedGetter::getOwnPropertySlotByIndex(JSObject* object, ExecState* state, unsigned index, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestCustomNamedGetter*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- Identifier propertyName = Identifier::from(exec, index);
</del><ins>+ Identifier propertyName = Identifier::from(state, index);
</ins><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);
</del><ins>+ return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestCustomNamedGetter* domObject = jsDynamicCast<JSTestCustomNamedGetter*>(JSValue::decode(thisValue));
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestCustomNamedGetter::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestCustomNamedGetter::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestCustomNamedGetter::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -208,18 +208,18 @@
</span><span class="cx"> return getDOMConstructor<JSTestCustomNamedGetterConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestCustomNamedGetterPrototypeFunctionAnotherFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestCustomNamedGetterPrototypeFunctionAnotherFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestCustomNamedGetter* castedThis = jsDynamicCast<JSTestCustomNamedGetter*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestCustomNamedGetter", "anotherFunction");
</del><ins>+ return throwThisTypeError(*state, "TestCustomNamedGetter", "anotherFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestCustomNamedGetter::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String str = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String str = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.anotherFunction(str);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGetterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestCustomNamedGetter*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestCustomNamedGetter& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestCustomNamedGetter& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestCustomNamedGetter*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -88,30 +88,30 @@
</span><span class="cx"> static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
</span><span class="cx"> };
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestEventConstructorConstructor::constructJSTestEventConstructor(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestEventConstructorConstructor::constructJSTestEventConstructor(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* jsConstructor = jsCast<JSTestEventConstructorConstructor*>(exec->callee());
</del><ins>+ auto* jsConstructor = jsCast<JSTestEventConstructorConstructor*>(state->callee());
</ins><span class="cx">
</span><del>- ScriptExecutionContext* executionContext = jsConstructor->scriptExecutionContext();
- if (!executionContext)
- return throwVMError(exec, createReferenceError(exec, "Constructor associated execution context is unavailable"));
</del><ins>+ ScriptExecutionContext* stateutionContext = jsConstructor->scriptExecutionContext();
+ if (!stateutionContext)
+ return throwVMError(state, createReferenceError(state, "Constructor associated stateution context is unavailable"));
</ins><span class="cx">
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx">
</span><del>- AtomicString eventType = exec->argument(0).toString(exec)->toAtomicString(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ AtomicString eventType = state->argument(0).toString(state)->toAtomicString(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> TestEventConstructorInit eventInit;
</span><span class="cx">
</span><del>- JSValue initializerValue = exec->argument(1);
</del><ins>+ JSValue initializerValue = state->argument(1);
</ins><span class="cx"> if (!initializerValue.isUndefinedOrNull()) {
</span><span class="cx"> // Given the above test, this will always yield an object.
</span><del>- JSObject* initializerObject = initializerValue.toObject(exec);
</del><ins>+ JSObject* initializerObject = initializerValue.toObject(state);
</ins><span class="cx">
</span><span class="cx"> // Create the dictionary wrapper from the initializer object.
</span><del>- JSDictionary dictionary(exec, initializerObject);
</del><ins>+ JSDictionary dictionary(state, initializerObject);
</ins><span class="cx">
</span><span class="cx"> // Attempt to fill in the EventInit.
</span><span class="cx"> if (!fillTestEventConstructorInit(eventInit, dictionary))
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> RefPtr<TestEventConstructor> event = TestEventConstructor::create(eventType, eventInit);
</span><del>- return JSValue::encode(toJS(exec, jsConstructor->globalObject(), event.get()));
</del><ins>+ return JSValue::encode(toJS(state, jsConstructor->globalObject(), event.get()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool fillTestEventConstructorInit(TestEventConstructorInit& eventInit, JSDictionary& dictionary)
</span><span class="lines">@@ -197,46 +197,46 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestEventConstructorAttr1(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestEventConstructorAttr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestEventConstructor", "attr1");
- return throwGetterTypeError(*exec, "TestEventConstructor", "attr1");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr1");
+ return throwGetterTypeError(*state, "TestEventConstructor", "attr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.attr1());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.attr1());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestEventConstructorAttr2(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestEventConstructor", "attr2");
- return throwGetterTypeError(*exec, "TestEventConstructor", "attr2");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr2");
+ return throwGetterTypeError(*state, "TestEventConstructor", "attr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.attr2());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.attr2());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestEventConstructorConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestEventConstructorPrototype* domObject = jsDynamicCast<JSTestEventConstructorPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestEventConstructor::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestEventConstructor::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestEventConstructor*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestEventConstructor& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestEventConstructor& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestEventConstructor*);
</span><span class="cx">
</span><span class="cx"> bool fillTestEventConstructorInit(TestEventConstructorInit&, JSDictionary&);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -172,7 +172,7 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestEventTarget::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestEventTarget::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestEventTarget*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><span class="lines">@@ -180,18 +180,18 @@
</span><span class="cx"> if (optionalIndex && optionalIndex.value() < thisObject->impl().length()) {
</span><span class="cx"> unsigned index = optionalIndex.value();
</span><span class="cx"> unsigned attributes = DontDelete | ReadOnly;
</span><del>- slot.setValue(thisObject, attributes, toJS(exec, thisObject->globalObject(), thisObject->impl().item(index)));
</del><ins>+ slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->impl().item(index)));
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><del>- if (getStaticValueSlot<JSTestEventTarget, Base>(exec, JSTestEventTargetTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestEventTarget, Base>(state, JSTestEventTargetTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> JSValue proto = thisObject->prototype();
</span><del>- if (proto.isObject() && jsCast<JSObject*>(proto)->hasProperty(exec, propertyName))
</del><ins>+ if (proto.isObject() && jsCast<JSObject*>(proto)->hasProperty(state, propertyName))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="lines">@@ -199,41 +199,41 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestEventTarget::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, unsigned index, PropertySlot& slot)
</del><ins>+bool JSTestEventTarget::getOwnPropertySlotByIndex(JSObject* object, ExecState* state, unsigned index, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestEventTarget*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><span class="cx"> if (index < thisObject->impl().length()) {
</span><span class="cx"> unsigned attributes = DontDelete | ReadOnly;
</span><del>- slot.setValue(thisObject, attributes, toJS(exec, thisObject->globalObject(), thisObject->impl().item(index)));
</del><ins>+ slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->impl().item(index)));
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><del>- Identifier propertyName = Identifier::from(exec, index);
</del><ins>+ Identifier propertyName = Identifier::from(state, index);
</ins><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);
</del><ins>+ return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestEventTargetConstructor(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestEventTargetConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestEventTarget* domObject = jsDynamicCast<JSTestEventTarget*>(JSValue::decode(thisValue));
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestEventTarget::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestEventTarget::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void JSTestEventTarget::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)
</del><ins>+void JSTestEventTarget::getOwnPropertyNames(JSObject* object, ExecState* state, PropertyNameArray& propertyNames, EnumerationMode mode)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestEventTarget*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><span class="cx"> for (unsigned i = 0, count = thisObject->impl().length(); i < count; ++i)
</span><del>- propertyNames.add(Identifier::from(exec, i));
- Base::getOwnPropertyNames(thisObject, exec, propertyNames, mode);
</del><ins>+ propertyNames.add(Identifier::from(state, i));
+ Base::getOwnPropertyNames(thisObject, state, propertyNames, mode);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestEventTarget::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -241,70 +241,70 @@
</span><span class="cx"> return getDOMConstructor<JSTestEventTargetConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionItem(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionItem(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestEventTarget", "item");
</del><ins>+ return throwThisTypeError(*state, "TestEventTarget", "item");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- unsigned index = toUInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ unsigned index = toUInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.item(index)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.item(index)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionAddEventListener(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionAddEventListener(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestEventTarget", "addEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestEventTarget", "addEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue listener = exec->argument(1);
</del><ins>+ JSValue listener = state->argument(1);
</ins><span class="cx"> if (UNLIKELY(!listener.isObject()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.addEventListener(exec->argument(0).toString(exec)->toAtomicString(exec), createJSEventListenerForAdd(*exec, *asObject(listener), *castedThis), exec->argument(2).toBoolean(exec));
</del><ins>+ impl.addEventListener(state->argument(0).toString(state)->toAtomicString(state), createJSEventListenerForAdd(*state, *asObject(listener), *castedThis), state->argument(2).toBoolean(state));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionRemoveEventListener(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionRemoveEventListener(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestEventTarget", "removeEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestEventTarget", "removeEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue listener = exec->argument(1);
</del><ins>+ JSValue listener = state->argument(1);
</ins><span class="cx"> if (UNLIKELY(!listener.isObject()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.removeEventListener(exec->argument(0).toString(exec)->toAtomicString(exec), createJSEventListenerForRemove(*exec, *asObject(listener), *castedThis).ptr(), exec->argument(2).toBoolean(exec));
</del><ins>+ impl.removeEventListener(state->argument(0).toString(state)->toAtomicString(state), createJSEventListenerForRemove(*state, *asObject(listener), *castedThis).ptr(), state->argument(2).toBoolean(state));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionDispatchEvent(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionDispatchEvent(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestEventTarget", "dispatchEvent");
</del><ins>+ return throwThisTypeError(*state, "TestEventTarget", "dispatchEvent");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- Event* evt = JSEvent::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Event* evt = JSEvent::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsBoolean(impl.dispatchEvent(evt, ec));
</span><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventTargeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestEventTarget*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestEventTarget& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestEventTarget& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestEventTarget*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestExceptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -156,33 +156,33 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestException::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestException::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestException*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestException, Base>(exec, JSTestExceptionTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestException, Base>(state, JSTestExceptionTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestExceptionName(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestExceptionName(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestException*>(slotBase);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.name());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.name());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestExceptionConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestExceptionConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestExceptionPrototype* domObject = jsDynamicCast<JSTestExceptionPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestException::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestException::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestException::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestExceptionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestException*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestException& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestException& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestException*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -139,12 +139,12 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestGenerateIsReachableConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestGenerateIsReachableConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestGenerateIsReachablePrototype* domObject = jsDynamicCast<JSTestGenerateIsReachablePrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestGenerateIsReachable::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestGenerateIsReachable::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestGenerateIsReachable::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachableh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestGenerateIsReachable*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestGenerateIsReachable& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestGenerateIsReachable& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestGenerateIsReachable*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -265,27 +265,27 @@
</span><span class="cx"> COMPILE_ASSERT(2 == TestSupplemental::CONST_IMPL, TestInterfaceEnumCONST_IMPLIsWrongUseDoNotCheckConstants);
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::constructJSTestInterface(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::constructJSTestInterface(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestInterfaceConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ auto* castedThis = jsCast<JSTestInterfaceConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- String str1 = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str1 = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String str2 = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str2 = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> ScriptExecutionContext* context = castedThis->scriptExecutionContext();
</span><span class="cx"> if (!context)
</span><del>- return throwConstructorDocumentUnavailableError(*exec, "TestInterface");
</del><ins>+ return throwConstructorDocumentUnavailableError(*state, "TestInterface");
</ins><span class="cx"> RefPtr<TestInterface> object = TestInterface::create(*context, str1, str2, ec);
</span><span class="cx"> if (ec) {
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(JSValue());
</span><span class="cx"> }
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestInterfaceConstructor::s_info = { "TestInterfaceConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestInterfaceConstructor) };
</span><span class="lines">@@ -437,19 +437,19 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestInterface::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestInterface::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestInterface*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestInterface, Base>(exec, JSTestInterfaceTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestInterface, Base>(state, JSTestInterfaceTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceConstructorImplementsStaticReadOnlyAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceConstructorImplementsStaticReadOnlyAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSValue result = jsNumber(TestInterface::implementsStaticReadOnlyAttr());
</span><span class="lines">@@ -459,90 +459,90 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceConstructorImplementsStaticAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceConstructorImplementsStaticAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- JSValue result = jsStringWithCache(exec, TestInterface::implementsStaticAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, TestInterface::implementsStaticAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceImplementsStr1(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceImplementsStr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "implementsStr1");
- return throwGetterTypeError(*exec, "TestInterface", "implementsStr1");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "implementsStr1");
+ return throwGetterTypeError(*state, "TestInterface", "implementsStr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.implementsStr1());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.implementsStr1());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceImplementsStr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceImplementsStr2(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "implementsStr2");
- return throwGetterTypeError(*exec, "TestInterface", "implementsStr2");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "implementsStr2");
+ return throwGetterTypeError(*state, "TestInterface", "implementsStr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.implementsStr2());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.implementsStr2());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceImplementsStr3(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceImplementsStr3(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestInterface*>(slotBase);
</span><del>- return JSValue::encode(castedThis->implementsStr3(exec));
</del><ins>+ return JSValue::encode(castedThis->implementsStr3(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue jsTestInterfaceImplementsNode(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceImplementsNode(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "implementsNode");
- return throwGetterTypeError(*exec, "TestInterface", "implementsNode");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "implementsNode");
+ return throwGetterTypeError(*state, "TestInterface", "implementsNode");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.implementsNode()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.implementsNode()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceConstructorSupplementalStaticReadOnlyAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceConstructorSupplementalStaticReadOnlyAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSValue result = jsNumber(TestSupplemental::supplementalStaticReadOnlyAttr());
</span><span class="lines">@@ -552,121 +552,121 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceConstructorSupplementalStaticAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceConstructorSupplementalStaticAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- JSValue result = jsStringWithCache(exec, TestSupplemental::supplementalStaticAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, TestSupplemental::supplementalStaticAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceSupplementalStr1(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceSupplementalStr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "supplementalStr1");
- return throwGetterTypeError(*exec, "TestInterface", "supplementalStr1");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "supplementalStr1");
+ return throwGetterTypeError(*state, "TestInterface", "supplementalStr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, TestSupplemental::supplementalStr1(&impl));
</del><ins>+ JSValue result = jsStringWithCache(state, TestSupplemental::supplementalStr1(&impl));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceSupplementalStr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceSupplementalStr2(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "supplementalStr2");
- return throwGetterTypeError(*exec, "TestInterface", "supplementalStr2");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "supplementalStr2");
+ return throwGetterTypeError(*state, "TestInterface", "supplementalStr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, TestSupplemental::supplementalStr2(&impl));
</del><ins>+ JSValue result = jsStringWithCache(state, TestSupplemental::supplementalStr2(&impl));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceSupplementalStr3(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceSupplementalStr3(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestInterface*>(slotBase);
</span><del>- return JSValue::encode(castedThis->supplementalStr3(exec));
</del><ins>+ return JSValue::encode(castedThis->supplementalStr3(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue jsTestInterfaceSupplementalNode(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceSupplementalNode(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestInterface", "supplementalNode");
- return throwGetterTypeError(*exec, "TestInterface", "supplementalNode");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestInterface", "supplementalNode");
+ return throwGetterTypeError(*state, "TestInterface", "supplementalNode");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalNode(&impl)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalNode(&impl)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-EncodedJSValue jsTestInterfaceConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestInterfaceConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestInterfacePrototype* domObject = jsDynamicCast<JSTestInterfacePrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestInterface::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestInterface::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void JSTestInterface::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
</del><ins>+void JSTestInterface::put(JSCell* cell, ExecState* state, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestInterface*>(cell);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (thisObject->putDelegate(exec, propertyName, value, slot))
</del><ins>+ if (thisObject->putDelegate(state, propertyName, value, slot))
</ins><span class="cx"> return;
</span><del>- Base::put(thisObject, exec, propertyName, value, slot);
</del><ins>+ Base::put(thisObject, state, propertyName, value, slot);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void JSTestInterface::putByIndex(JSCell* cell, ExecState* exec, unsigned index, JSValue value, bool shouldThrow)
</del><ins>+void JSTestInterface::putByIndex(JSCell* cell, ExecState* state, unsigned index, JSValue value, bool shouldThrow)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestInterface*>(cell);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- Identifier propertyName = Identifier::from(exec, index);
</del><ins>+ Identifier propertyName = Identifier::from(state, index);
</ins><span class="cx"> PutPropertySlot slot(thisObject, shouldThrow);
</span><del>- if (thisObject->putDelegate(exec, propertyName, value, slot))
</del><ins>+ if (thisObject->putDelegate(state, propertyName, value, slot))
</ins><span class="cx"> return;
</span><del>- Base::putByIndex(cell, exec, index, value, shouldThrow);
</del><ins>+ Base::putByIndex(cell, state, index, value, shouldThrow);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-void setJSTestInterfaceConstructorImplementsStaticAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceConstructorImplementsStaticAttr(ExecState* state, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> TestInterface::setImplementsStaticAttr(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -674,21 +674,21 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-void setJSTestInterfaceImplementsStr2(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceImplementsStr2(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestInterface", "implementsStr2");
</del><ins>+ reportDeprecatedSetterError(*state, "TestInterface", "implementsStr2");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestInterface", "implementsStr2");
</del><ins>+ throwSetterTypeError(*state, "TestInterface", "implementsStr2");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setImplementsStr2(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -696,35 +696,35 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-void setJSTestInterfaceImplementsStr3(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceImplementsStr3(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestInterface*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
- castedThis->setImplementsStr3(exec, value);
</del><ins>+ UNUSED_PARAM(state);
+ castedThis->setImplementsStr3(state, value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-void setJSTestInterfaceImplementsNode(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceImplementsNode(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestInterface", "implementsNode");
</del><ins>+ reportDeprecatedSetterError(*state, "TestInterface", "implementsNode");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestInterface", "implementsNode");
</del><ins>+ throwSetterTypeError(*state, "TestInterface", "implementsNode");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> Node* nativeValue = JSNode::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setImplementsNode(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -732,12 +732,12 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-void setJSTestInterfaceConstructorSupplementalStaticAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceConstructorSupplementalStaticAttr(ExecState* state, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> TestSupplemental::setSupplementalStaticAttr(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -745,21 +745,21 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-void setJSTestInterfaceSupplementalStr2(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceSupplementalStr2(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestInterface", "supplementalStr2");
</del><ins>+ reportDeprecatedSetterError(*state, "TestInterface", "supplementalStr2");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestInterface", "supplementalStr2");
</del><ins>+ throwSetterTypeError(*state, "TestInterface", "supplementalStr2");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> TestSupplemental::setSupplementalStr2(&impl, nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -767,35 +767,35 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-void setJSTestInterfaceSupplementalStr3(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceSupplementalStr3(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestInterface*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
- castedThis->setSupplementalStr3(exec, value);
</del><ins>+ UNUSED_PARAM(state);
+ castedThis->setSupplementalStr3(state, value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-void setJSTestInterfaceSupplementalNode(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestInterfaceSupplementalNode(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestInterface", "supplementalNode");
</del><ins>+ reportDeprecatedSetterError(*state, "TestInterface", "supplementalNode");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestInterface", "supplementalNode");
</del><ins>+ throwSetterTypeError(*state, "TestInterface", "supplementalNode");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> Node* nativeValue = JSNode::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> TestSupplemental::setSupplementalNode(&impl, nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -808,12 +808,12 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "implementsMethod1");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "implementsMethod1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> impl.implementsMethod1();
</span><span class="lines">@@ -823,49 +823,49 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "implementsMethod2");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "implementsMethod2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod3(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod3(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "implementsMethod3");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "implementsMethod3");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><del>- return JSValue::encode(castedThis->implementsMethod3(exec));
</del><ins>+ return JSValue::encode(castedThis->implementsMethod3(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfaceConstructorFunctionImplementsMethod4(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfaceConstructorFunctionImplementsMethod4(ExecState* state)
</ins><span class="cx"> {
</span><span class="cx"> TestInterface::implementsMethod4();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -874,12 +874,12 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "supplementalMethod1");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "supplementalMethod1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestSupplemental::supplementalMethod1(&impl);
</span><span class="lines">@@ -889,49 +889,49 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "supplementalMethod2");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "supplementalMethod2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalMethod2(&impl, scriptContext, strArg, objArg, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalMethod2(&impl, scriptContext, strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod3(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod3(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestInterface", "supplementalMethod3");
</del><ins>+ return throwThisTypeError(*state, "TestInterface", "supplementalMethod3");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
</span><del>- return JSValue::encode(castedThis->supplementalMethod3(exec));
</del><ins>+ return JSValue::encode(castedThis->supplementalMethod3(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition11) || ENABLE(Condition12)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestInterfaceConstructorFunctionSupplementalMethod4(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestInterfaceConstructorFunctionSupplementalMethod4(ExecState* state)
</ins><span class="cx"> {
</span><span class="cx"> TestSupplemental::supplementalMethod4();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestInterfaceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WEBCORE_EXPORT JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestInterface*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestInterface& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestInterface& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestInterface*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -147,12 +147,12 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestMediaQueryListListenerConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestMediaQueryListListenerConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestMediaQueryListListenerPrototype* domObject = jsDynamicCast<JSTestMediaQueryListListenerPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestMediaQueryListListener::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestMediaQueryListListener::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestMediaQueryListListener::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -160,19 +160,19 @@
</span><span class="cx"> return getDOMConstructor<JSTestMediaQueryListListenerConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestMediaQueryListListener* castedThis = jsDynamicCast<JSTestMediaQueryListListener*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestMediaQueryListListener", "method");
</del><ins>+ return throwThisTypeError(*state, "TestMediaQueryListListener", "method");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestMediaQueryListListener::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isFunction())
- return throwArgumentMustBeFunctionError(*exec, 0, "listener", "TestMediaQueryListListener", "method");
- RefPtr<MediaQueryListListener> listener = JSMediaQueryListListener::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isFunction())
+ return throwArgumentMustBeFunctionError(*state, 0, "listener", "TestMediaQueryListListener", "method");
+ RefPtr<MediaQueryListListener> listener = JSMediaQueryListListener::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.method(listener);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestMediaQueryListListener*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestMediaQueryListListener& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestMediaQueryListListener& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestMediaQueryListListener*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -123,27 +123,27 @@
</span><span class="cx"> putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestNamedConstructorNamedConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ auto* castedThis = jsCast<JSTestNamedConstructorNamedConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- String str1 = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str1 = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String str2 = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str2 = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String str3 = exec->argument(2).isUndefined() ? String() : exec->uncheckedArgument(2).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str3 = state->argument(2).isUndefined() ? String() : state->uncheckedArgument(2).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestNamedConstructor> object = TestNamedConstructor::createForJSConstructor(*castedThis->document(), str1, str2, str3, ec);
</span><span class="cx"> if (ec) {
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(JSValue());
</span><span class="cx"> }
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestNamedConstructorNamedConstructor::s_info = { "AudioConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNamedConstructorNamedConstructor) };
</span><span class="lines">@@ -212,12 +212,12 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNamedConstructorConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNamedConstructorConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestNamedConstructorPrototype* domObject = jsDynamicCast<JSTestNamedConstructorPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestNamedConstructor::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestNamedConstructor::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestNamedConstructor::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestNamedConstructor*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestNamedConstructor& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestNamedConstructor& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestNamedConstructor*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -88,11 +88,11 @@
</span><span class="cx"> static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
</span><span class="cx"> };
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestNodeConstructor::constructJSTestNode(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestNodeConstructor::constructJSTestNode(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestNodeConstructor*>(exec->callee());
</del><ins>+ auto* castedThis = jsCast<JSTestNodeConstructor*>(state->callee());
</ins><span class="cx"> RefPtr<TestNode> object = TestNode::create();
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestNodeConstructor::s_info = { "TestNodeConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNodeConstructor) };
</span><span class="lines">@@ -150,46 +150,46 @@
</span><span class="cx"> return getDOMPrototype<JSTestNode>(vm, globalObject);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNodeName(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNodeName(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNode* castedThis = jsDynamicCast<JSTestNode*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNodePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNode", "name");
- return throwGetterTypeError(*exec, "TestNode", "name");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNode", "name");
+ return throwGetterTypeError(*state, "TestNode", "name");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.name());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.name());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNodeConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNodeConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestNodePrototype* domObject = jsDynamicCast<JSTestNodePrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestNode::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestNode::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void setJSTestNodeName(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestNodeName(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestNode* castedThis = jsDynamicCast<JSTestNode*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNodePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestNode", "name");
</del><ins>+ reportDeprecatedSetterError(*state, "TestNode", "name");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestNode", "name");
</del><ins>+ throwSetterTypeError(*state, "TestNode", "name");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setName(nativeValue);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministiccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -168,19 +168,19 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicNondeterministicReadonlyAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicNondeterministicReadonlyAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNondeterministic", "nondeterministicReadonlyAttr");
- return throwGetterTypeError(*exec, "TestNondeterministic", "nondeterministicReadonlyAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNondeterministic", "nondeterministicReadonlyAttr");
+ return throwGetterTypeError(*state, "TestNondeterministic", "nondeterministicReadonlyAttr");
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
</del><ins>+ JSGlobalObject* globalObject = state->lexicalGlobalObject();
</ins><span class="cx"> InputCursor& cursor = globalObject->inputCursor();
</span><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicReadonlyAttr", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="lines">@@ -205,25 +205,25 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicNondeterministicWriteableAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicNondeterministicWriteableAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNondeterministic", "nondeterministicWriteableAttr");
- return throwGetterTypeError(*exec, "TestNondeterministic", "nondeterministicWriteableAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNondeterministic", "nondeterministicWriteableAttr");
+ return throwGetterTypeError(*state, "TestNondeterministic", "nondeterministicWriteableAttr");
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
</del><ins>+ JSGlobalObject* globalObject = state->lexicalGlobalObject();
</ins><span class="cx"> InputCursor& cursor = globalObject->inputCursor();
</span><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicWriteableAttr", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="cx"> String memoizedResult = castedThis->impl().nondeterministicWriteableAttr();
</span><span class="cx"> cursor.appendInput<MemoizedDOMResult<String>>(bindingName.get().string(), memoizedResult, 0);
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -231,36 +231,36 @@
</span><span class="cx"> String memoizedResult;
</span><span class="cx"> MemoizedDOMResultBase* input = cursor.fetchInput<MemoizedDOMResultBase>();
</span><span class="cx"> if (input && input->convertTo<String>(memoizedResult)) {
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.nondeterministicWriteableAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.nondeterministicWriteableAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicNondeterministicExceptionAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicNondeterministicExceptionAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNondeterministic", "nondeterministicExceptionAttr");
- return throwGetterTypeError(*exec, "TestNondeterministic", "nondeterministicExceptionAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNondeterministic", "nondeterministicExceptionAttr");
+ return throwGetterTypeError(*state, "TestNondeterministic", "nondeterministicExceptionAttr");
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
</del><ins>+ JSGlobalObject* globalObject = state->lexicalGlobalObject();
</ins><span class="cx"> InputCursor& cursor = globalObject->inputCursor();
</span><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicExceptionAttr", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="cx"> String memoizedResult = castedThis->impl().nondeterministicExceptionAttr();
</span><span class="cx"> cursor.appendInput<MemoizedDOMResult<String>>(bindingName.get().string(), memoizedResult, 0);
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -268,38 +268,38 @@
</span><span class="cx"> String memoizedResult;
</span><span class="cx"> MemoizedDOMResultBase* input = cursor.fetchInput<MemoizedDOMResultBase>();
</span><span class="cx"> if (input && input->convertTo<String>(memoizedResult)) {
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.nondeterministicExceptionAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.nondeterministicExceptionAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicNondeterministicGetterExceptionAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicNondeterministicGetterExceptionAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
- return throwGetterTypeError(*exec, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
+ return throwGetterTypeError(*state, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
</del><ins>+ JSGlobalObject* globalObject = state->lexicalGlobalObject();
</ins><span class="cx"> InputCursor& cursor = globalObject->inputCursor();
</span><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicGetterExceptionAttr", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="cx"> String memoizedResult = castedThis->impl().nondeterministicGetterExceptionAttr(ec);
</span><span class="cx"> cursor.appendInput<MemoizedDOMResult<String>>(bindingName.get().string(), memoizedResult, ec);
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
- setDOMException(exec, ec);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -307,38 +307,38 @@
</span><span class="cx"> String memoizedResult;
</span><span class="cx"> MemoizedDOMResultBase* input = cursor.fetchInput<MemoizedDOMResultBase>();
</span><span class="cx"> if (input && input->convertTo<String>(memoizedResult)) {
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
- setDOMException(exec, input->exceptionCode());
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
+ setDOMException(state, input->exceptionCode());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.nondeterministicGetterExceptionAttr(ec));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = jsStringWithCache(state, impl.nondeterministicGetterExceptionAttr(ec));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicNondeterministicSetterExceptionAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicNondeterministicSetterExceptionAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
- return throwGetterTypeError(*exec, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
+ return throwGetterTypeError(*state, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- JSGlobalObject* globalObject = exec->lexicalGlobalObject();
</del><ins>+ JSGlobalObject* globalObject = state->lexicalGlobalObject();
</ins><span class="cx"> InputCursor& cursor = globalObject->inputCursor();
</span><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicSetterExceptionAttr", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="cx"> String memoizedResult = castedThis->impl().nondeterministicSetterExceptionAttr();
</span><span class="cx"> cursor.appendInput<MemoizedDOMResult<String>>(bindingName.get().string(), memoizedResult, 0);
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -346,104 +346,104 @@
</span><span class="cx"> String memoizedResult;
</span><span class="cx"> MemoizedDOMResultBase* input = cursor.fetchInput<MemoizedDOMResultBase>();
</span><span class="cx"> if (input && input->convertTo<String>(memoizedResult)) {
</span><del>- JSValue result = jsStringWithCache(exec, memoizedResult);
</del><ins>+ JSValue result = jsStringWithCache(state, memoizedResult);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.nondeterministicSetterExceptionAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.nondeterministicSetterExceptionAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestNondeterministicConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestNondeterministicConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestNondeterministicPrototype* domObject = jsDynamicCast<JSTestNondeterministicPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestNondeterministic::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestNondeterministic::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void setJSTestNondeterministicNondeterministicWriteableAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestNondeterministicNondeterministicWriteableAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestNondeterministic", "nondeterministicWriteableAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestNondeterministic", "nondeterministicWriteableAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestNondeterministic", "nondeterministicWriteableAttr");
</del><ins>+ throwSetterTypeError(*state, "TestNondeterministic", "nondeterministicWriteableAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNondeterministicWriteableAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestNondeterministicNondeterministicExceptionAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestNondeterministicNondeterministicExceptionAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestNondeterministic", "nondeterministicExceptionAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestNondeterministic", "nondeterministicExceptionAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestNondeterministic", "nondeterministicExceptionAttr");
</del><ins>+ throwSetterTypeError(*state, "TestNondeterministic", "nondeterministicExceptionAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNondeterministicExceptionAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestNondeterministicNondeterministicGetterExceptionAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestNondeterministicNondeterministicGetterExceptionAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</del><ins>+ throwSetterTypeError(*state, "TestNondeterministic", "nondeterministicGetterExceptionAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNondeterministicGetterExceptionAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestNondeterministicNondeterministicSetterExceptionAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestNondeterministicNondeterministicSetterExceptionAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestNondeterministicPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</del><ins>+ throwSetterTypeError(*state, "TestNondeterministic", "nondeterministicSetterExceptionAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNondeterministicSetterExceptionAttr(nativeValue, ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><span class="lines">@@ -452,17 +452,17 @@
</span><span class="cx"> return getDOMConstructor<JSTestNondeterministicConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestNondeterministicPrototypeFunctionNondeterministicZeroArgFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestNondeterministicPrototypeFunctionNondeterministicZeroArgFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestNondeterministic* castedThis = jsDynamicCast<JSTestNondeterministic*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestNondeterministic", "nondeterministicZeroArgFunction");
</del><ins>+ return throwThisTypeError(*state, "TestNondeterministic", "nondeterministicZeroArgFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestNondeterministic::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result;
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><del>- InputCursor& cursor = exec->lexicalGlobalObject()->inputCursor();
</del><ins>+ InputCursor& cursor = state->lexicalGlobalObject()->inputCursor();
</ins><span class="cx"> static NeverDestroyed<const AtomicString> bindingName("TestNondeterministic.nondeterministicZeroArgFunction", AtomicString::ConstructFromLiteral);
</span><span class="cx"> if (cursor.isCapturing()) {
</span><span class="cx"> bool memoizedResult = impl.nondeterministicZeroArgFunction();
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministich"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestNondeterministic*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestNondeterministic& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestNondeterministic& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestNondeterministic*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -462,19 +462,19 @@
</span><span class="cx"> COMPILE_ASSERT(15 == TestObj::CONST_IMPL, TestObjEnumCONST_IMPLIsWrongUseDoNotCheckConstants);
</span><span class="cx"> COMPILE_ASSERT(0 == TestObj::readonly, TestObjEnumreadonlyIsWrongUseDoNotCheckConstants);
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestObjConstructor::constructJSTestObj(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestObjConstructor::constructJSTestObj(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestObjConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "testCallback", "TestObj", nullptr);
- RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
- if (!exec->argument(1).isFunction())
- return throwArgumentMustBeFunctionError(*exec, 1, "testCallbackFunction", "TestObj", nullptr);
- RefPtr<TestCallbackFunction> testCallbackFunction = JSTestCallbackFunction::create(asObject(exec->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ auto* castedThis = jsCast<JSTestObjConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObj", nullptr);
+ RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
+ if (!state->argument(1).isFunction())
+ return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObj", nullptr);
+ RefPtr<TestCallbackFunction> testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> RefPtr<TestObj> object = TestObj::create(testCallback, testCallbackFunction);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestObjConstructor::s_info = { "TestObjectConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestObjConstructor) };
</span><span class="lines">@@ -725,25 +725,25 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestObj::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestObj::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestObj*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestObj, Base>(exec, JSTestObjTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestObj, Base>(state, JSTestObjTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReadOnlyLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReadOnlyLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "readOnlyLongAttr");
- return throwGetterTypeError(*exec, "TestObj", "readOnlyLongAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "readOnlyLongAttr");
+ return throwGetterTypeError(*state, "TestObj", "readOnlyLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.readOnlyLongAttr());
</span><span class="lines">@@ -751,43 +751,43 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReadOnlyStringAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReadOnlyStringAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "readOnlyStringAttr");
- return throwGetterTypeError(*exec, "TestObj", "readOnlyStringAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "readOnlyStringAttr");
+ return throwGetterTypeError(*state, "TestObj", "readOnlyStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.readOnlyStringAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.readOnlyStringAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReadOnlyTestObjAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReadOnlyTestObjAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "readOnlyTestObjAttr");
- return throwGetterTypeError(*exec, "TestObj", "readOnlyTestObjAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "readOnlyTestObjAttr");
+ return throwGetterTypeError(*state, "TestObj", "readOnlyTestObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.readOnlyTestObjAttr()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.readOnlyTestObjAttr()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjConstructorStaticReadOnlyLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConstructorStaticReadOnlyLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSValue result = jsNumber(TestObj::staticReadOnlyLongAttr());
</span><span class="lines">@@ -795,29 +795,29 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjConstructorStaticStringAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConstructorStaticStringAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- JSValue result = jsStringWithCache(exec, TestObj::staticStringAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, TestObj::staticStringAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjConstructorTestSubObj(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConstructorTestSubObj(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><del>- return JSValue::encode(JSTestSubObj::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjTestSubObjEnabledBySettingConstructor(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjTestSubObjEnabledBySettingConstructor(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><span class="lines">@@ -826,37 +826,37 @@
</span><span class="cx"> Settings& settings = castedThis->impl().frame()->settings();
</span><span class="cx"> if (!settings.testSettingEnabled())
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- return JSValue::encode(JSTestSubObj::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjEnumAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjEnumAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "enumAttr");
- return throwGetterTypeError(*exec, "TestObj", "enumAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "enumAttr");
+ return throwGetterTypeError(*state, "TestObj", "enumAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.enumAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.enumAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjByteAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjByteAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "byteAttr");
- return throwGetterTypeError(*exec, "TestObj", "byteAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "byteAttr");
+ return throwGetterTypeError(*state, "TestObj", "byteAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.byteAttr());
</span><span class="lines">@@ -864,16 +864,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjOctetAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjOctetAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "octetAttr");
- return throwGetterTypeError(*exec, "TestObj", "octetAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "octetAttr");
+ return throwGetterTypeError(*state, "TestObj", "octetAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.octetAttr());
</span><span class="lines">@@ -881,16 +881,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjShortAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjShortAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "shortAttr");
- return throwGetterTypeError(*exec, "TestObj", "shortAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "shortAttr");
+ return throwGetterTypeError(*state, "TestObj", "shortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.shortAttr());
</span><span class="lines">@@ -898,16 +898,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjUnsignedShortAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjUnsignedShortAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "unsignedShortAttr");
- return throwGetterTypeError(*exec, "TestObj", "unsignedShortAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "unsignedShortAttr");
+ return throwGetterTypeError(*state, "TestObj", "unsignedShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.unsignedShortAttr());
</span><span class="lines">@@ -915,16 +915,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "longAttr");
- return throwGetterTypeError(*exec, "TestObj", "longAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "longAttr");
+ return throwGetterTypeError(*state, "TestObj", "longAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.longAttr());
</span><span class="lines">@@ -932,16 +932,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjLongLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjLongLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "longLongAttr");
- return throwGetterTypeError(*exec, "TestObj", "longLongAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "longLongAttr");
+ return throwGetterTypeError(*state, "TestObj", "longLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.longLongAttr());
</span><span class="lines">@@ -949,16 +949,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjUnsignedLongLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjUnsignedLongLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "unsignedLongLongAttr");
- return throwGetterTypeError(*exec, "TestObj", "unsignedLongLongAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "unsignedLongLongAttr");
+ return throwGetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.unsignedLongLongAttr());
</span><span class="lines">@@ -966,67 +966,67 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStringAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStringAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "stringAttr");
- return throwGetterTypeError(*exec, "TestObj", "stringAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "stringAttr");
+ return throwGetterTypeError(*state, "TestObj", "stringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.stringAttr());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.stringAttr());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjTestObjAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjTestObjAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "testObjAttr");
- return throwGetterTypeError(*exec, "TestObj", "testObjAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "testObjAttr");
+ return throwGetterTypeError(*state, "TestObj", "testObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.testObjAttr()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.testObjAttr()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjXMLObjAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjXMLObjAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "XMLObjAttr");
- return throwGetterTypeError(*exec, "TestObj", "XMLObjAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "XMLObjAttr");
+ return throwGetterTypeError(*state, "TestObj", "XMLObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.xmlObjAttr()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.xmlObjAttr()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjCreate(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjCreate(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "create");
- return throwGetterTypeError(*exec, "TestObj", "create");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "create");
+ return throwGetterTypeError(*state, "TestObj", "create");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsBoolean(impl.isCreate());
</span><span class="lines">@@ -1034,33 +1034,33 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedStringAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedStringAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedStringAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedStringAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.fastGetAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
</del><ins>+ JSValue result = jsStringWithCache(state, impl.fastGetAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedIntegralAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedIntegralAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedIntegralAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedIntegralAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedIntegralAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
</span><span class="lines">@@ -1068,16 +1068,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedUnsignedIntegralAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedUnsignedIntegralAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedUnsignedIntegralAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedUnsignedIntegralAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(std::max(0, impl.getIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr)));
</span><span class="lines">@@ -1085,16 +1085,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedBooleanAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedBooleanAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedBooleanAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedBooleanAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedBooleanAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsBoolean(impl.fastHasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
</span><span class="lines">@@ -1102,50 +1102,50 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedURLAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedURLAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedURLAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedURLAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedURLAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
</del><ins>+ JSValue result = jsStringWithCache(state, impl.getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedStringAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedStringAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedStringAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedStringAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.fastGetAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
</del><ins>+ JSValue result = jsStringWithCache(state, impl.fastGetAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedCustomIntegralAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedCustomIntegralAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedCustomIntegralAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedCustomIntegralAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedCustomIntegralAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
</span><span class="lines">@@ -1153,16 +1153,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedCustomBooleanAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedCustomBooleanAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedCustomBooleanAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedCustomBooleanAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedCustomBooleanAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsBoolean(impl.fastHasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
</span><span class="lines">@@ -1170,69 +1170,69 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReflectedCustomURLAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReflectedCustomURLAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "reflectedCustomURLAttr");
- return throwGetterTypeError(*exec, "TestObj", "reflectedCustomURLAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "reflectedCustomURLAttr");
+ return throwGetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
</del><ins>+ JSValue result = jsStringWithCache(state, impl.getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjTypedArrayAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjTypedArrayAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "typedArrayAttr");
- return throwGetterTypeError(*exec, "TestObj", "typedArrayAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "typedArrayAttr");
+ return throwGetterTypeError(*state, "TestObj", "typedArrayAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.typedArrayAttr()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.typedArrayAttr()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjAttrWithGetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjAttrWithGetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "attrWithGetterException");
- return throwGetterTypeError(*exec, "TestObj", "attrWithGetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "attrWithGetterException");
+ return throwGetterTypeError(*state, "TestObj", "attrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithGetterException(ec));
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjAttrWithSetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjAttrWithSetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "attrWithSetterException");
- return throwGetterTypeError(*exec, "TestObj", "attrWithSetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "attrWithSetterException");
+ return throwGetterTypeError(*state, "TestObj", "attrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithSetterException());
</span><span class="lines">@@ -1240,270 +1240,270 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStringAttrWithGetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStringAttrWithGetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "stringAttrWithGetterException");
- return throwGetterTypeError(*exec, "TestObj", "stringAttrWithGetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "stringAttrWithGetterException");
+ return throwGetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = jsStringWithCache(state, impl.stringAttrWithGetterException(ec));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStringAttrWithSetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStringAttrWithSetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "stringAttrWithSetterException");
- return throwGetterTypeError(*exec, "TestObj", "stringAttrWithSetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "stringAttrWithSetterException");
+ return throwGetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.stringAttrWithSetterException());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.stringAttrWithSetterException());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStrictTypeCheckingAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStrictTypeCheckingAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "strictTypeCheckingAttribute");
- return throwGetterTypeError(*exec, "TestObj", "strictTypeCheckingAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "strictTypeCheckingAttribute");
+ return throwGetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictTypeCheckingAttribute()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.strictTypeCheckingAttribute()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjCustomAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjCustomAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><del>- return JSValue::encode(castedThis->customAttr(exec));
</del><ins>+ return JSValue::encode(castedThis->customAttr(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjOnfoo(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjOnfoo(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "onfoo");
- return throwGetterTypeError(*exec, "TestObj", "onfoo");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "onfoo");
+ return throwGetterTypeError(*state, "TestObj", "onfoo");
</ins><span class="cx"> }
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> return JSValue::encode(eventHandlerAttribute(castedThis->impl(), eventNames().fooEvent));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptStateAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptStateAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptStateAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withScriptStateAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptStateAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withScriptStateAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsNumber(impl.withScriptStateAttribute(exec));
</del><ins>+ JSValue result = jsNumber(impl.withScriptStateAttribute(*state));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithCallWithAndSetterCallWithAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithCallWithAndSetterCallWithAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withCallWithAndSetterCallWithAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withCallWithAndSetterCallWithAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsNumber(impl.withCallWithAndSetterCallWithAttribute(exec));
</del><ins>+ JSValue result = jsNumber(impl.withCallWithAndSetterCallWithAttribute(*state));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptExecutionContextAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptExecutionContextAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptExecutionContextAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withScriptExecutionContextAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptExecutionContextAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
</ins><span class="cx"> }
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttribute(scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttribute(scriptContext)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptStateAttributeRaises(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptStateAttributeRaises(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptStateAttributeRaises");
- return throwGetterTypeError(*exec, "TestObj", "withScriptStateAttributeRaises");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptStateAttributeRaises");
+ return throwGetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateAttributeRaises(exec, ec)));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateAttributeRaises(*state, ec)));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptExecutionContextAttributeRaises(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptExecutionContextAttributeRaises(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptExecutionContextAttributeRaises");
- return throwGetterTypeError(*exec, "TestObj", "withScriptExecutionContextAttributeRaises");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
+ return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</ins><span class="cx"> }
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttribute(exec, scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttribute(*state, scriptContext)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
- return throwGetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
+ return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(exec, scriptContext, ec)));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(*state, scriptContext, ec)));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</ins><span class="cx"> }
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpacesAttribute(exec, scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, scriptContext)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjWithScriptArgumentsAndCallStackAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjWithScriptArgumentsAndCallStackAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "withScriptArgumentsAndCallStackAttribute");
- return throwGetterTypeError(*exec, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
+ return throwGetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptArgumentsAndCallStackAttribute()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptArgumentsAndCallStackAttribute()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-EncodedJSValue jsTestObjConditionalAttr1(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "conditionalAttr1");
- return throwGetterTypeError(*exec, "TestObj", "conditionalAttr1");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "conditionalAttr1");
+ return throwGetterTypeError(*state, "TestObj", "conditionalAttr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr1());
</span><span class="lines">@@ -1513,16 +1513,16 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) && ENABLE(Condition2)
</span><del>-EncodedJSValue jsTestObjConditionalAttr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr2(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "conditionalAttr2");
- return throwGetterTypeError(*exec, "TestObj", "conditionalAttr2");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "conditionalAttr2");
+ return throwGetterTypeError(*state, "TestObj", "conditionalAttr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr2());
</span><span class="lines">@@ -1532,16 +1532,16 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) || ENABLE(Condition2)
</span><del>-EncodedJSValue jsTestObjConditionalAttr3(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr3(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "conditionalAttr3");
- return throwGetterTypeError(*exec, "TestObj", "conditionalAttr3");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "conditionalAttr3");
+ return throwGetterTypeError(*state, "TestObj", "conditionalAttr3");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr3());
</span><span class="lines">@@ -1551,91 +1551,91 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-EncodedJSValue jsTestObjConditionalAttr4Constructor(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr4Constructor(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><del>- return JSValue::encode(JSTestObjectA::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestObjectA::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) && ENABLE(Condition2)
</span><del>-EncodedJSValue jsTestObjConditionalAttr5Constructor(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr5Constructor(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><del>- return JSValue::encode(JSTestObjectB::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestObjectB::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) || ENABLE(Condition2)
</span><del>-EncodedJSValue jsTestObjConditionalAttr6Constructor(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConditionalAttr6Constructor(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><del>- return JSValue::encode(JSTestObjectC::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestObjectC::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjCachedAttribute1(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjCachedAttribute1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "cachedAttribute1");
- return throwGetterTypeError(*exec, "TestObj", "cachedAttribute1");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "cachedAttribute1");
+ return throwGetterTypeError(*state, "TestObj", "cachedAttribute1");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedAttribute1.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = (impl.cachedAttribute1().hasNoValue() ? jsNull() : impl.cachedAttribute1().jsValue());
</span><del>- castedThis->m_cachedAttribute1.set(exec->vm(), castedThis, result);
</del><ins>+ castedThis->m_cachedAttribute1.set(state->vm(), castedThis, result);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjCachedAttribute2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjCachedAttribute2(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "cachedAttribute2");
- return throwGetterTypeError(*exec, "TestObj", "cachedAttribute2");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "cachedAttribute2");
+ return throwGetterTypeError(*state, "TestObj", "cachedAttribute2");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedAttribute2.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = (impl.cachedAttribute2().hasNoValue() ? jsNull() : impl.cachedAttribute2().jsValue());
</span><del>- castedThis->m_cachedAttribute2.set(exec->vm(), castedThis, result);
</del><ins>+ castedThis->m_cachedAttribute2.set(state->vm(), castedThis, result);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjAnyAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjAnyAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "anyAttribute");
- return throwGetterTypeError(*exec, "TestObj", "anyAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "anyAttribute");
+ return throwGetterTypeError(*state, "TestObj", "anyAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = (impl.anyAttribute().hasNoValue() ? jsNull() : impl.anyAttribute().jsValue());
</span><span class="lines">@@ -1643,61 +1643,61 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjContentDocument(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjContentDocument(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(slotBase);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- return JSValue::encode(shouldAllowAccessToNode(exec, impl.contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.contentDocument())) : jsNull());
</del><ins>+ return JSValue::encode(shouldAllowAccessToNode(state, impl.contentDocument()) ? toJS(state, castedThis->globalObject(), WTF::getPtr(impl.contentDocument())) : jsNull());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjMutablePoint(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjMutablePoint(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "mutablePoint");
- return throwGetterTypeError(*exec, "TestObj", "mutablePoint");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "mutablePoint");
+ return throwGetterTypeError(*state, "TestObj", "mutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGStaticPropertyTearOff<TestObj, SVGPoint>::create(impl, impl.mutablePoint(), &TestObj::updateMutablePoint)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(SVGStaticPropertyTearOff<TestObj, SVGPoint>::create(impl, impl.mutablePoint(), &TestObj::updateMutablePoint)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjImmutablePoint(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjImmutablePoint(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "immutablePoint");
- return throwGetterTypeError(*exec, "TestObj", "immutablePoint");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "immutablePoint");
+ return throwGetterTypeError(*state, "TestObj", "immutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePoint())));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePoint())));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStrawberry(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStrawberry(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "strawberry");
- return throwGetterTypeError(*exec, "TestObj", "strawberry");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "strawberry");
+ return throwGetterTypeError(*state, "TestObj", "strawberry");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.blueberry());
</span><span class="lines">@@ -1705,16 +1705,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjStrictFloat(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjStrictFloat(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "strictFloat");
- return throwGetterTypeError(*exec, "TestObj", "strictFloat");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "strictFloat");
+ return throwGetterTypeError(*state, "TestObj", "strictFloat");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.strictFloat());
</span><span class="lines">@@ -1722,16 +1722,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjDescription(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjDescription(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "description");
- return throwGetterTypeError(*exec, "TestObj", "description");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "description");
+ return throwGetterTypeError(*state, "TestObj", "description");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.description());
</span><span class="lines">@@ -1739,16 +1739,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjId(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjId(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "id");
- return throwGetterTypeError(*exec, "TestObj", "id");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "id");
+ return throwGetterTypeError(*state, "TestObj", "id");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.id());
</span><span class="lines">@@ -1756,33 +1756,33 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjHash(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjHash(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "hash");
- return throwGetterTypeError(*exec, "TestObj", "hash");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "hash");
+ return throwGetterTypeError(*state, "TestObj", "hash");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.hash());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.hash());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjReplaceableAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjReplaceableAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "replaceableAttribute");
- return throwGetterTypeError(*exec, "TestObj", "replaceableAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "replaceableAttribute");
+ return throwGetterTypeError(*state, "TestObj", "replaceableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.replaceableAttribute());
</span><span class="lines">@@ -1790,16 +1790,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableDoubleAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableDoubleAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableDoubleAttribute");
- return throwGetterTypeError(*exec, "TestObj", "nullableDoubleAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableDoubleAttribute");
+ return throwGetterTypeError(*state, "TestObj", "nullableDoubleAttribute");
</ins><span class="cx"> }
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="lines">@@ -1810,16 +1810,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableLongAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableLongAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableLongAttribute");
- return throwGetterTypeError(*exec, "TestObj", "nullableLongAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableLongAttribute");
+ return throwGetterTypeError(*state, "TestObj", "nullableLongAttribute");
</ins><span class="cx"> }
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="lines">@@ -1830,16 +1830,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableBooleanAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableBooleanAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableBooleanAttribute");
- return throwGetterTypeError(*exec, "TestObj", "nullableBooleanAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableBooleanAttribute");
+ return throwGetterTypeError(*state, "TestObj", "nullableBooleanAttribute");
</ins><span class="cx"> }
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="lines">@@ -1850,36 +1850,36 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableStringAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableStringAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableStringAttribute");
- return throwGetterTypeError(*exec, "TestObj", "nullableStringAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableStringAttribute");
+ return throwGetterTypeError(*state, "TestObj", "nullableStringAttribute");
</ins><span class="cx"> }
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.nullableStringAttribute(isNull));
</del><ins>+ JSValue result = jsStringWithCache(state, impl.nullableStringAttribute(isNull));
</ins><span class="cx"> if (isNull)
</span><span class="cx"> return JSValue::encode(jsNull());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableLongSettableAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableLongSettableAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableLongSettableAttribute");
- return throwGetterTypeError(*exec, "TestObj", "nullableLongSettableAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableLongSettableAttribute");
+ return throwGetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="lines">@@ -1890,126 +1890,126 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjNullableStringValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjNullableStringValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "nullableStringValue");
- return throwGetterTypeError(*exec, "TestObj", "nullableStringValue");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "nullableStringValue");
+ return throwGetterTypeError(*state, "TestObj", "nullableStringValue");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.nullableStringValue(isNull, ec));
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> if (isNull)
</span><span class="cx"> return JSValue::encode(jsNull());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "attribute");
- return throwGetterTypeError(*exec, "TestObj", "attribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "attribute");
+ return throwGetterTypeError(*state, "TestObj", "attribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.attribute());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.attribute());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjAttributeWithReservedEnumType(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjAttributeWithReservedEnumType(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "attributeWithReservedEnumType");
- return throwGetterTypeError(*exec, "TestObj", "attributeWithReservedEnumType");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "attributeWithReservedEnumType");
+ return throwGetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.attributeWithReservedEnumType());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.attributeWithReservedEnumType());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjPutForwardsAttribute(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjPutForwardsAttribute(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestObj", "putForwardsAttribute");
- return throwGetterTypeError(*exec, "TestObj", "putForwardsAttribute");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestObj", "putForwardsAttribute");
+ return throwGetterTypeError(*state, "TestObj", "putForwardsAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.putForwardsAttribute()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.putForwardsAttribute()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestObjConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestObjConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestObjPrototype* domObject = jsDynamicCast<JSTestObjPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestObj::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestObj::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void setJSTestObjConstructorStaticStringAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConstructorStaticStringAttr(ExecState* state, JSObject* baseObject, EncodedJSValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> TestObj::setStaticStringAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjTestSubObjEnabledBySettingConstructor(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjTestSubObjEnabledBySettingConstructor(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> // Shadowing a built-in constructor.
</span><del>- castedThis->putDirect(exec->vm(), Identifier::fromString(exec, "TestSubObjEnabledBySetting"), value);
</del><ins>+ castedThis->putDirect(state->vm(), Identifier::fromString(state, "TestSubObjEnabledBySetting"), value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjEnumAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjEnumAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "enumAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "enumAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "enumAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "enumAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> if (nativeValue != "" && nativeValue != "EnumValue1" && nativeValue != "EnumValue2" && nativeValue != "EnumValue3")
</span><span class="cx"> return;
</span><span class="lines">@@ -2017,773 +2017,773 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjByteAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjByteAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "byteAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "byteAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "byteAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "byteAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int8_t nativeValue = toInt8(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int8_t nativeValue = toInt8(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setByteAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjOctetAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjOctetAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "octetAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "octetAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "octetAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "octetAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- uint8_t nativeValue = toUInt8(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ uint8_t nativeValue = toUInt8(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setOctetAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjShortAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjShortAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "shortAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "shortAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "shortAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "shortAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int16_t nativeValue = toInt16(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int16_t nativeValue = toInt16(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setShortAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjUnsignedShortAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjUnsignedShortAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "unsignedShortAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "unsignedShortAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "unsignedShortAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "unsignedShortAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- uint16_t nativeValue = toUInt16(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ uint16_t nativeValue = toUInt16(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setUnsignedShortAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjLongAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjLongAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "longAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "longAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "longAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "longAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setLongAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjLongLongAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjLongLongAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "longLongAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "longLongAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "longLongAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "longLongAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- long long nativeValue = toInt64(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ long long nativeValue = toInt64(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setLongLongAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjUnsignedLongLongAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjUnsignedLongLongAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "unsignedLongLongAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "unsignedLongLongAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "unsignedLongLongAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- unsigned long long nativeValue = toUInt64(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ unsigned long long nativeValue = toUInt64(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setUnsignedLongLongAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStringAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStringAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "stringAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "stringAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "stringAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "stringAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStringAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjTestObjAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjTestObjAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "testObjAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "testObjAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "testObjAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "testObjAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setTestObjAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjXMLObjAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjXMLObjAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "XMLObjAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "XMLObjAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "XMLObjAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "XMLObjAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setXMLObjAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjCreate(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjCreate(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "create");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "create");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "create");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "create");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- bool nativeValue = value.toBoolean(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ bool nativeValue = value.toBoolean(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setCreate(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedStringAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedStringAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = valueToStringWithNullCheck(exec, value);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = valueToStringWithNullCheck(state, value);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedstringattrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedIntegralAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedIntegralAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedIntegralAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedIntegralAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedIntegralAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedUnsignedIntegralAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedUnsignedIntegralAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedUnsignedIntegralAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedUnsignedIntegralAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- unsigned nativeValue = toUInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ unsigned nativeValue = toUInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedBooleanAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedBooleanAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedBooleanAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedBooleanAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedBooleanAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- bool nativeValue = value.toBoolean(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ bool nativeValue = value.toBoolean(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedURLAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedURLAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedURLAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedURLAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedURLAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedURLAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = valueToStringWithNullCheck(exec, value);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = valueToStringWithNullCheck(state, value);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedurlattrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedStringAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedStringAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedStringAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = valueToStringWithNullCheck(exec, value);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = valueToStringWithNullCheck(state, value);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentStringAttrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedCustomIntegralAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedCustomIntegralAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedCustomIntegralAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedCustomIntegralAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedCustomIntegralAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedCustomBooleanAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedCustomBooleanAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedCustomBooleanAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedCustomBooleanAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedCustomBooleanAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- bool nativeValue = value.toBoolean(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ bool nativeValue = value.toBoolean(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReflectedCustomURLAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReflectedCustomURLAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "reflectedCustomURLAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "reflectedCustomURLAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "reflectedCustomURLAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = valueToStringWithNullCheck(exec, value);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = valueToStringWithNullCheck(state, value);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentURLAttrAttr, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjTypedArrayAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjTypedArrayAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "typedArrayAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "typedArrayAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "typedArrayAttr");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "typedArrayAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> RefPtr<Float32Array> nativeValue = toFloat32Array(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setTypedArrayAttr(nativeValue.get());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjAttrWithGetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjAttrWithGetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "attrWithGetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "attrWithGetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "attrWithGetterException");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "attrWithGetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttrWithGetterException(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjAttrWithSetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjAttrWithSetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "attrWithSetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "attrWithSetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "attrWithSetterException");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "attrWithSetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttrWithSetterException(nativeValue, ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStringAttrWithGetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStringAttrWithGetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "stringAttrWithGetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "stringAttrWithGetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "stringAttrWithGetterException");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStringAttrWithGetterException(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStringAttrWithSetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStringAttrWithSetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "stringAttrWithSetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "stringAttrWithSetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "stringAttrWithSetterException");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStringAttrWithSetterException(nativeValue, ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStrictTypeCheckingAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStrictTypeCheckingAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "strictTypeCheckingAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "strictTypeCheckingAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "strictTypeCheckingAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> if (UNLIKELY(!value.isUndefinedOrNull() && !value.inherits(JSTestObj::info()))) {
</span><del>- throwAttributeTypeError(*exec, "TestObj", "strictTypeCheckingAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObj", "strictTypeCheckingAttribute", "TestObj");
</ins><span class="cx"> return;
</span><span class="cx"> };
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStrictTypeCheckingAttribute(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjCustomAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjCustomAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
- castedThis->setCustomAttr(exec, value);
</del><ins>+ UNUSED_PARAM(state);
+ castedThis->setCustomAttr(state, value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjOnfoo(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjOnfoo(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "onfoo");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "onfoo");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "onfoo");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "onfoo");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><del>- setEventHandlerAttribute(*exec, *castedThis, castedThis->impl(), eventNames().fooEvent, value);
</del><ins>+ setEventHandlerAttribute(*state, *castedThis, castedThis->impl(), eventNames().fooEvent, value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptStateAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptStateAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptStateAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptStateAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptStateAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptStateAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- impl.setWithScriptStateAttribute(exec, nativeValue);
</del><ins>+ impl.setWithScriptStateAttribute(*state, nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithCallWithAndSetterCallWithAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithCallWithAndSetterCallWithAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withCallWithAndSetterCallWithAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withCallWithAndSetterCallWithAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- impl.setWithCallWithAndSetterCallWithAttribute(exec, activeDOMWindow(exec), firstDOMWindow(exec), nativeValue);
</del><ins>+ impl.setWithCallWithAndSetterCallWithAttribute(*state, activeDOMWindow(state), firstDOMWindow(state), nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptExecutionContextAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptExecutionContextAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptExecutionContextAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptExecutionContextAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptExecutionContextAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return;
</span><span class="cx"> impl.setWithScriptExecutionContextAttribute(scriptContext, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptStateAttributeRaises(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptStateAttributeRaises(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptStateAttributeRaises");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptStateAttributeRaises");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptStateAttributeRaises");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- impl.setWithScriptStateAttributeRaises(exec, nativeValue);
</del><ins>+ impl.setWithScriptStateAttributeRaises(*state, nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptExecutionContextAttributeRaises(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptExecutionContextAttributeRaises(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptExecutionContextAttributeRaises");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptExecutionContextAttributeRaises");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return;
</span><span class="cx"> impl.setWithScriptExecutionContextAttributeRaises(scriptContext, nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptExecutionContextAndScriptStateAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptExecutionContextAndScriptStateAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return;
</span><del>- impl.setWithScriptExecutionContextAndScriptStateAttribute(exec, scriptContext, nativeValue);
</del><ins>+ impl.setWithScriptExecutionContextAndScriptStateAttribute(*state, scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return;
</span><del>- impl.setWithScriptExecutionContextAndScriptStateAttributeRaises(exec, scriptContext, nativeValue);
</del><ins>+ impl.setWithScriptExecutionContextAndScriptStateAttributeRaises(*state, scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return;
</span><del>- impl.setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(exec, scriptContext, nativeValue);
</del><ins>+ impl.setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjWithScriptArgumentsAndCallStackAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjWithScriptArgumentsAndCallStackAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> TestObj* nativeValue = JSTestObj::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setWithScriptArgumentsAndCallStackAttribute(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-void setJSTestObjConditionalAttr1(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr1(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "conditionalAttr1");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "conditionalAttr1");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "conditionalAttr1");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "conditionalAttr1");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setConditionalAttr1(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -2791,21 +2791,21 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) && ENABLE(Condition2)
</span><del>-void setJSTestObjConditionalAttr2(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr2(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "conditionalAttr2");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "conditionalAttr2");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "conditionalAttr2");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "conditionalAttr2");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setConditionalAttr2(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -2813,21 +2813,21 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) || ENABLE(Condition2)
</span><del>-void setJSTestObjConditionalAttr3(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr3(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "conditionalAttr3");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "conditionalAttr3");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "conditionalAttr3");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "conditionalAttr3");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setConditionalAttr3(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -2835,242 +2835,242 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-void setJSTestObjConditionalAttr4Constructor(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr4Constructor(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> // Shadowing a built-in constructor.
</span><del>- castedThis->putDirect(exec->vm(), Identifier::fromString(exec, "conditionalAttr4"), value);
</del><ins>+ castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr4"), value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) && ENABLE(Condition2)
</span><del>-void setJSTestObjConditionalAttr5Constructor(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr5Constructor(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> // Shadowing a built-in constructor.
</span><del>- castedThis->putDirect(exec->vm(), Identifier::fromString(exec, "conditionalAttr5"), value);
</del><ins>+ castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr5"), value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) || ENABLE(Condition2)
</span><del>-void setJSTestObjConditionalAttr6Constructor(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjConditionalAttr6Constructor(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestObj*>(baseObject);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> // Shadowing a built-in constructor.
</span><del>- castedThis->putDirect(exec->vm(), Identifier::fromString(exec, "conditionalAttr6"), value);
</del><ins>+ castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr6"), value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-void setJSTestObjAnyAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjAnyAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "anyAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "anyAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "anyAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "anyAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- Deprecated::ScriptValue nativeValue = { exec->vm(), value };
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Deprecated::ScriptValue nativeValue = { state->vm(), value };
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAnyAttribute(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjMutablePoint(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjMutablePoint(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "mutablePoint");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "mutablePoint");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "mutablePoint");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "mutablePoint");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> SVGPropertyTearOff<SVGPoint>* nativeValue = JSSVGPoint::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setMutablePoint(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjImmutablePoint(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjImmutablePoint(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "immutablePoint");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "immutablePoint");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "immutablePoint");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "immutablePoint");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> SVGPropertyTearOff<SVGPoint>* nativeValue = JSSVGPoint::toWrapped(value);
</span><del>- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setImmutablePoint(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStrawberry(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStrawberry(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "strawberry");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "strawberry");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "strawberry");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "strawberry");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setBlueberry(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjStrictFloat(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjStrictFloat(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "strictFloat");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "strictFloat");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "strictFloat");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "strictFloat");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- float nativeValue = value.toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ float nativeValue = value.toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStrictFloat(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjId(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjId(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "id");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "id");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "id");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "id");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setId(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjReplaceableAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjReplaceableAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "replaceableAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "replaceableAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "replaceableAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "replaceableAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in object.
</span><del>- castedThis->putDirect(exec->vm(), Identifier::fromString(exec, "replaceableAttribute"), value);
</del><ins>+ castedThis->putDirect(state->vm(), Identifier::fromString(state, "replaceableAttribute"), value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjNullableLongSettableAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjNullableLongSettableAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "nullableLongSettableAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "nullableLongSettableAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "nullableLongSettableAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNullableLongSettableAttribute(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjNullableStringValue(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjNullableStringValue(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "nullableStringValue");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "nullableStringValue");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "nullableStringValue");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "nullableStringValue");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setNullableStringValue(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjAttributeWithReservedEnumType(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjAttributeWithReservedEnumType(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "attributeWithReservedEnumType");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "attributeWithReservedEnumType");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "attributeWithReservedEnumType");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> if (nativeValue != "" && nativeValue != "OptionalValue1" && nativeValue != "OptionalValue2" && nativeValue != "OptionalValue3")
</span><span class="cx"> return;
</span><span class="lines">@@ -3078,24 +3078,24 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestObjPutForwardsAttribute(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestObjPutForwardsAttribute(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestObjPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestObj", "putForwardsAttribute");
</del><ins>+ reportDeprecatedSetterError(*state, "TestObj", "putForwardsAttribute");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestObj", "putForwardsAttribute");
</del><ins>+ throwSetterTypeError(*state, "TestObj", "putForwardsAttribute");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto* forwardedImpl = castedThis->impl().putForwardsAttribute();
</span><span class="cx"> if (!forwardedImpl)
</span><span class="cx"> return;
</span><span class="cx"> auto& impl = *forwardedImpl;
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setName(nativeValue);
</span><span class="cx"> }
</span><span class="lines">@@ -3106,861 +3106,861 @@
</span><span class="cx"> return getDOMConstructor<JSTestObjConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "voidMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "voidMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> impl.voidMethod();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "voidMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "voidMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int longArg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int longArg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(2));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(2));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.voidMethodWithArgs(longArg, strArg, objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "byteMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "byteMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.byteMethod());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "byteMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "byteMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int8_t byteArg = toInt8(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int8_t byteArg = toInt8(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(2));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(2));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsNumber(impl.byteMethodWithArgs(byteArg, strArg, objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "octetMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "octetMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.octetMethod());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "octetMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "octetMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- uint8_t octetArg = toUInt8(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ uint8_t octetArg = toUInt8(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(2));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(2));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsNumber(impl.octetMethodWithArgs(octetArg, strArg, objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "longMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "longMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.longMethod());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "longMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "longMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int longArg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int longArg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(2));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(2));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsNumber(impl.longMethodWithArgs(longArg, strArg, objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "objMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "objMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.objMethod()));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.objMethod()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "objMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "objMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int longArg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int longArg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(2));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(2));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.objMethodWithArgs(longArg, strArg, objArg)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.objMethodWithArgs(longArg, strArg, objArg)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithSequenceArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithSequenceArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithSequenceArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithSequenceArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<RefPtr<ScriptProfile>> sequenceArg = (toRefPtrNativeArray<ScriptProfile, JSScriptProfile>(exec, exec->argument(0), &JSScriptProfile::toWrapped));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<RefPtr<ScriptProfile>> sequenceArg = (toRefPtrNativeArray<ScriptProfile, JSScriptProfile>(state, state->argument(0), &JSScriptProfile::toWrapped));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithSequenceArg(sequenceArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodReturningSequence(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodReturningSequence(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodReturningSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodReturningSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int longArg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int longArg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = jsArray(exec, castedThis->globalObject(), impl.methodReturningSequence(longArg));
</del><ins>+ JSValue result = jsArray(state, castedThis->globalObject(), impl.methodReturningSequence(longArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithEnumArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithEnumArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithEnumArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithEnumArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> // Keep pointer to the JSString in a local so we don't need to ref the String.
</span><del>- auto* enumArgString = exec->argument(0).toString(exec);
- auto& enumArg = enumArgString->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* enumArgString = state->argument(0).toString(state);
+ auto& enumArg = enumArgString->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (enumArg != "" && enumArg != "EnumValue1" && enumArg != "EnumValue2" && enumArg != "EnumValue3")
</span><del>- return throwArgumentMustBeEnumError(*exec, 0, "enumArg", "TestObj", "methodWithEnumArg", "\"\", \"EnumValue1\", \"EnumValue2\", \"EnumValue3\"");
</del><ins>+ return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithEnumArg", "\"\", \"EnumValue1\", \"EnumValue2\", \"EnumValue3\"");
</ins><span class="cx"> impl.methodWithEnumArg(enumArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalEnumArgAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalEnumArgAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.methodWithOptionalEnumArgAndDefaultValue();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> String enumArg;
</span><del>- if (exec->argument(0).isUndefined())
</del><ins>+ if (state->argument(0).isUndefined())
</ins><span class="cx"> enumArg = ASCIILiteral("EnumValue1");
</span><span class="cx"> else {
</span><del>- enumArg = exec->uncheckedArgument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ enumArg = state->uncheckedArgument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (enumArg != "" && enumArg != "EnumValue1" && enumArg != "EnumValue2" && enumArg != "EnumValue3")
</span><del>- return throwArgumentMustBeEnumError(*exec, 0, "enumArg", "TestObj", "methodWithOptionalEnumArgAndDefaultValue", "\"\", \"EnumValue1\", \"EnumValue2\", \"EnumValue3\"");
</del><ins>+ return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithOptionalEnumArgAndDefaultValue", "\"\", \"EnumValue1\", \"EnumValue2\", \"EnumValue3\"");
</ins><span class="cx"> }
</span><span class="cx"> impl.methodWithOptionalEnumArgAndDefaultValue(enumArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodThatRequiresAllArgsAndThrows");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodThatRequiresAllArgsAndThrows");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- String strArg = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- TestObj* objArg = JSTestObj::toWrapped(exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg = JSTestObj::toWrapped(state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.methodThatRequiresAllArgsAndThrows(strArg, objArg, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.methodThatRequiresAllArgsAndThrows(strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "serializedValue");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "serializedValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- RefPtr<SerializedScriptValue> serializedArg = SerializedScriptValue::create(exec, exec->argument(0), 0, 0);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ RefPtr<SerializedScriptValue> serializedArg = SerializedScriptValue::create(state, state->argument(0), 0, 0);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.serializedValue(serializedArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "optionsObject");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "optionsObject");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Dictionary oo = { exec, exec->argument(0) };
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Dictionary oo = { state, state->argument(0) };
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Dictionary ooo = { exec, exec->argument(1) };
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Dictionary ooo = { state, state->argument(1) };
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.optionsObject(oo, ooo);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithException");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> impl.methodWithException(ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "customMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "customMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><del>- return JSValue::encode(castedThis->customMethod(exec));
</del><ins>+ return JSValue::encode(castedThis->customMethod(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethodWithArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethodWithArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "customMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "customMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><del>- return JSValue::encode(castedThis->customMethodWithArgs(exec));
</del><ins>+ return JSValue::encode(castedThis->customMethodWithArgs(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAddEventListener(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAddEventListener(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "addEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "addEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue listener = exec->argument(1);
</del><ins>+ JSValue listener = state->argument(1);
</ins><span class="cx"> if (UNLIKELY(!listener.isObject()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.addEventListener(exec->argument(0).toString(exec)->toAtomicString(exec), createJSEventListenerForAdd(*exec, *asObject(listener), *castedThis), exec->argument(2).toBoolean(exec));
</del><ins>+ impl.addEventListener(state->argument(0).toString(state)->toAtomicString(state), createJSEventListenerForAdd(*state, *asObject(listener), *castedThis), state->argument(2).toBoolean(state));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionRemoveEventListener(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionRemoveEventListener(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "removeEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "removeEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue listener = exec->argument(1);
</del><ins>+ JSValue listener = state->argument(1);
</ins><span class="cx"> if (UNLIKELY(!listener.isObject()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.removeEventListener(exec->argument(0).toString(exec)->toAtomicString(exec), createJSEventListenerForRemove(*exec, *asObject(listener), *castedThis).ptr(), exec->argument(2).toBoolean(exec));
</del><ins>+ impl.removeEventListener(state->argument(0).toString(state)->toAtomicString(state), createJSEventListenerForRemove(*state, *asObject(listener), *castedThis).ptr(), state->argument(2).toBoolean(state));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoid(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoid(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptStateVoid");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptStateVoid");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- impl.withScriptStateVoid(exec);
</del><ins>+ impl.withScriptStateVoid(*state);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObj(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObj(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptStateObj");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptStateObj");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObj(exec)));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObj(*state)));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoidException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoidException(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptStateVoidException");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptStateVoidException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- impl.withScriptStateVoidException(exec, ec);
- setDOMException(exec, ec);
</del><ins>+ impl.withScriptStateVoidException(*state, ec);
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptStateObjException");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptStateObjException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObjException(exec, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObjException(*state, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ setDOMException(state, ec);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContext(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContext(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptExecutionContext");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptExecutionContext");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.withScriptExecutionContext(scriptContext);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptState");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptState");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.withScriptExecutionContextAndScriptState(exec, scriptContext);
</del><ins>+ impl.withScriptExecutionContextAndScriptState(*state, scriptContext);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateObjException");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateObjException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(exec, scriptContext, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(*state, scriptContext, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ setDOMException(state, ec);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptExecutionContextAndScriptStateWithSpaces");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpaces");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- auto* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</del><ins>+ auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</ins><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(exec, scriptContext)));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(*state, scriptContext)));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "withScriptArgumentsAndCallStack");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "withScriptArgumentsAndCallStack");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(exec, 0));
</del><ins>+ RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(state, 0));
</ins><span class="cx"> impl.withScriptArgumentsAndCallStack(scriptArguments.release());
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.methodWithOptionalArg();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int opt = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int opt = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalArg(opt);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArgAndDefaultValue(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArgAndDefaultValue(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalArgAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalArgAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.methodWithOptionalArgAndDefaultValue();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int opt = exec->argument(0).isUndefined() ? 666 : toInt32(exec, exec->uncheckedArgument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int opt = state->argument(0).isUndefined() ? 666 : toInt32(state, state->uncheckedArgument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalArgAndDefaultValue(opt);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithNonOptionalArgAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int nonOpt = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int nonOpt = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.methodWithNonOptionalArgAndOptionalArg(nonOpt);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int opt = toInt32(exec, exec->argument(1), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int opt = toInt32(state, state->argument(1), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithNonOptionalArgAndTwoOptionalArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndTwoOptionalArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int nonOpt = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int nonOpt = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int opt1 = toInt32(exec, exec->argument(1), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int opt1 = toInt32(state, state->argument(1), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (argsCount <= 2) {
</span><span class="cx"> impl.methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int opt2 = toInt32(exec, exec->argument(2), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int opt2 = toInt32(state, state->argument(2), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalString");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.methodWithOptionalString();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- String str = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalString(str);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValue(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValue(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalStringAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.methodWithOptionalStringAndDefaultValue();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- String str = exec->argument(0).isUndefined() ? "foo" : exec->uncheckedArgument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str = state->argument(0).isUndefined() ? "foo" : state->uncheckedArgument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalStringAndDefaultValue(str);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalStringIsUndefined");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsUndefined");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String str = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalStringIsUndefined(str);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithOptionalStringIsNullString");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsNullString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String str = exec->argument(0).isUndefined() ? String() : exec->uncheckedArgument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str = state->argument(0).isUndefined() ? String() : state->uncheckedArgument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithOptionalStringIsNullString(str);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithCallbackArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithCallbackArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "methodWithCallbackArg");
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackArg");
+ RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithCallbackArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithNonCallbackArgAndCallbackArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int nonCallback = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int nonCallback = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- if (!exec->argument(1).isObject())
- return throwArgumentMustBeFunctionError(*exec, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackArg");
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ if (!state->argument(1).isObject())
+ return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackArg");
+ RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithNonCallbackArgAndCallbackArg(nonCallback, callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithCallbackAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithCallbackAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> RefPtr<TestCallback> callback;
</span><del>- if (!exec->argument(0).isUndefinedOrNull()) {
- if (!exec->uncheckedArgument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "methodWithCallbackAndOptionalArg");
- callback = JSTestCallback::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (!state->argument(0).isUndefinedOrNull()) {
+ if (!state->uncheckedArgument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackAndOptionalArg");
+ callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> }
</span><span class="cx"> impl.methodWithCallbackAndOptionalArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithCallbackFunctionArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isFunction())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "methodWithCallbackFunctionArg");
- RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isFunction())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionArg");
+ RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithCallbackFunctionArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int nonCallback = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int nonCallback = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- if (!exec->argument(1).isFunction())
- return throwArgumentMustBeFunctionError(*exec, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
- RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(exec->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ if (!state->argument(1).isFunction())
+ return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
+ RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithNonCallbackArgAndCallbackFunctionArg(nonCallback, callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackFunctionAndOptionalArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackFunctionAndOptionalArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithCallbackFunctionAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> RefPtr<TestCallbackFunction> callback;
</span><del>- if (!exec->argument(0).isUndefinedOrNull()) {
- if (!exec->uncheckedArgument(0).isFunction())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "methodWithCallbackFunctionAndOptionalArg");
- callback = JSTestCallbackFunction::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (!state->argument(0).isUndefinedOrNull()) {
+ if (!state->uncheckedArgument(0).isFunction())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionAndOptionalArg");
+ callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> }
</span><span class="cx"> impl.methodWithCallbackFunctionAndOptionalArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionStaticMethodWithCallbackAndOptionalArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionStaticMethodWithCallbackAndOptionalArg(ExecState* state)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<TestCallback> callback;
</span><del>- if (!exec->argument(0).isUndefinedOrNull()) {
- if (!exec->uncheckedArgument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "staticMethodWithCallbackAndOptionalArg");
- callback = createFunctionOnlyCallback<JSTestCallback>(exec, jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), exec->uncheckedArgument(0));
</del><ins>+ if (!state->argument(0).isUndefinedOrNull()) {
+ if (!state->uncheckedArgument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackAndOptionalArg");
+ callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</ins><span class="cx"> }
</span><span class="cx"> TestObj::staticMethodWithCallbackAndOptionalArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionStaticMethodWithCallbackArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionStaticMethodWithCallbackArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
- RefPtr<TestCallback> callback = createFunctionOnlyCallback<JSTestCallback>(exec, jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), exec->uncheckedArgument(0));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
+ RefPtr<TestCallback> callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</ins><span class="cx"> TestObj::staticMethodWithCallbackArg(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "conditionalMethod1");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "conditionalMethod1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.conditionalMethod1());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.conditionalMethod1());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) && ENABLE(Condition2)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "conditionalMethod2");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "conditionalMethod2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> impl.conditionalMethod2();
</span><span class="lines">@@ -3970,12 +3970,12 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1) || ENABLE(Condition2)
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod3(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod3(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "conditionalMethod3");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "conditionalMethod3");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> impl.conditionalMethod3();
</span><span class="lines">@@ -3984,362 +3984,362 @@
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod1(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- String strArg = exec->argument(1).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String strArg = state->argument(1).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(objArg, strArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod2(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.overloadedMethod(objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int longArg = toInt32(exec, exec->argument(1), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int longArg = toInt32(state, state->argument(1), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(objArg, longArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod3(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod3(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String strArg = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String strArg = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(strArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod4(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod4(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int longArg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int longArg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(longArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod5(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod5(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- if (!exec->argument(0).isObject())
- return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "overloadedMethod");
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ if (!state->argument(0).isObject())
+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "overloadedMethod");
+ RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.overloadedMethod(callback);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod6(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod6(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- RefPtr<DOMStringList> listArg = toDOMStringList(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ RefPtr<DOMStringList> listArg = toDOMStringList(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(listArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod7(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod7(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<String> arrayArg = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<String> arrayArg = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(arrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod8(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod8(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod9(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod9(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<String> arrayArg = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<String> arrayArg = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(arrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod10(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod10(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<unsigned> arrayArg = toNativeArray<unsigned>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<unsigned> arrayArg = toNativeArray<unsigned>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(arrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod11(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod11(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String strArg = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String strArg = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethod(strArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod12(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod12(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> Vector<Blob*> blobArgs;
</span><del>- for (unsigned i = 0, count = exec->argumentCount(); i < count; ++i) {
- if (!exec->uncheckedArgument(i).inherits(JSBlob::info()))
- return throwArgumentTypeError(*exec, i, "blobArgs", "TestObj", "overloadedMethod", "Blob");
- blobArgs.append(JSBlob::toWrapped(exec->uncheckedArgument(i)));
</del><ins>+ for (unsigned i = 0, count = state->argumentCount(); i < count; ++i) {
+ if (!state->uncheckedArgument(i).inherits(JSBlob::info()))
+ return throwArgumentTypeError(*state, i, "blobArgs", "TestObj", "overloadedMethod", "Blob");
+ blobArgs.append(JSBlob::toWrapped(state->uncheckedArgument(i)));
</ins><span class="cx"> }
</span><span class="cx"> impl.overloadedMethod(blobArgs);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>(2, exec->argumentCount());
- JSValue arg0(exec->argument(0));
- JSValue arg1(exec->argument(1));
</del><ins>+ size_t argsCount = std::min<size_t>(2, state->argumentCount());
+ JSValue arg0(state->argument(0));
+ JSValue arg1(state->argument(1));
</ins><span class="cx"> if ((argsCount == 2 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info()))) && (arg1.isUndefinedOrNull() || arg1.isString() || arg1.isObject())))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod1(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod1(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))) || (argsCount == 2 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod2(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod2(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isUndefinedOrNull() || arg0.isString() || arg0.isObject())))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod3(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod3(state);
</ins><span class="cx"> if (argsCount == 1)
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod4(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod4(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || arg0.isObject())))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod5(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod5(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSDOMStringList::info())))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod6(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod6(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || (arg0.isObject() && isJSArray(arg0)))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod7(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod7(state);
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod8(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod8(state);
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && isJSArray(arg0)))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod9(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod9(state);
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && isJSArray(arg0)))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod10(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod10(state);
</ins><span class="cx"> if (argsCount == 1)
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod11(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod11(state);
</ins><span class="cx"> if ()
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethod12(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethod12(state);
</ins><span class="cx"> if (argsCount < 1)
</span><del>- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- return throwVMTypeError(exec);
</del><ins>+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethodWithOptionalParameter");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestObj* objArg1 = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestObj* objArg1 = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.overloadedMethodWithOptionalParameter(objArg1);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- TestObj* objArg2 = JSTestObj::toWrapped(exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ TestObj* objArg2 = JSTestObj::toWrapped(state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethodWithOptionalParameter(objArg1, objArg2);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "overloadedMethodWithOptionalParameter");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.overloadedMethodWithOptionalParameter(objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int longArg = toInt32(exec, exec->argument(1), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int longArg = toInt32(state, state->argument(1), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.overloadedMethodWithOptionalParameter(objArg, longArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter(ExecState* state)
</ins><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>(2, exec->argumentCount());
- JSValue arg0(exec->argument(0));
- JSValue arg1(exec->argument(1));
</del><ins>+ size_t argsCount = std::min<size_t>(2, state->argumentCount());
+ JSValue arg0(state->argument(0));
+ JSValue arg1(state->argument(1));
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))) || (argsCount == 2 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info()))) && (arg1.isUndefined() || arg1.isNull() || (arg1.isObject() && asObject(arg1)->inherits(JSTestObj::info())))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1(state);
</ins><span class="cx"> if ((argsCount == 1 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))) || (argsCount == 2 && (arg0.isNull() || (arg0.isObject() && asObject(arg0)->inherits(JSTestObj::info())))))
</span><del>- return jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2(exec);
</del><ins>+ return jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2(state);
</ins><span class="cx"> if (argsCount < 1)
</span><del>- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- return throwVMTypeError(exec);
</del><ins>+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethod(ExecState* state)
</ins><span class="cx"> {
</span><span class="cx"> TestObj::classMethod();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethodWithOptional(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethodWithOptional(ExecState* state)
</ins><span class="cx"> {
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> JSValue result = jsNumber(TestObj::classMethodWithOptional());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int arg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int arg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsNumber(TestObj::classMethodWithOptional(arg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethod2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethod2(ExecState* state)
</ins><span class="cx"> {
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- return JSValue::encode(JSTestObj::classMethod2(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ return JSValue::encode(JSTestObj::classMethod2(state));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod11(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod11(ExecState* state)
</ins><span class="cx"> {
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- int arg = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ int arg = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> TestObj::overloadedMethod1(arg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4348,12 +4348,12 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><del>-static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod12(ExecState* exec)
</del><ins>+static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod12(ExecState* state)
</ins><span class="cx"> {
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String type = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String type = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> TestObj::overloadedMethod1(type);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4361,46 +4361,46 @@
</span><span class="cx">
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod1(ExecState* state)
</ins><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>(1, exec->argumentCount());
</del><ins>+ size_t argsCount = std::min<size_t>(1, state->argumentCount());
</ins><span class="cx"> #if ENABLE(Condition1)
</span><span class="cx"> if (argsCount == 1)
</span><del>- return jsTestObjConstructorFunctionOverloadedMethod11(exec);
</del><ins>+ return jsTestObjConstructorFunctionOverloadedMethod11(state);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><del>- JSValue arg0(exec->argument(0));
</del><ins>+ JSValue arg0(state->argument(0));
</ins><span class="cx"> #if ENABLE(Condition1)
</span><span class="cx"> if ((argsCount == 1 && (arg0.isUndefinedOrNull() || arg0.isString() || arg0.isObject())))
</span><del>- return jsTestObjConstructorFunctionOverloadedMethod12(exec);
</del><ins>+ return jsTestObjConstructorFunctionOverloadedMethod12(state);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> if (argsCount < 1)
</span><del>- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- return throwVMTypeError(exec);
</del><ins>+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethodWithClamp(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethodWithClamp(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "classMethodWithClamp");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "classMethodWithClamp");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> unsigned short objArgsShort = 0;
</span><del>- double objArgsShortNativeValue = exec->argument(0).toNumber(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ double objArgsShortNativeValue = state->argument(0).toNumber(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> if (!std::isnan(objArgsShortNativeValue))
</span><span class="cx"> objArgsShort = clampTo<unsigned short>(objArgsShortNativeValue);
</span><span class="cx">
</span><span class="cx"> unsigned long objArgsLong = 0;
</span><del>- double objArgsLongNativeValue = exec->argument(1).toNumber(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ double objArgsLongNativeValue = state->argument(1).toNumber(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> if (!std::isnan(objArgsLongNativeValue))
</span><span class="lines">@@ -4410,473 +4410,473 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithUnsignedLongSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithUnsignedLongSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<unsigned> unsignedLongSequence = toNativeArray<unsigned>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<unsigned> unsignedLongSequence = toNativeArray<unsigned>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithUnsignedLongSequence(unsignedLongSequence);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStringArrayFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStringArrayFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "stringArrayFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "stringArrayFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- Vector<String> values = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<String> values = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</del><ins>+ JSValue result = jsArray(state, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionDomStringListFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionDomStringListFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "domStringListFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "domStringListFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- RefPtr<DOMStringList> values = toDOMStringList(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ RefPtr<DOMStringList> values = toDOMStringList(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.domStringListFunction(values, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.domStringListFunction(values, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithAndWithoutNullableSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<unsigned> arrayArg = toNativeArray<unsigned>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<unsigned> arrayArg = toNativeArray<unsigned>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<unsigned> nullableArrayArg = toNativeArray<unsigned>(exec, exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<unsigned> nullableArrayArg = toNativeArray<unsigned>(state, state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithAndWithoutNullableSequence(arrayArg, nullableArrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "methodWithAndWithoutNullableSequence2");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<unsigned> arrayArg = toNativeArray<unsigned>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<unsigned> arrayArg = toNativeArray<unsigned>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<unsigned> nullableArrayArg = toNativeArray<unsigned>(exec, exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<unsigned> nullableArrayArg = toNativeArray<unsigned>(state, state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.methodWithAndWithoutNullableSequence2(arrayArg, nullableArrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionGetSVGDocument(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionGetSVGDocument(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "getSVGDocument");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "getSVGDocument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- if (!shouldAllowAccessToNode(exec, impl.getSVGDocument(ec)))
</del><ins>+ if (!shouldAllowAccessToNode(state, impl.getSVGDocument(ec)))
</ins><span class="cx"> return JSValue::encode(jsNull());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.getSVGDocument(ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.getSVGDocument(ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert1(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "convert1");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "convert1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestNode* value = JSTestNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestNode* value = JSTestNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.convert1(value);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "convert2");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "convert2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestNode* value = JSTestNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestNode* value = JSTestNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.convert2(value);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert4(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert4(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "convert4");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "convert4");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestNode* value = JSTestNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestNode* value = JSTestNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.convert4(value);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert5(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert5(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "convert5");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "convert5");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- TestNode* value = JSTestNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ TestNode* value = JSTestNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.convert5(value);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMutablePointFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMutablePointFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "mutablePointFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "mutablePointFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.mutablePointFunction())));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.mutablePointFunction())));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionImmutablePointFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionImmutablePointFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "immutablePointFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "immutablePointFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOrange(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOrange(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "orange");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "orange");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> impl.banana();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "strictFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "strictFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- String str = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String str = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- float a = exec->argument(1).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ float a = state->argument(1).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- int b = toInt32(exec, exec->argument(2), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int b = toInt32(state, state->argument(2), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunction(str, a, b, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.strictFunction(str, a, b, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithSequence(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithSequence(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "strictFunctionWithSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "strictFunctionWithSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- if (!exec->argument(0).isUndefinedOrNull() && !exec->argument(0).inherits(JSTestObj::info()))
- return throwArgumentTypeError(*exec, 0, "objArg", "TestObj", "strictFunctionWithSequence", "TestObj");
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (!state->argument(0).isUndefinedOrNull() && !state->argument(0).inherits(JSTestObj::info()))
+ return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithSequence", "TestObj");
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<unsigned> a = toNativeArray<unsigned>(exec, exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<unsigned> a = toNativeArray<unsigned>(state, state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithSequence(objArg, a, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithSequence(objArg, a, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithArray(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithArray(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "strictFunctionWithArray");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "strictFunctionWithArray");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- if (!exec->argument(0).isUndefinedOrNull() && !exec->argument(0).inherits(JSTestObj::info()))
- return throwArgumentTypeError(*exec, 0, "objArg", "TestObj", "strictFunctionWithArray", "TestObj");
- TestObj* objArg = JSTestObj::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (!state->argument(0).isUndefinedOrNull() && !state->argument(0).inherits(JSTestObj::info()))
+ return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithArray", "TestObj");
+ TestObj* objArg = JSTestObj::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<int> array = toNativeArray<int>(exec, exec->argument(1));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<int> array = toNativeArray<int>(state, state->argument(1));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithArray(objArg, array, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithArray(objArg, array, ec)));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicStringMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicStringMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "variadicStringMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "variadicStringMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String head = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String head = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<String> tail = toNativeArguments<String>(exec, 1);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<String> tail = toNativeArguments<String>(state, 1);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.variadicStringMethod(head, tail);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicDoubleMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicDoubleMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "variadicDoubleMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "variadicDoubleMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- double head = exec->argument(0).toNumber(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ double head = state->argument(0).toNumber(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- Vector<double> tail = toNativeArguments<double>(exec, 1);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<double> tail = toNativeArguments<double>(state, 1);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.variadicDoubleMethod(head, tail);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicNodeMethod(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicNodeMethod(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "variadicNodeMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "variadicNodeMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Node* head = JSNode::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Node* head = JSNode::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> Vector<Node*> tail;
</span><del>- for (unsigned i = 1, count = exec->argumentCount(); i < count; ++i) {
- if (!exec->uncheckedArgument(i).inherits(JSNode::info()))
- return throwArgumentTypeError(*exec, i, "tail", "TestObj", "variadicNodeMethod", "Node");
- tail.append(JSNode::toWrapped(exec->uncheckedArgument(i)));
</del><ins>+ for (unsigned i = 1, count = state->argumentCount(); i < count; ++i) {
+ if (!state->uncheckedArgument(i).inherits(JSNode::info()))
+ return throwArgumentTypeError(*state, i, "tail", "TestObj", "variadicNodeMethod", "Node");
+ tail.append(JSNode::toWrapped(state->uncheckedArgument(i)));
</ins><span class="cx"> }
</span><span class="cx"> impl.variadicNodeMethod(head, tail);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAny(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAny(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "any");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "any");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- float a = exec->argument(0).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ float a = state->argument(0).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- int b = toInt32(exec, exec->argument(1), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int b = toInt32(state, state->argument(1), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.any(a, b);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState*, JSPromiseDeferred*);
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- return JSValue::encode(callPromiseFunction(*exec, jsTestObjPrototypeFunctionTestPromiseFunctionPromise));
</del><ins>+ return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionPromise));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* exec, JSPromiseDeferred* promiseDeferred)
</del><ins>+static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* state, JSPromiseDeferred* promiseDeferred)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "testPromiseFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "testPromiseFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- impl.testPromiseFunction(DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred));
</del><ins>+ impl.testPromiseFunction(DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState*, JSPromiseDeferred*);
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* state)
</ins><span class="cx"> {
</span><del>- return JSValue::encode(callPromiseFunction(*exec, jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise));
</del><ins>+ return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* exec, JSPromiseDeferred* promiseDeferred)
</del><ins>+static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* state, JSPromiseDeferred* promiseDeferred)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "testPromiseFunctionWithFloatArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithFloatArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- float a = exec->argument(0).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ float a = state->argument(0).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (!std::isfinite(a)) {
</span><del>- setDOMException(exec, TypeError);
</del><ins>+ setDOMException(state, TypeError);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><del>- impl.testPromiseFunctionWithFloatArgument(a, DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred));
</del><ins>+ impl.testPromiseFunctionWithFloatArgument(a, DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState*, JSPromiseDeferred*);
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* state)
</ins><span class="cx"> {
</span><del>- return JSValue::encode(callPromiseFunction(*exec, jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise));
</del><ins>+ return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* exec, JSPromiseDeferred* promiseDeferred)
</del><ins>+static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* state, JSPromiseDeferred* promiseDeferred)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "testPromiseFunctionWithException");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- impl.testPromiseFunctionWithException(DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred), ec);
- setDOMException(exec, ec);
</del><ins>+ impl.testPromiseFunctionWithException(DeferredWrapper(state, castedThis->globalObject(), promiseDeferred), ec);
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState*, JSPromiseDeferred*);
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* state)
</ins><span class="cx"> {
</span><del>- return JSValue::encode(callPromiseFunction(*exec, jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise));
</del><ins>+ return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* exec, JSPromiseDeferred* promiseDeferred)
</del><ins>+static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* state, JSPromiseDeferred* promiseDeferred)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestObj", "testPromiseFunctionWithOptionalIntArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithOptionalIntArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><del>- impl.testPromiseFunctionWithOptionalIntArgument(DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred));
</del><ins>+ impl.testPromiseFunctionWithOptionalIntArgument(DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- int a = toInt32(exec, exec->argument(0), NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int a = toInt32(state, state->argument(0), NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- impl.testPromiseFunctionWithOptionalIntArgument(a, DeferredWrapper(exec, castedThis->globalObject(), promiseDeferred));
</del><ins>+ impl.testPromiseFunctionWithOptionalIntArgument(a, DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestObj*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestObj& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestObj& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestObj*);
</span><span class="cx">
</span><span class="cx"> // Functions
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -90,81 +90,81 @@
</span><span class="cx"> static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
</span><span class="cx"> };
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- ArrayBuffer* arrayBuffer = toArrayBuffer(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ ArrayBuffer* arrayBuffer = toArrayBuffer(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestOverloadedConstructors> object = TestOverloadedConstructors::create(arrayBuffer);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- RefPtr<ArrayBufferView> arrayBufferView = toArrayBufferView(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ RefPtr<ArrayBufferView> arrayBufferView = toArrayBufferView(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestOverloadedConstructors> object = TestOverloadedConstructors::create(arrayBufferView);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Blob* blob = JSBlob::toWrapped(exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Blob* blob = JSBlob::toWrapped(state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestOverloadedConstructors> object = TestOverloadedConstructors::create(blob);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String string = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String string = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestOverloadedConstructors> object = TestOverloadedConstructors::create(string);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- Vector<int> longArgs = toNativeArguments<int>(exec, 0);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee());
+ Vector<int> longArgs = toNativeArguments<int>(state, 0);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> RefPtr<TestOverloadedConstructors> object = TestOverloadedConstructors::create(longArgs);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors(ExecState* state)
</ins><span class="cx"> {
</span><del>- size_t argsCount = std::min<size_t>(1, exec->argumentCount());
- JSValue arg0(exec->argument(0));
</del><ins>+ size_t argsCount = std::min<size_t>(1, state->argumentCount());
+ JSValue arg0(state->argument(0));
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSArrayBuffer::info())))))
</span><del>- return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(exec);
</del><ins>+ return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(state);
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSArrayBufferView::info())))))
</span><del>- return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(exec);
</del><ins>+ return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(state);
</ins><span class="cx"> if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSBlob::info())))))
</span><del>- return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(exec);
</del><ins>+ return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(state);
</ins><span class="cx"> if (argsCount == 1)
</span><del>- return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(exec);
</del><ins>+ return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(state);
</ins><span class="cx"> if ()
</span><del>- return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(exec);
</del><ins>+ return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(state);
</ins><span class="cx"> if (argsCount < 1)
</span><del>- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- return throwVMTypeError(exec);
</del><ins>+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ return throwVMTypeError(state);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestOverloadedConstructorsConstructor::s_info = { "TestOverloadedConstructorsConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverloadedConstructorsConstructor) };
</span><span class="lines">@@ -233,12 +233,12 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestOverloadedConstructorsConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestOverloadedConstructorsConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestOverloadedConstructorsPrototype* domObject = jsDynamicCast<JSTestOverloadedConstructorsPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestOverloadedConstructors::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestOverloadedConstructors::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestOverloadedConstructors::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestOverloadedConstructors*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestOverloadedConstructors& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestOverloadedConstructors& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestOverloadedConstructors*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -162,43 +162,43 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestOverrideBuiltins::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestOverrideBuiltins::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestOverrideBuiltins*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- if (getStaticValueSlot<JSTestOverrideBuiltins, Base>(exec, JSTestOverrideBuiltinsTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestOverrideBuiltins, Base>(state, JSTestOverrideBuiltinsTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestOverrideBuiltins::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, unsigned index, PropertySlot& slot)
</del><ins>+bool JSTestOverrideBuiltins::getOwnPropertySlotByIndex(JSObject* object, ExecState* state, unsigned index, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestOverrideBuiltins*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- Identifier propertyName = Identifier::from(exec, index);
</del><ins>+ Identifier propertyName = Identifier::from(state, index);
</ins><span class="cx"> if (thisObject->classInfo() == info()) {
</span><span class="cx"> JSValue value;
</span><del>- if (thisObject->nameGetter(exec, propertyName, value)) {
</del><ins>+ if (thisObject->nameGetter(state, propertyName, value)) {
</ins><span class="cx"> slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum, value);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);
</del><ins>+ return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestOverrideBuiltinsConstructor(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestOverrideBuiltinsConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestOverrideBuiltins* domObject = jsDynamicCast<JSTestOverrideBuiltins*>(JSValue::decode(thisValue));
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestOverrideBuiltins::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestOverrideBuiltins::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSTestOverrideBuiltins::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -206,18 +206,18 @@
</span><span class="cx"> return getDOMConstructor<JSTestOverrideBuiltinsConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestOverrideBuiltinsPrototypeFunctionNamedItem(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestOverrideBuiltinsPrototypeFunctionNamedItem(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestOverrideBuiltins* castedThis = jsDynamicCast<JSTestOverrideBuiltins*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestOverrideBuiltins", "namedItem");
</del><ins>+ return throwThisTypeError(*state, "TestOverrideBuiltins", "namedItem");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestOverrideBuiltins::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String name = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String name = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.namedItem(name)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.namedItem(name)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverrideBuiltinsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestOverrideBuiltins*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestOverrideBuiltins& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestOverrideBuiltins& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestOverrideBuiltins*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -158,140 +158,140 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfaceValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfaceValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestSerializedScriptValueInterface", "value");
- return throwGetterTypeError(*exec, "TestSerializedScriptValueInterface", "value");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestSerializedScriptValueInterface", "value");
+ return throwGetterTypeError(*state, "TestSerializedScriptValueInterface", "value");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = impl.value() ? impl.value()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
</del><ins>+ JSValue result = impl.value() ? impl.value()->deserialize(state, castedThis->globalObject(), 0) : jsNull();
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfaceReadonlyValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfaceReadonlyValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestSerializedScriptValueInterface", "readonlyValue");
- return throwGetterTypeError(*exec, "TestSerializedScriptValueInterface", "readonlyValue");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestSerializedScriptValueInterface", "readonlyValue");
+ return throwGetterTypeError(*state, "TestSerializedScriptValueInterface", "readonlyValue");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = impl.readonlyValue() ? impl.readonlyValue()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
</del><ins>+ JSValue result = impl.readonlyValue() ? impl.readonlyValue()->deserialize(state, castedThis->globalObject(), 0) : jsNull();
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfaceCachedValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfaceCachedValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestSerializedScriptValueInterface", "cachedValue");
- return throwGetterTypeError(*exec, "TestSerializedScriptValueInterface", "cachedValue");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestSerializedScriptValueInterface", "cachedValue");
+ return throwGetterTypeError(*state, "TestSerializedScriptValueInterface", "cachedValue");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedValue.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = impl.cachedValue() ? impl.cachedValue()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
- castedThis->m_cachedValue.set(exec->vm(), castedThis, result);
</del><ins>+ JSValue result = impl.cachedValue() ? impl.cachedValue()->deserialize(state, castedThis->globalObject(), 0) : jsNull();
+ castedThis->m_cachedValue.set(state->vm(), castedThis, result);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfacePorts(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfacePorts(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestSerializedScriptValueInterface", "ports");
- return throwGetterTypeError(*exec, "TestSerializedScriptValueInterface", "ports");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestSerializedScriptValueInterface", "ports");
+ return throwGetterTypeError(*state, "TestSerializedScriptValueInterface", "ports");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsArray(exec, castedThis->globalObject(), impl.ports());
</del><ins>+ JSValue result = jsArray(state, castedThis->globalObject(), impl.ports());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfaceCachedReadonlyValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfaceCachedReadonlyValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestSerializedScriptValueInterface", "cachedReadonlyValue");
- return throwGetterTypeError(*exec, "TestSerializedScriptValueInterface", "cachedReadonlyValue");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestSerializedScriptValueInterface", "cachedReadonlyValue");
+ return throwGetterTypeError(*state, "TestSerializedScriptValueInterface", "cachedReadonlyValue");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedReadonlyValue.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = impl.cachedReadonlyValue() ? impl.cachedReadonlyValue()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
- castedThis->m_cachedReadonlyValue.set(exec->vm(), castedThis, result);
</del><ins>+ JSValue result = impl.cachedReadonlyValue() ? impl.cachedReadonlyValue()->deserialize(state, castedThis->globalObject(), 0) : jsNull();
+ castedThis->m_cachedReadonlyValue.set(state->vm(), castedThis, result);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestSerializedScriptValueInterfaceConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestSerializedScriptValueInterfaceConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestSerializedScriptValueInterfacePrototype* domObject = jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestSerializedScriptValueInterface::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestSerializedScriptValueInterface::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void setJSTestSerializedScriptValueInterfaceValue(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestSerializedScriptValueInterfaceValue(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestSerializedScriptValueInterface", "value");
</del><ins>+ reportDeprecatedSetterError(*state, "TestSerializedScriptValueInterface", "value");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestSerializedScriptValueInterface", "value");
</del><ins>+ throwSetterTypeError(*state, "TestSerializedScriptValueInterface", "value");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(exec, value, 0, 0);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(state, value, 0, 0);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setValue(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestSerializedScriptValueInterfaceCachedValue(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestSerializedScriptValueInterfaceCachedValue(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestSerializedScriptValueInterface* castedThis = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestSerializedScriptValueInterfacePrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestSerializedScriptValueInterface", "cachedValue");
</del><ins>+ reportDeprecatedSetterError(*state, "TestSerializedScriptValueInterface", "cachedValue");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestSerializedScriptValueInterface", "cachedValue");
</del><ins>+ throwSetterTypeError(*state, "TestSerializedScriptValueInterface", "cachedValue");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(exec, value, 0, 0);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(state, value, 0, 0);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setCachedValue(nativeValue);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfaceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestSerializedScriptValueInterface*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestSerializedScriptValueInterface& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestSerializedScriptValueInterface& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestSerializedScriptValueInterface*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -143,19 +143,19 @@
</span><span class="cx"> { "TestSubObj", DontDelete | ReadOnly, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructorTestSubObj), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
</span><span class="cx"> };
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::constructJSTestTypedefs(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::constructJSTestTypedefs(ExecState* state)
</ins><span class="cx"> {
</span><del>- auto* castedThis = jsCast<JSTestTypedefsConstructor*>(exec->callee());
- if (UNLIKELY(exec->argumentCount() < 2))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- String hello = exec->argument(0).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ auto* castedThis = jsCast<JSTestTypedefsConstructor*>(state->callee());
+ if (UNLIKELY(state->argumentCount() < 2))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ String hello = state->argument(0).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- if (!exec->argument(1).isObject())
- return throwArgumentMustBeFunctionError(*exec, 1, "testCallback", "TestTypedefs", nullptr);
- RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(exec->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ if (!state->argument(1).isObject())
+ return throwArgumentMustBeFunctionError(*state, 1, "testCallback", "TestTypedefs", nullptr);
+ RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> RefPtr<TestTypedefs> object = TestTypedefs::create(hello, testCallback);
</span><del>- return JSValue::encode(asObject(toJS(exec, castedThis->globalObject(), object.get())));
</del><ins>+ return JSValue::encode(asObject(toJS(state, castedThis->globalObject(), object.get())));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const ClassInfo JSTestTypedefsConstructor::s_info = { "TestTypedefsConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestTypedefsConstructor) };
</span><span class="lines">@@ -241,25 +241,25 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool JSTestTypedefs::getOwnPropertySlot(JSObject* object, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
</del><ins>+bool JSTestTypedefs::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot)
</ins><span class="cx"> {
</span><span class="cx"> auto* thisObject = jsCast<JSTestTypedefs*>(object);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(thisObject, info());
</span><del>- if (getStaticValueSlot<JSTestTypedefs, Base>(exec, JSTestTypedefsTable, thisObject, propertyName, slot))
</del><ins>+ if (getStaticValueSlot<JSTestTypedefs, Base>(state, JSTestTypedefsTable, thisObject, propertyName, slot))
</ins><span class="cx"> return true;
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsUnsignedLongLongAttr(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsUnsignedLongLongAttr(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "unsignedLongLongAttr");
- return throwGetterTypeError(*exec, "TestTypedefs", "unsignedLongLongAttr");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "unsignedLongLongAttr");
+ return throwGetterTypeError(*state, "TestTypedefs", "unsignedLongLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.unsignedLongLongAttr());
</span><span class="lines">@@ -267,62 +267,62 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsImmutableSerializedScriptValue(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsImmutableSerializedScriptValue(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "immutableSerializedScriptValue");
- return throwGetterTypeError(*exec, "TestTypedefs", "immutableSerializedScriptValue");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "immutableSerializedScriptValue");
+ return throwGetterTypeError(*state, "TestTypedefs", "immutableSerializedScriptValue");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = impl.immutableSerializedScriptValue() ? impl.immutableSerializedScriptValue()->deserialize(exec, castedThis->globalObject(), 0) : jsNull();
</del><ins>+ JSValue result = impl.immutableSerializedScriptValue() ? impl.immutableSerializedScriptValue()->deserialize(state, castedThis->globalObject(), 0) : jsNull();
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsConstructorTestSubObj(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsConstructorTestSubObj(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> auto* castedThis = jsCast<JSTestTypedefs*>(slotBase);
</span><del>- return JSValue::encode(JSTestSubObj::getConstructor(exec->vm(), castedThis->globalObject()));
</del><ins>+ return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsAttrWithGetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsAttrWithGetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "attrWithGetterException");
- return throwGetterTypeError(*exec, "TestTypedefs", "attrWithGetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "attrWithGetterException");
+ return throwGetterTypeError(*state, "TestTypedefs", "attrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithGetterException(ec));
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsAttrWithSetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsAttrWithSetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "attrWithSetterException");
- return throwGetterTypeError(*exec, "TestTypedefs", "attrWithSetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "attrWithSetterException");
+ return throwGetterTypeError(*state, "TestTypedefs", "attrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithSetterException());
</span><span class="lines">@@ -330,171 +330,171 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsStringAttrWithGetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsStringAttrWithGetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "stringAttrWithGetterException");
- return throwGetterTypeError(*exec, "TestTypedefs", "stringAttrWithGetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "stringAttrWithGetterException");
+ return throwGetterTypeError(*state, "TestTypedefs", "stringAttrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
- setDOMException(exec, ec);
</del><ins>+ JSValue result = jsStringWithCache(state, impl.stringAttrWithGetterException(ec));
+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsStringAttrWithSetterException(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsStringAttrWithSetterException(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "TestTypedefs", "stringAttrWithSetterException");
- return throwGetterTypeError(*exec, "TestTypedefs", "stringAttrWithSetterException");
</del><ins>+ return reportDeprecatedGetterError(*state, "TestTypedefs", "stringAttrWithSetterException");
+ return throwGetterTypeError(*state, "TestTypedefs", "stringAttrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.stringAttrWithSetterException());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.stringAttrWithSetterException());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsTestTypedefsConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsTestTypedefsConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSTestTypedefsPrototype* domObject = jsDynamicCast<JSTestTypedefsPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSTestTypedefs::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSTestTypedefs::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void setJSTestTypedefsUnsignedLongLongAttr(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsUnsignedLongLongAttr(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "unsignedLongLongAttr");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "unsignedLongLongAttr");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "unsignedLongLongAttr");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "unsignedLongLongAttr");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- unsigned long long nativeValue = toUInt64(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ unsigned long long nativeValue = toUInt64(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setUnsignedLongLongAttr(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestTypedefsImmutableSerializedScriptValue(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsImmutableSerializedScriptValue(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "immutableSerializedScriptValue");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "immutableSerializedScriptValue");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "immutableSerializedScriptValue");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "immutableSerializedScriptValue");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(exec, value, 0, 0);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ RefPtr<SerializedScriptValue> nativeValue = SerializedScriptValue::create(state, value, 0, 0);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setImmutableSerializedScriptValue(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestTypedefsAttrWithGetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsAttrWithGetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "attrWithGetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "attrWithGetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "attrWithGetterException");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "attrWithGetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttrWithGetterException(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestTypedefsAttrWithSetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsAttrWithSetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "attrWithSetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "attrWithSetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "attrWithSetterException");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "attrWithSetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- int nativeValue = toInt32(exec, value, NormalConversion);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ int nativeValue = toInt32(state, value, NormalConversion);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setAttrWithSetterException(nativeValue, ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestTypedefsStringAttrWithGetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsStringAttrWithGetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "stringAttrWithGetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "stringAttrWithGetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "stringAttrWithGetterException");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "stringAttrWithGetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStringAttrWithGetterException(nativeValue);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void setJSTestTypedefsStringAttrWithSetterException(ExecState* exec, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</del><ins>+void setJSTestTypedefsStringAttrWithSetterException(ExecState* state, JSObject* baseObject, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</ins><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span><span class="cx"> UNUSED_PARAM(baseObject);
</span><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSTestTypedefsPrototype*>(JSValue::decode(thisValue)))
</span><del>- reportDeprecatedSetterError(*exec, "TestTypedefs", "stringAttrWithSetterException");
</del><ins>+ reportDeprecatedSetterError(*state, "TestTypedefs", "stringAttrWithSetterException");
</ins><span class="cx"> else
</span><del>- throwSetterTypeError(*exec, "TestTypedefs", "stringAttrWithSetterException");
</del><ins>+ throwSetterTypeError(*state, "TestTypedefs", "stringAttrWithSetterException");
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- String nativeValue = value.toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String nativeValue = value.toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return;
</span><span class="cx"> impl.setStringAttrWithSetterException(nativeValue, ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><span class="lines">@@ -503,131 +503,131 @@
</span><span class="cx"> return getDOMConstructor<JSTestTypedefsConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFunc(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFunc(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "func");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "func");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 0) {
</span><span class="cx"> impl.func();
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- Vector<int> x = toNativeArray<int>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<int> x = toNativeArray<int>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.func(x);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionSetShadow(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionSetShadow(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "setShadow");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "setShadow");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 3))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- float width = exec->argument(0).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 3))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ float width = state->argument(0).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- float height = exec->argument(1).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ float height = state->argument(1).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- float blur = exec->argument(2).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ float blur = state->argument(2).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 3) {
</span><span class="cx"> impl.setShadow(width, height, blur);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- String color = exec->argument(3).toString(exec)->value(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ String color = state->argument(3).toString(state)->value(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (argsCount <= 4) {
</span><span class="cx"> impl.setShadow(width, height, blur, color);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- float alpha = exec->argument(4).toFloat(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ float alpha = state->argument(4).toFloat(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.setShadow(width, height, blur, color, alpha);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithSequenceArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithSequenceArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "methodWithSequenceArg");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "methodWithSequenceArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<RefPtr<SerializedScriptValue>> sequenceArg = (toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(exec, exec->argument(0), &JSSerializedScriptValue::toWrapped));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<RefPtr<SerializedScriptValue>> sequenceArg = (toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(state, state->argument(0), &JSSerializedScriptValue::toWrapped));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsNumber(impl.methodWithSequenceArg(sequenceArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionNullableArrayArg(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionNullableArrayArg(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "nullableArrayArg");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "nullableArrayArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<String> arrayArg = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<String> arrayArg = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> impl.nullableArrayArg(arrayArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFuncWithClamp(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFuncWithClamp(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "funcWithClamp");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "funcWithClamp");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> unsigned long long arg1 = 0;
</span><del>- double arg1NativeValue = exec->argument(0).toNumber(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ double arg1NativeValue = state->argument(0).toNumber(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> if (!std::isnan(arg1NativeValue))
</span><span class="cx"> arg1 = clampTo<unsigned long long>(arg1NativeValue);
</span><span class="cx">
</span><span class="cx">
</span><del>- size_t argsCount = exec->argumentCount();
</del><ins>+ size_t argsCount = state->argumentCount();
</ins><span class="cx"> if (argsCount <= 1) {
</span><span class="cx"> impl.funcWithClamp(arg1);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> unsigned long long arg2 = 0;
</span><del>- double arg2NativeValue = exec->argument(1).toNumber(exec);
- if (UNLIKELY(exec->hadException()))
</del><ins>+ double arg2NativeValue = state->argument(1).toNumber(state);
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx">
</span><span class="cx"> if (!std::isnan(arg2NativeValue))
</span><span class="lines">@@ -637,86 +637,86 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionImmutablePointFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionImmutablePointFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "immutablePointFunction");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "immutablePointFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "stringArrayFunction");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "stringArrayFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- Vector<String> values = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<String> values = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</del><ins>+ JSValue result = jsArray(state, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction2(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction2(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "stringArrayFunction2");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "stringArrayFunction2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
</ins><span class="cx"> ExceptionCode ec = 0;
</span><del>- Vector<String> values = toNativeArray<String>(exec, exec->argument(0));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ Vector<String> values = toNativeArray<String>(state, state->argument(0));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction2(values, ec));
</del><ins>+ JSValue result = jsArray(state, castedThis->globalObject(), impl.stringArrayFunction2(values, ec));
</ins><span class="cx">
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "callWithSequenceThatRequiresInclude");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "callWithSequenceThatRequiresInclude");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- if (UNLIKELY(exec->argumentCount() < 1))
- return throwVMError(exec, createNotEnoughArgumentsError(exec));
- Vector<RefPtr<TestEventTarget>> sequenceArg = (toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(exec, exec->argument(0), &JSTestEventTarget::toWrapped));
- if (UNLIKELY(exec->hadException()))
</del><ins>+ if (UNLIKELY(state->argumentCount() < 1))
+ return throwVMError(state, createNotEnoughArgumentsError(state));
+ Vector<RefPtr<TestEventTarget>> sequenceArg = (toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(state, state->argument(0), &JSTestEventTarget::toWrapped));
+ if (UNLIKELY(state->hadException()))
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> JSValue result = jsBoolean(impl.callWithSequenceThatRequiresInclude(sequenceArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithException(ExecState* exec)
</del><ins>+EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithException(ExecState* state)
</ins><span class="cx"> {
</span><del>- JSValue thisValue = exec->thisValue();
</del><ins>+ JSValue thisValue = state->thisValue();
</ins><span class="cx"> JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*exec, "TestTypedefs", "methodWithException");
</del><ins>+ return throwThisTypeError(*state, "TestTypedefs", "methodWithException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> auto& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> impl.methodWithException(ec);
</span><del>- setDOMException(exec, ec);
</del><ins>+ setDOMException(state, ec);
</ins><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestTypedefsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestTypedefs*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestTypedefs& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestTypedefs& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, TestTypedefs*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSattributecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -143,29 +143,29 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsattributeReadonly(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</del><ins>+EncodedJSValue jsattributeReadonly(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName)
</ins><span class="cx"> {
</span><del>- UNUSED_PARAM(exec);
</del><ins>+ UNUSED_PARAM(state);
</ins><span class="cx"> UNUSED_PARAM(slotBase);
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSattribute* castedThis = jsDynamicCast<JSattribute*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> if (jsDynamicCast<JSattributePrototype*>(slotBase))
</span><del>- return reportDeprecatedGetterError(*exec, "attribute", "readonly");
- return throwGetterTypeError(*exec, "attribute", "readonly");
</del><ins>+ return reportDeprecatedGetterError(*state, "attribute", "readonly");
+ return throwGetterTypeError(*state, "attribute", "readonly");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->impl();
</span><del>- JSValue result = jsStringWithCache(exec, impl.readonly());
</del><ins>+ JSValue result = jsStringWithCache(state, impl.readonly());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-EncodedJSValue jsattributeConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsattributeConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSattributePrototype* domObject = jsDynamicCast<JSattributePrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSattribute::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSattribute::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSattribute::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSattributeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, attribute*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, attribute& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, attribute& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, attribute*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSreadonlycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -139,12 +139,12 @@
</span><span class="cx"> releaseImpl();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-EncodedJSValue jsreadonlyConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName)
</del><ins>+EncodedJSValue jsreadonlyConstructor(ExecState* state, JSObject* baseValue, EncodedJSValue, PropertyName)
</ins><span class="cx"> {
</span><span class="cx"> JSreadonlyPrototype* domObject = jsDynamicCast<JSreadonlyPrototype*>(baseValue);
</span><span class="cx"> if (!domObject)
</span><del>- return throwVMTypeError(exec);
- return JSValue::encode(JSreadonly::getConstructor(exec->vm(), domObject->globalObject()));
</del><ins>+ return throwVMTypeError(state);
+ return JSValue::encode(JSreadonly::getConstructor(state->vm(), domObject->globalObject()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValue JSreadonly::getConstructor(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSreadonlyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h (190027 => 190028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h        2015-09-20 16:37:47 UTC (rev 190027)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h        2015-09-20 16:41:01 UTC (rev 190028)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, readonly*);
</span><del>-inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, readonly& impl) { return toJS(exec, globalObject, &impl); }
</del><ins>+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, readonly& impl) { return toJS(state, globalObject, &impl); }
</ins><span class="cx"> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, readonly*);
</span><span class="cx">
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>