<!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>[165606] 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/165606">165606</a></dd>
<dt>Author</dt> <dd>barraclough@apple.com</dd>
<dt>Date</dt> <dd>2014-03-14 01:15:28 -0700 (Fri, 14 Mar 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Reduce memory use for static property maps
https://bugs.webkit.org/show_bug.cgi?id=129986
Unreviewed Windows build fix / update bindings test results following <a href="http://trac.webkit.org/projects/webkit/changeset/165603">r165603</a>.
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHashTable):
* bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
* bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
* bindings/scripts/test/JS/JSTestEventConstructor.cpp:
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::jsTestEventTargetPrototypeFunctionItem):
(WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
* bindings/scripts/test/JS/JSTestException.cpp:
* bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
* bindings/scripts/test/JS/JSTestNode.cpp:
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjAttrWithGetterException):
(WebCore::jsTestObjStringAttrWithGetterException):
(WebCore::jsTestObjWithScriptStateAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::jsTestObjNullableStringValue):
(WebCore::jsTestObjPrototypeFunctionByteMethod):
(WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionOctetMethod):
(WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionLongMethod):
(WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethod):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
(WebCore::jsTestObjPrototypeFunctionConditionalMethod1):
(WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
(WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
(WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
(WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
(WebCore::jsTestObjPrototypeFunctionMutablePointFunction):
(WebCore::jsTestObjPrototypeFunctionImmutablePointFunction):
(WebCore::jsTestObjPrototypeFunctionStrictFunction):
(WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence):
(WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray):
* bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
* bindings/scripts/test/JS/JSTestTypedefs.cpp:
(WebCore::jsTestTypedefsAttrWithGetterException):
(WebCore::jsTestTypedefsStringAttrWithGetterException):
(WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
(WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2):
(WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
* bindings/scripts/test/JS/JSattribute.cpp:
* bindings/scripts/test/JS/JSreadonly.cpp:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</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="#trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestExceptioncpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachablecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNodecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSattributecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSreadonlycpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/ChangeLog        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -1,3 +1,70 @@
</span><ins>+2014-03-14 Gavin Barraclough <barraclough@apple.com>
+
+ Reduce memory use for static property maps
+ https://bugs.webkit.org/show_bug.cgi?id=129986
+
+ Unreviewed Windows build fix / update bindings test results following r165603.
+
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateHashTable):
+ * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
+ * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
+ * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
+ * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+ (WebCore::jsTestEventTargetPrototypeFunctionItem):
+ (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
+ * bindings/scripts/test/JS/JSTestException.cpp:
+ * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
+ * bindings/scripts/test/JS/JSTestInterface.cpp:
+ (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
+ (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
+ * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+ * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+ * bindings/scripts/test/JS/JSTestNode.cpp:
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ (WebCore::jsTestObjAttrWithGetterException):
+ (WebCore::jsTestObjStringAttrWithGetterException):
+ (WebCore::jsTestObjWithScriptStateAttributeRaises):
+ (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
+ (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+ (WebCore::jsTestObjNullableStringValue):
+ (WebCore::jsTestObjPrototypeFunctionByteMethod):
+ (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionOctetMethod):
+ (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionLongMethod):
+ (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionObjMethod):
+ (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
+ (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
+ (WebCore::jsTestObjPrototypeFunctionConditionalMethod1):
+ (WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
+ (WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
+ (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
+ (WebCore::jsTestObjPrototypeFunctionMutablePointFunction):
+ (WebCore::jsTestObjPrototypeFunctionImmutablePointFunction):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunction):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray):
+ * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+ * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
+ * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+ (WebCore::jsTestTypedefsAttrWithGetterException):
+ (WebCore::jsTestTypedefsStringAttrWithGetterException):
+ (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
+ (WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2):
+ (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
+ * bindings/scripts/test/JS/JSattribute.cpp:
+ * bindings/scripts/test/JS/JSreadonly.cpp:
+
</ins><span class="cx"> 2014-03-14 Jinwoo Song <jinwoo7.song@samsung.com>
</span><span class="cx">
</span><span class="cx"> Use override keyword in BatteryManager
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -4024,11 +4024,6 @@
</span><span class="cx"> $maxDepth = $depth if ($depth > $maxDepth);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- push(@implContent, "#if COMPILER(MSVC)\n");
- push(@implContent, "#pragma warning(push)\n");
- push(@implContent, "#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning\n");
- push(@implContent, "#endif\n");
-
</del><span class="cx"> # Start outputing the hashtables
</span><span class="cx"> my $nameEntries = "${name}Values";
</span><span class="cx"> $nameEntries =~ s/:/_/g;
</span><span class="lines">@@ -4065,7 +4060,7 @@
</span><span class="cx">
</span><span class="cx"> # Dump the hash table
</span><span class="cx"> my $packedSize = scalar @{$keys};
</span><del>- push(@implContent, "\nstatic const HashTableValue $nameEntries\[$packedSize\] =\n\{\n");
</del><ins>+ push(@implContent, "\nstatic const HashTableValue $nameEntries\[\] =\n\{\n");
</ins><span class="cx"> $i = 0;
</span><span class="cx"> foreach my $key (@{$keys}) {
</span><span class="cx"> my $conditional;
</span><span class="lines">@@ -4096,13 +4091,10 @@
</span><span class="cx"> ++$i;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ push(@implContent, " { 0, 0, NoIntrinsic, 0, 0 }\n") if (!$packedSize);
</ins><span class="cx"> push(@implContent, "};\n\n");
</span><span class="cx"> my $compactSizeMask = $numEntries - 1;
</span><span class="cx"> push(@implContent, "static const HashTable $name = { $packedSize, $compactSizeMask, $hasSetter, $nameEntries, 0, $nameIndex };\n");
</span><del>-
- push(@implContent, "#if COMPILER(MSVC)\n");
- push(@implContent, "#pragma warning(pop)\n");
- push(@implContent, "#endif\n");
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> sub WriteData
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestActiveDOMObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -33,10 +33,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestActiveDOMObjectTableIndex[4] = {
</span><span class="lines">@@ -47,20 +43,13 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestActiveDOMObjectTableValues[2] =
</del><ins>+static const HashTableValue JSTestActiveDOMObjectTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "excitingAttr", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectExcitingAttr), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestActiveDOMObjectTable = { 2, 3, true, JSTestActiveDOMObjectTableValues, 0, JSTestActiveDOMObjectTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestActiveDOMObjectConstructorTableIndex[1] = {
</span><span class="lines">@@ -68,14 +57,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestActiveDOMObjectConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestActiveDOMObjectConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestActiveDOMObjectConstructorTable = { 0, 0, false, JSTestActiveDOMObjectConstructorTableValues, 0, JSTestActiveDOMObjectConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestActiveDOMObjectConstructor::s_info = { "TestActiveDOMObjectConstructor", &Base::s_info, &JSTestActiveDOMObjectConstructorTable, 0, CREATE_METHOD_TABLE(JSTestActiveDOMObjectConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestActiveDOMObjectConstructor::JSTestActiveDOMObjectConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -96,10 +83,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestActiveDOMObjectConstructor, JSDOMWrapper>(exec, JSTestActiveDOMObjectConstructorTable, jsCast<JSTestActiveDOMObjectConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestActiveDOMObjectPrototypeTableIndex[4] = {
</span><span class="lines">@@ -110,16 +93,13 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestActiveDOMObjectPrototypeTableValues[2] =
</del><ins>+static const HashTableValue JSTestActiveDOMObjectPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "excitingFunction", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionExcitingFunction), (intptr_t) (1) },
</span><span class="cx"> { "postMessage", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionPostMessage), (intptr_t) (1) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestActiveDOMObjectPrototypeTable = { 2, 3, false, JSTestActiveDOMObjectPrototypeTableValues, 0, JSTestActiveDOMObjectPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestActiveDOMObjectPrototype::s_info = { "TestActiveDOMObjectPrototype", &Base::s_info, &JSTestActiveDOMObjectPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestActiveDOMObjectPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestActiveDOMObjectPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestCustomNamedGettercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -32,10 +32,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestCustomNamedGetterTableIndex[2] = {
</span><span class="lines">@@ -44,19 +40,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestCustomNamedGetterTableValues[1] =
</del><ins>+static const HashTableValue JSTestCustomNamedGetterTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestCustomNamedGetterConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestCustomNamedGetterTable = { 1, 1, true, JSTestCustomNamedGetterTableValues, 0, JSTestCustomNamedGetterTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestCustomNamedGetterConstructorTableIndex[1] = {
</span><span class="lines">@@ -64,14 +53,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestCustomNamedGetterConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestCustomNamedGetterConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestCustomNamedGetterConstructorTable = { 0, 0, false, JSTestCustomNamedGetterConstructorTableValues, 0, JSTestCustomNamedGetterConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestCustomNamedGetterConstructor::s_info = { "TestCustomNamedGetterConstructor", &Base::s_info, &JSTestCustomNamedGetterConstructorTable, 0, CREATE_METHOD_TABLE(JSTestCustomNamedGetterConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -92,10 +79,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestCustomNamedGetterConstructor, JSDOMWrapper>(exec, JSTestCustomNamedGetterConstructorTable, jsCast<JSTestCustomNamedGetterConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestCustomNamedGetterPrototypeTableIndex[2] = {
</span><span class="lines">@@ -104,15 +87,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestCustomNamedGetterPrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestCustomNamedGetterPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "anotherFunction", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestCustomNamedGetterPrototypeFunctionAnotherFunction), (intptr_t) (1) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestCustomNamedGetterPrototypeTable = { 1, 1, false, JSTestCustomNamedGetterPrototypeTableValues, 0, JSTestCustomNamedGetterPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestCustomNamedGetterPrototype::s_info = { "TestCustomNamedGetterPrototype", &Base::s_info, &JSTestCustomNamedGetterPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestCustomNamedGetterPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestCustomNamedGetterPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -33,10 +33,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestEventConstructorConstructorTableIndex[1] = {
</span><span class="lines">@@ -44,14 +40,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestEventConstructorConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestEventConstructorConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestEventConstructorConstructorTable = { 0, 0, false, JSTestEventConstructorConstructorTableValues, 0, JSTestEventConstructorConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> EncodedJSValue JSC_HOST_CALL JSTestEventConstructorConstructor::constructJSTestEventConstructor(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx"> JSTestEventConstructorConstructor* jsConstructor = jsCast<JSTestEventConstructorConstructor*>(exec->callee());
</span><span class="lines">@@ -116,10 +110,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestEventConstructorPrototypeTableIndex[9] = {
</span><span class="lines">@@ -135,7 +125,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestEventConstructorPrototypeTableValues[3] =
</del><ins>+static const HashTableValue JSTestEventConstructorPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "attr1", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorAttr1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="lines">@@ -143,9 +133,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestEventConstructorPrototypeTable = { 3, 7, true, JSTestEventConstructorPrototypeTableValues, 0, JSTestEventConstructorPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestEventConstructorPrototype::s_info = { "TestEventConstructorPrototype", &Base::s_info, &JSTestEventConstructorPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestEventConstructorPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestEventConstructorPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestEventTargetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -38,10 +38,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestEventTargetTableIndex[2] = {
</span><span class="lines">@@ -50,19 +46,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestEventTargetTableValues[1] =
</del><ins>+static const HashTableValue JSTestEventTargetTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventTargetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestEventTargetTable = { 1, 1, true, JSTestEventTargetTableValues, 0, JSTestEventTargetTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestEventTargetConstructorTableIndex[1] = {
</span><span class="lines">@@ -70,14 +59,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestEventTargetConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestEventTargetConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestEventTargetConstructorTable = { 0, 0, false, JSTestEventTargetConstructorTableValues, 0, JSTestEventTargetConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestEventTargetConstructor::s_info = { "TestEventTargetConstructor", &Base::s_info, &JSTestEventTargetConstructorTable, 0, CREATE_METHOD_TABLE(JSTestEventTargetConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestEventTargetConstructor::JSTestEventTargetConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -98,10 +85,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestEventTargetConstructor, JSDOMWrapper>(exec, JSTestEventTargetConstructorTable, jsCast<JSTestEventTargetConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestEventTargetPrototypeTableIndex[8] = {
</span><span class="lines">@@ -116,7 +99,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestEventTargetPrototypeTableValues[4] =
</del><ins>+static const HashTableValue JSTestEventTargetPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "item", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionItem), (intptr_t) (1) },
</span><span class="cx"> { "addEventListener", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionAddEventListener), (intptr_t) (2) },
</span><span class="lines">@@ -125,9 +108,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestEventTargetPrototypeTable = { 4, 7, false, JSTestEventTargetPrototypeTableValues, 0, JSTestEventTargetPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestEventTargetPrototype::s_info = { "TestEventTargetPrototype", &Base::s_info, &JSTestEventTargetPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestEventTargetPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestEventTargetPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -251,8 +231,7 @@
</span><span class="cx"> }
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.item(index)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.item(index)));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -300,8 +279,8 @@
</span><span class="cx"> Event* evt(toEvent(exec->argument(0)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = jsBoolean(impl.dispatchEvent(evt, ec));
</ins><span class="cx">
</span><del>- JSC::JSValue result = jsBoolean(impl.dispatchEvent(evt, ec));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</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 (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestExceptionTableIndex[2] = {
</span><span class="lines">@@ -43,19 +39,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestExceptionTableValues[1] =
</del><ins>+static const HashTableValue JSTestExceptionTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "name", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionName), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestExceptionTable = { 1, 1, true, JSTestExceptionTableValues, 0, JSTestExceptionTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestExceptionConstructorTableIndex[1] = {
</span><span class="lines">@@ -63,14 +52,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestExceptionConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestExceptionConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestExceptionConstructorTable = { 0, 0, false, JSTestExceptionConstructorTableValues, 0, JSTestExceptionConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestExceptionConstructor::s_info = { "TestExceptionConstructor", &Base::s_info, &JSTestExceptionConstructorTable, 0, CREATE_METHOD_TABLE(JSTestExceptionConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestExceptionConstructor::JSTestExceptionConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -91,10 +78,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestExceptionConstructor, JSDOMWrapper>(exec, JSTestExceptionConstructorTable, jsCast<JSTestExceptionConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestExceptionPrototypeTableIndex[2] = {
</span><span class="lines">@@ -103,15 +86,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestExceptionPrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestExceptionPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestExceptionPrototypeTable = { 1, 1, true, JSTestExceptionPrototypeTableValues, 0, JSTestExceptionPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestExceptionPrototype::s_info = { "TestExceptionPrototype", &Base::s_info, &JSTestExceptionPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestExceptionPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestExceptionPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestGenerateIsReachablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -28,10 +28,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestGenerateIsReachableConstructorTableIndex[1] = {
</span><span class="lines">@@ -39,14 +35,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestGenerateIsReachableConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestGenerateIsReachableConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestGenerateIsReachableConstructorTable = { 0, 0, false, JSTestGenerateIsReachableConstructorTableValues, 0, JSTestGenerateIsReachableConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestGenerateIsReachableConstructor::s_info = { "TestGenerateIsReachableConstructor", &Base::s_info, &JSTestGenerateIsReachableConstructorTable, 0, CREATE_METHOD_TABLE(JSTestGenerateIsReachableConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestGenerateIsReachableConstructor::JSTestGenerateIsReachableConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -67,10 +61,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestGenerateIsReachableConstructor, JSDOMWrapper>(exec, JSTestGenerateIsReachableConstructorTable, jsCast<JSTestGenerateIsReachableConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestGenerateIsReachablePrototypeTableIndex[2] = {
</span><span class="lines">@@ -79,15 +69,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestGenerateIsReachablePrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestGenerateIsReachablePrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGenerateIsReachableConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestGenerateIsReachablePrototypeTable = { 1, 1, true, JSTestGenerateIsReachablePrototypeTableValues, 0, JSTestGenerateIsReachablePrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestGenerateIsReachablePrototype::s_info = { "TestGenerateIsReachablePrototype", &Base::s_info, &JSTestGenerateIsReachablePrototypeTable, 0, CREATE_METHOD_TABLE(JSTestGenerateIsReachablePrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestGenerateIsReachablePrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -48,10 +48,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestInterfaceTableIndex[4] = {
</span><span class="lines">@@ -62,7 +58,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestInterfaceTableValues[2] =
</del><ins>+static const HashTableValue JSTestInterfaceTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><span class="cx"> { "implementsStr3", DontDelete | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceImplementsStr3), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestInterfaceImplementsStr3) },
</span><span class="lines">@@ -77,13 +73,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestInterfaceTable = { 2, 3, true, JSTestInterfaceTableValues, 0, JSTestInterfaceTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestInterfaceConstructorTableIndex[11] = {
</span><span class="lines">@@ -101,7 +90,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestInterfaceConstructorTableValues[10] =
</del><ins>+static const HashTableValue JSTestInterfaceConstructorTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><span class="cx"> { "IMPLEMENTSCONSTANT1", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceIMPLEMENTSCONSTANT1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="lines">@@ -156,9 +145,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestInterfaceConstructorTable = { 10, 7, true, JSTestInterfaceConstructorTableValues, 0, JSTestInterfaceConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx">
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><span class="cx"> COMPILE_ASSERT(1 == TestInterface::IMPLEMENTSCONSTANT1, TestInterfaceEnumIMPLEMENTSCONSTANT1IsWrongUseDoNotCheckConstants);
</span><span class="lines">@@ -224,10 +210,6 @@
</span><span class="cx"> }
</span><span class="cx"> #endif // ENABLE(TEST_INTERFACE)
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestInterfacePrototypeTableIndex[65] = {
</span><span class="lines">@@ -299,7 +281,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestInterfacePrototypeTableValues[17] =
</del><ins>+static const HashTableValue JSTestInterfacePrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> #if ENABLE(Condition22) || ENABLE(Condition23)
</span><span class="lines">@@ -385,9 +367,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestInterfacePrototypeTable = { 17, 63, true, JSTestInterfacePrototypeTableValues, 0, JSTestInterfacePrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestInterfacePrototype::s_info = { "TestInterfacePrototype", &Base::s_info, &JSTestInterfacePrototypeTable, 0, CREATE_METHOD_TABLE(JSTestInterfacePrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestInterfacePrototype::self(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -851,8 +830,8 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(1)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -917,8 +896,8 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(1)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalMethod2(&impl, scriptContext, strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(TestSupplemental::supplementalMethod2(&impl, scriptContext, strArg, objArg, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</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 (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -32,10 +32,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestMediaQueryListListenerConstructorTableIndex[1] = {
</span><span class="lines">@@ -43,14 +39,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestMediaQueryListListenerConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestMediaQueryListListenerConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestMediaQueryListListenerConstructorTable = { 0, 0, false, JSTestMediaQueryListListenerConstructorTableValues, 0, JSTestMediaQueryListListenerConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestMediaQueryListListenerConstructor::s_info = { "TestMediaQueryListListenerConstructor", &Base::s_info, &JSTestMediaQueryListListenerConstructorTable, 0, CREATE_METHOD_TABLE(JSTestMediaQueryListListenerConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -71,10 +65,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestMediaQueryListListenerConstructor, JSDOMWrapper>(exec, JSTestMediaQueryListListenerConstructorTable, jsCast<JSTestMediaQueryListListenerConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestMediaQueryListListenerPrototypeTableIndex[4] = {
</span><span class="lines">@@ -85,16 +75,13 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestMediaQueryListListenerPrototypeTableValues[2] =
</del><ins>+static const HashTableValue JSTestMediaQueryListListenerPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestMediaQueryListListenerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "method", JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestMediaQueryListListenerPrototypeFunctionMethod), (intptr_t) (1) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestMediaQueryListListenerPrototypeTable = { 2, 3, true, JSTestMediaQueryListListenerPrototypeTableValues, 0, JSTestMediaQueryListListenerPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestMediaQueryListListenerPrototype::s_info = { "TestMediaQueryListListenerPrototype", &Base::s_info, &JSTestMediaQueryListListenerPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestMediaQueryListListenerPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestMediaQueryListListenerPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestNamedConstructorConstructorTableIndex[1] = {
</span><span class="lines">@@ -42,14 +38,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestNamedConstructorConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestNamedConstructorConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestNamedConstructorConstructorTable = { 0, 0, false, JSTestNamedConstructorConstructorTableValues, 0, JSTestNamedConstructorConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestNamedConstructorConstructor::s_info = { "TestNamedConstructorConstructor", &Base::s_info, &JSTestNamedConstructorConstructorTable, 0, CREATE_METHOD_TABLE(JSTestNamedConstructorConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestNamedConstructorConstructor::JSTestNamedConstructorConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -114,10 +108,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestNamedConstructorPrototypeTableIndex[2] = {
</span><span class="lines">@@ -126,15 +116,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestNamedConstructorPrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestNamedConstructorPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNamedConstructorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestNamedConstructorPrototypeTable = { 1, 1, true, JSTestNamedConstructorPrototypeTableValues, 0, JSTestNamedConstructorPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestNamedConstructorPrototype::s_info = { "TestNamedConstructorPrototype", &Base::s_info, &JSTestNamedConstructorPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestNamedConstructorPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestNamedConstructorPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestNodeConstructorTableIndex[1] = {
</span><span class="lines">@@ -42,14 +38,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestNodeConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestNodeConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestNodeConstructorTable = { 0, 0, false, JSTestNodeConstructorTableValues, 0, JSTestNodeConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> EncodedJSValue JSC_HOST_CALL JSTestNodeConstructor::constructJSTestNode(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx"> JSTestNodeConstructor* castedThis = jsCast<JSTestNodeConstructor*>(exec->callee());
</span><span class="lines">@@ -83,10 +77,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestNodePrototypeTableIndex[2] = {
</span><span class="lines">@@ -95,15 +85,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestNodePrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestNodePrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestNodePrototypeTable = { 1, 1, true, JSTestNodePrototypeTableValues, 0, JSTestNodePrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestNodePrototype::s_info = { "TestNodePrototype", &Base::s_info, &JSTestNodePrototypeTable, 0, CREATE_METHOD_TABLE(JSTestNodePrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestNodePrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -74,10 +74,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestObjTableIndex[17] = {
</span><span class="lines">@@ -101,7 +97,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestObjTableValues[6] =
</del><ins>+static const HashTableValue JSTestObjTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "TestSubObjEnabledBySetting", DontEnum, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjTestSubObjEnabledBySettingConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjTestSubObjEnabledBySettingConstructor) },
</span><span class="cx"> { "customAttr", DontDelete | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCustomAttr), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjCustomAttr) },
</span><span class="lines">@@ -124,13 +120,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestObjTable = { 6, 15, true, JSTestObjTableValues, 0, JSTestObjTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestObjConstructorTableIndex[39] = {
</span><span class="lines">@@ -176,7 +165,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestObjConstructorTableValues[23] =
</del><ins>+static const HashTableValue JSTestObjConstructorTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> #if ENABLE(Condition1)
</span><span class="cx"> { "CONDITIONAL_CONST", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONDITIONAL_CONST), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="lines">@@ -212,9 +201,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestObjConstructorTable = { 23, 31, true, JSTestObjConstructorTableValues, 0, JSTestObjConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx">
</span><span class="cx"> #if ENABLE(Condition1)
</span><span class="cx"> COMPILE_ASSERT(0 == TestObj::CONDITIONAL_CONST, TestObjEnumCONDITIONAL_CONSTIsWrongUseDoNotCheckConstants);
</span><span class="lines">@@ -271,10 +257,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestObjPrototypeTableIndex[530] = {
</span><span class="lines">@@ -811,7 +793,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestObjPrototypeTableValues[136] =
</del><ins>+static const HashTableValue JSTestObjPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "readOnlyLongAttr", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyLongAttr), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="lines">@@ -980,9 +962,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestObjPrototypeTable = { 136, 511, true, JSTestObjPrototypeTableValues, 0, JSTestObjPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestObjPrototype::s_info = { "TestObjectPrototype", &Base::s_info, &JSTestObjPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestObjPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestObjPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -1579,7 +1558,7 @@
</span><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = jsNumber(impl.attrWithGetterException(ec));
</del><ins>+ JSValue result = jsNumber(impl.attrWithGetterException(ec));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1618,7 +1597,7 @@
</span><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
</del><ins>+ JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1712,7 +1691,7 @@
</span><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateAttributeRaises(exec, ec)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateAttributeRaises(exec, ec)));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1735,7 +1714,7 @@
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1779,7 +1758,7 @@
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(exec, scriptContext, ec)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(exec, scriptContext, ec)));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -2298,7 +2277,7 @@
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> bool isNull = false;
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>- JSC::JSValue result = jsNumber(impl.nullableStringValue(isNull, ec));
</del><ins>+ JSValue result = jsNumber(impl.nullableStringValue(isNull, ec));
</ins><span class="cx"> if (isNull)
</span><span class="cx"> return JSValue::encode(jsNull());
</span><span class="cx"> setDOMException(exec, ec);
</span><span class="lines">@@ -3313,8 +3292,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = jsNumber(impl.byteMethod());
</del><ins>+ JSValue result = jsNumber(impl.byteMethod());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3337,8 +3315,7 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(2)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsNumber(impl.byteMethodWithArgs(byteArg, strArg, objArg));
</del><ins>+ JSValue result = jsNumber(impl.byteMethodWithArgs(byteArg, strArg, objArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3350,8 +3327,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = jsNumber(impl.octetMethod());
</del><ins>+ JSValue result = jsNumber(impl.octetMethod());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3374,8 +3350,7 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(2)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsNumber(impl.octetMethodWithArgs(octetArg, strArg, objArg));
</del><ins>+ JSValue result = jsNumber(impl.octetMethodWithArgs(octetArg, strArg, objArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3387,8 +3362,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = jsNumber(impl.longMethod());
</del><ins>+ JSValue result = jsNumber(impl.longMethod());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3411,8 +3385,7 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(2)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsNumber(impl.longMethodWithArgs(longArg, strArg, objArg));
</del><ins>+ JSValue result = jsNumber(impl.longMethodWithArgs(longArg, strArg, objArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3424,8 +3397,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.objMethod()));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.objMethod()));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3448,8 +3420,7 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(2)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.objMethodWithArgs(longArg, strArg, objArg)));
</del><ins>+ JSValue result = toJS(exec, 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><span class="lines">@@ -3483,8 +3454,7 @@
</span><span class="cx"> int longArg(toInt32(exec, exec->argument(0), NormalConversion));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl.methodReturningSequence(longArg));
</del><ins>+ JSValue result = jsArray(exec, castedThis->globalObject(), impl.methodReturningSequence(longArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3524,8 +3494,8 @@
</span><span class="cx"> TestObj* objArg(toTestObj(exec->argument(1)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.methodThatRequiresAllArgsAndThrows(strArg, objArg, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.methodThatRequiresAllArgsAndThrows(strArg, objArg, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -3651,8 +3621,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObj(exec)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObj(exec)));
</ins><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="lines">@@ -3681,8 +3650,8 @@
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><span class="cx"> ExceptionCode ec = 0;
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObjException(exec, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptStateObjException(exec, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -3731,8 +3700,8 @@
</span><span class="cx"> ScriptExecutionContext* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(exec, scriptContext, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(exec, scriptContext, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -3750,8 +3719,7 @@
</span><span class="cx"> ScriptExecutionContext* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(exec, scriptContext)));
</del><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(exec, scriptContext)));
</ins><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> return JSValue::encode(result);
</span><span class="lines">@@ -3993,8 +3961,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = jsStringWithCache(exec, impl.conditionalMethod1());
</del><ins>+ JSValue result = jsStringWithCache(exec, impl.conditionalMethod1());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -4273,16 +4240,14 @@
</span><span class="cx">
</span><span class="cx"> size_t argsCount = exec->argumentCount();
</span><span class="cx"> if (argsCount <= 0) {
</span><del>-
- JSC::JSValue result = jsNumber(TestObj::classMethodWithOptional());
</del><ins>+ JSValue result = jsNumber(TestObj::classMethodWithOptional());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int arg(toInt32(exec, exec->argument(0), NormalConversion));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsNumber(TestObj::classMethodWithOptional(arg));
</del><ins>+ JSValue result = jsNumber(TestObj::classMethodWithOptional(arg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -4401,8 +4366,8 @@
</span><span class="cx"> Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</ins><span class="cx">
</span><del>- JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4421,8 +4386,8 @@
</span><span class="cx"> RefPtr<DOMStringList> values(toDOMStringList(exec, exec->argument(0)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.domStringListFunction(values, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.domStringListFunction(values, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4438,8 +4403,8 @@
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> if (!shouldAllowAccessToNode(exec, impl.getSVGDocument(ec)))
</span><span class="cx"> return JSValue::encode(jsNull());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.getSVGDocument(ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.getSVGDocument(ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4520,8 +4485,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.mutablePointFunction())));
</del><ins>+ JSValue result = toJS(exec, 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><span class="lines">@@ -4533,8 +4497,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> TestObj& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</del><ins>+ JSValue result = toJS(exec, 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><span class="lines">@@ -4570,8 +4533,8 @@
</span><span class="cx"> int b(toInt32(exec, exec->argument(2), NormalConversion));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunction(str, a, b, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunction(str, a, b, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4595,8 +4558,8 @@
</span><span class="cx"> Vector<unsigned> a(toNativeArray<unsigned>(exec, exec->argument(1)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithSequence(objArg, a, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithSequence(objArg, a, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4620,8 +4583,8 @@
</span><span class="cx"> Vector<int> array(toNativeArray<int>(exec, exec->argument(1)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithArray(objArg, array, ec)));
</ins><span class="cx">
</span><del>- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.strictFunctionWithArray(objArg, array, ec)));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -32,10 +32,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestOverloadedConstructorsConstructorTableIndex[1] = {
</span><span class="lines">@@ -43,14 +39,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestOverloadedConstructorsConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestOverloadedConstructorsConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestOverloadedConstructorsConstructorTable = { 0, 0, false, JSTestOverloadedConstructorsConstructorTableValues, 0, JSTestOverloadedConstructorsConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx"> JSTestOverloadedConstructorsConstructor* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
</span><span class="lines">@@ -142,10 +136,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestOverloadedConstructorsPrototypeTableIndex[2] = {
</span><span class="lines">@@ -154,15 +144,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestOverloadedConstructorsPrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSTestOverloadedConstructorsPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestOverloadedConstructorsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestOverloadedConstructorsPrototypeTable = { 1, 1, true, JSTestOverloadedConstructorsPrototypeTableValues, 0, JSTestOverloadedConstructorsPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestOverloadedConstructorsPrototype::s_info = { "TestOverloadedConstructorsPrototype", &Base::s_info, &JSTestOverloadedConstructorsPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestOverloadedConstructorsPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestOverloadedConstructorsPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -36,10 +36,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestSerializedScriptValueInterfaceConstructorTableIndex[1] = {
</span><span class="lines">@@ -47,14 +43,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestSerializedScriptValueInterfaceConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSTestSerializedScriptValueInterfaceConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestSerializedScriptValueInterfaceConstructorTable = { 0, 0, false, JSTestSerializedScriptValueInterfaceConstructorTableValues, 0, JSTestSerializedScriptValueInterfaceConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestSerializedScriptValueInterfaceConstructor::s_info = { "TestSerializedScriptValueInterfaceConstructor", &Base::s_info, &JSTestSerializedScriptValueInterfaceConstructorTable, 0, CREATE_METHOD_TABLE(JSTestSerializedScriptValueInterfaceConstructor) };
</span><span class="cx">
</span><span class="cx"> JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -75,10 +69,6 @@
</span><span class="cx"> return getStaticValueSlot<JSTestSerializedScriptValueInterfaceConstructor, JSDOMWrapper>(exec, JSTestSerializedScriptValueInterfaceConstructorTable, jsCast<JSTestSerializedScriptValueInterfaceConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestSerializedScriptValueInterfacePrototypeTableIndex[17] = {
</span><span class="lines">@@ -102,7 +92,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestSerializedScriptValueInterfacePrototypeTableValues[6] =
</del><ins>+static const HashTableValue JSTestSerializedScriptValueInterfacePrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "value", DontDelete | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceValue), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestSerializedScriptValueInterfaceValue) },
</span><span class="lines">@@ -113,9 +103,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestSerializedScriptValueInterfacePrototypeTable = { 6, 15, true, JSTestSerializedScriptValueInterfacePrototypeTableValues, 0, JSTestSerializedScriptValueInterfacePrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestSerializedScriptValueInterfacePrototype::s_info = { "TestSerializedScriptValueInterfacePrototype", &Base::s_info, &JSTestSerializedScriptValueInterfacePrototypeTable, 0, CREATE_METHOD_TABLE(JSTestSerializedScriptValueInterfacePrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestSerializedScriptValueInterfacePrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -44,10 +44,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestTypedefsTableIndex[2] = {
</span><span class="lines">@@ -56,18 +52,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestTypedefsTableValues[0] =
</del><ins>+static const HashTableValue JSTestTypedefsTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestTypedefsTable = { 0, 1, false, JSTestTypedefsTableValues, 0, JSTestTypedefsTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestTypedefsConstructorTableIndex[1] = {
</span><span class="lines">@@ -75,15 +65,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestTypedefsConstructorTableValues[1] =
</del><ins>+static const HashTableValue JSTestTypedefsConstructorTableValues[] =
</ins><span class="cx"> {
</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><span class="cx"> static const HashTable JSTestTypedefsConstructorTable = { 1, 0, true, JSTestTypedefsConstructorTableValues, 0, JSTestTypedefsConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::constructJSTestTypedefs(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx"> JSTestTypedefsConstructor* castedThis = jsCast<JSTestTypedefsConstructor*>(exec->callee());
</span><span class="lines">@@ -125,10 +112,6 @@
</span><span class="cx"> return ConstructTypeHost;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSTestTypedefsPrototypeTableIndex[66] = {
</span><span class="lines">@@ -201,7 +184,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSTestTypedefsPrototypeTableValues[17] =
</del><ins>+static const HashTableValue JSTestTypedefsPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "unsignedLongLongAttr", DontDelete | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsUnsignedLongLongAttr), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestTypedefsUnsignedLongLongAttr) },
</span><span class="lines">@@ -223,9 +206,6 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSTestTypedefsPrototypeTable = { 17, 63, true, JSTestTypedefsPrototypeTableValues, 0, JSTestTypedefsPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSTestTypedefsPrototype::s_info = { "TestTypedefsPrototype", &Base::s_info, &JSTestTypedefsPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestTypedefsPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSTestTypedefsPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span><span class="lines">@@ -344,7 +324,7 @@
</span><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> TestTypedefs& impl = castedThis->impl();
</span><del>- JSC::JSValue result = jsNumber(impl.attrWithGetterException(ec));
</del><ins>+ JSValue result = jsNumber(impl.attrWithGetterException(ec));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -383,7 +363,7 @@
</span><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> TestTypedefs& impl = castedThis->impl();
</span><del>- JSC::JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
</del><ins>+ JSValue result = jsStringWithCache(exec, impl.stringAttrWithGetterException(ec));
</ins><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -605,8 +585,7 @@
</span><span class="cx"> Vector<RefPtr<SerializedScriptValue>> sequenceArg((toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(exec, exec->argument(0), &toSerializedScriptValue)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsNumber(impl.methodWithSequenceArg(sequenceArg));
</del><ins>+ JSValue result = jsNumber(impl.methodWithSequenceArg(sequenceArg));
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -672,8 +651,7 @@
</span><span class="cx"> return throwVMTypeError(exec);
</span><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
</span><span class="cx"> TestTypedefs& impl = castedThis->impl();
</span><del>-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction())));
</del><ins>+ JSValue result = toJS(exec, 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><span class="lines">@@ -691,8 +669,8 @@
</span><span class="cx"> Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</ins><span class="cx">
</span><del>- JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction(values, ec));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -711,8 +689,8 @@
</span><span class="cx"> Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><ins>+ JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction2(values, ec));
</ins><span class="cx">
</span><del>- JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl.stringArrayFunction2(values, ec));
</del><span class="cx"> setDOMException(exec, ec);
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -730,8 +708,7 @@
</span><span class="cx"> Vector<RefPtr<TestEventTarget>> sequenceArg((toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(exec, exec->argument(0), &toTestEventTarget)));
</span><span class="cx"> if (UNLIKELY(exec->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>-
- JSC::JSValue result = jsBoolean(impl.callWithSequenceThatRequiresInclude(sequenceArg));
</del><ins>+ JSValue result = jsBoolean(impl.callWithSequenceThatRequiresInclude(sequenceArg));
</ins><span class="cx"> return JSValue::encode(result);
</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 (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSattributeConstructorTableIndex[1] = {
</span><span class="lines">@@ -42,14 +38,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSattributeConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSattributeConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSattributeConstructorTable = { 0, 0, false, JSattributeConstructorTableValues, 0, JSattributeConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSattributeConstructor::s_info = { "attributeConstructor", &Base::s_info, &JSattributeConstructorTable, 0, CREATE_METHOD_TABLE(JSattributeConstructor) };
</span><span class="cx">
</span><span class="cx"> JSattributeConstructor::JSattributeConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -70,10 +64,6 @@
</span><span class="cx"> return getStaticValueSlot<JSattributeConstructor, JSDOMWrapper>(exec, JSattributeConstructorTable, jsCast<JSattributeConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSattributePrototypeTableIndex[4] = {
</span><span class="lines">@@ -84,16 +74,13 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSattributePrototypeTableValues[2] =
</del><ins>+static const HashTableValue JSattributePrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsattributeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> { "readonly", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsattributeReadonly), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSattributePrototypeTable = { 2, 3, true, JSattributePrototypeTableValues, 0, JSattributePrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSattributePrototype::s_info = { "attributePrototype", &Base::s_info, &JSattributePrototypeTable, 0, CREATE_METHOD_TABLE(JSattributePrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSattributePrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSreadonlycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp (165605 => 165606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp        2014-03-14 07:44:03 UTC (rev 165605)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp        2014-03-14 08:15:28 UTC (rev 165606)
</span><span class="lines">@@ -28,10 +28,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for constructor */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSreadonlyConstructorTableIndex[1] = {
</span><span class="lines">@@ -39,14 +35,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSreadonlyConstructorTableValues[0] =
</del><ins>+static const HashTableValue JSreadonlyConstructorTableValues[] =
</ins><span class="cx"> {
</span><ins>+ { 0, 0, NoIntrinsic, 0, 0 }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSreadonlyConstructorTable = { 0, 0, false, JSreadonlyConstructorTableValues, 0, JSreadonlyConstructorTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSreadonlyConstructor::s_info = { "readonlyConstructor", &Base::s_info, &JSreadonlyConstructorTable, 0, CREATE_METHOD_TABLE(JSreadonlyConstructor) };
</span><span class="cx">
</span><span class="cx"> JSreadonlyConstructor::JSreadonlyConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
</span><span class="lines">@@ -67,10 +61,6 @@
</span><span class="cx"> return getStaticValueSlot<JSreadonlyConstructor, JSDOMWrapper>(exec, JSreadonlyConstructorTable, jsCast<JSreadonlyConstructor*>(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if COMPILER(MSVC)
-#pragma warning(push)
-#pragma warning(disable: 2466) // Disable 'cannot allocate an array of constant size 0' warning
-#endif
</del><span class="cx"> /* Hash table for prototype */
</span><span class="cx">
</span><span class="cx"> static const struct CompactHashIndex JSreadonlyPrototypeTableIndex[2] = {
</span><span class="lines">@@ -79,15 +69,12 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span><del>-static const HashTableValue JSreadonlyPrototypeTableValues[1] =
</del><ins>+static const HashTableValue JSreadonlyPrototypeTableValues[] =
</ins><span class="cx"> {
</span><span class="cx"> { "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsreadonlyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) },
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const HashTable JSreadonlyPrototypeTable = { 1, 1, true, JSreadonlyPrototypeTableValues, 0, JSreadonlyPrototypeTableIndex };
</span><del>-#if COMPILER(MSVC)
-#pragma warning(pop)
-#endif
</del><span class="cx"> const ClassInfo JSreadonlyPrototype::s_info = { "readonlyPrototype", &Base::s_info, &JSreadonlyPrototypeTable, 0, CREATE_METHOD_TABLE(JSreadonlyPrototype) };
</span><span class="cx">
</span><span class="cx"> JSObject* JSreadonlyPrototype::self(VM& vm, JSGlobalObject* globalObject)
</span></span></pre>
</div>
</div>
</body>
</html>