<!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>[182871] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/182871">182871</a></dd>
<dt>Author</dt> <dd>mark.lam@apple.com</dd>
<dt>Date</dt> <dd>2015-04-15 17:10:57 -0700 (Wed, 15 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove obsolete VMInspector debugging tool.
https://bugs.webkit.org/show_bug.cgi?id=143798

Reviewed by Michael Saboff.

Source/JavaScriptCore:

I added the VMInspector tool 3 years ago to aid in VM hacking work.  Some of it
has bit rotted, and now the VM also has better ways to achieve its functionality.
Hence this code is now obsolete and should be removed.

* CMakeLists.txt:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.xcodeproj/project.pbxproj:
* interpreter/CallFrame.h:
* interpreter/VMInspector.cpp: Removed.
* interpreter/VMInspector.h: Removed.
* llint/LowLevelInterpreter.cpp:

Source/WebCore:

No new tests needed.  Just removing obsolete code.

* ForwardingHeaders/interpreter/VMInspector.h: Removed.

Tools:

* TestWebKitAPI/CMakeLists.txt:
* TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
* TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreCMakeListstxt">trunk/Source/JavaScriptCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorevcxproj">trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj</a></li>
<li><a href="#trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorevcxprojfilters">trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj">trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterCallFrameh">trunk/Source/JavaScriptCore/interpreter/CallFrame.h</a></li>
<li><a href="#trunkSourceJavaScriptCorellintLowLevelInterpretercpp">trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsTestWebKitAPICMakeListstxt">trunk/Tools/TestWebKitAPI/CMakeLists.txt</a></li>
<li><a href="#trunkToolsTestWebKitAPITestWebKitAPIvcxprojTestWebKitAPIvcxproj">trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj</a></li>
<li><a href="#trunkToolsTestWebKitAPITestWebKitAPIvcxprojTestWebKitAPIvcxprojfilters">trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters</a></li>
<li><a href="#trunkToolsTestWebKitAPITestWebKitAPIxcodeprojprojectpbxproj">trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreinterpreterVMInspectorcpp">trunk/Source/JavaScriptCore/interpreter/VMInspector.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterVMInspectorh">trunk/Source/JavaScriptCore/interpreter/VMInspector.h</a></li>
<li><a href="#trunkSourceWebCoreForwardingHeadersinterpreterVMInspectorh">trunk/Source/WebCore/ForwardingHeaders/interpreter/VMInspector.h</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsJavaScriptCoreVMInspectorcpp">trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/CMakeLists.txt (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/CMakeLists.txt        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/CMakeLists.txt        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -322,7 +322,6 @@
</span><span class="cx">     interpreter/JSStack.cpp
</span><span class="cx">     interpreter/ProtoCallFrame.cpp
</span><span class="cx">     interpreter/StackVisitor.cpp
</span><del>-    interpreter/VMInspector.cpp
</del><span class="cx"> 
</span><span class="cx">     jit/AccessorCallJITStubRoutine.cpp
</span><span class="cx">     jit/AssemblyHelpers.cpp
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2015-04-15  Mark Lam  &lt;mark.lam@apple.com&gt;
+
+        Remove obsolete VMInspector debugging tool.
+        https://bugs.webkit.org/show_bug.cgi?id=143798
+
+        Reviewed by Michael Saboff.
+
+        I added the VMInspector tool 3 years ago to aid in VM hacking work.  Some of it
+        has bit rotted, and now the VM also has better ways to achieve its functionality.
+        Hence this code is now obsolete and should be removed.
+
+        * CMakeLists.txt:
+        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
+        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
+        * JavaScriptCore.xcodeproj/project.pbxproj:
+        * interpreter/CallFrame.h:
+        * interpreter/VMInspector.cpp: Removed.
+        * interpreter/VMInspector.h: Removed.
+        * llint/LowLevelInterpreter.cpp:
+
</ins><span class="cx"> 2015-04-15  Jordan Harband  &lt;ljharb@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Math.imul has wrong length in Safari 8.0.4
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -595,7 +595,6 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\interpreter\JSStack.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\interpreter\ProtoCallFrame.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\interpreter\StackVisitor.cpp&quot; /&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\interpreter\VMInspector.cpp&quot; /&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\jit\AccessorCallJITStubRoutine.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\jit\ArityCheckFailReturnThunks.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\jit\AssemblyHelpers.cpp&quot; /&gt;
</span><span class="lines">@@ -1349,7 +1348,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\interpreter\ProtoCallFrame.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\interpreter\Register.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\interpreter\StackVisitor.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\interpreter\VMInspector.h&quot; /&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\jit\AccessorCallJITStubRoutine.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\jit\ArityCheckFailReturnThunks.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\jit\AssemblyHelpers.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -363,9 +363,6 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\interpreter\StackVisitor.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;interpreter&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\interpreter\VMInspector.cpp&quot;&gt;
-      &lt;Filter&gt;interpreter&lt;/Filter&gt;
-    &lt;/ClCompile&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\jit\ExecutableAllocator.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;jit&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -2318,9 +2315,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\interpreter\StackVisitor.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;interpreter&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\interpreter\VMInspector.h&quot;&gt;
-      &lt;Filter&gt;interpreter&lt;/Filter&gt;
-    &lt;/ClInclude&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\jit\CompactJITCodeMap.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;jit&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1646,8 +1646,6 @@
</span><span class="cx">                 FE0D4A091ABA2437002F54BF /* GlobalContextWithFinalizerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE0D4A071ABA2437002F54BF /* GlobalContextWithFinalizerTest.cpp */; };
</span><span class="cx">                 FE20CE9D15F04A9500DF3430 /* LLIntCLoop.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE20CE9B15F04A9500DF3430 /* LLIntCLoop.cpp */; };
</span><span class="cx">                 FE20CE9E15F04A9500DF3430 /* LLIntCLoop.h in Headers */ = {isa = PBXBuildFile; fileRef = FE20CE9C15F04A9500DF3430 /* LLIntCLoop.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                FE4A331F15BD2E07006F54F3 /* VMInspector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE4A331D15BD2E07006F54F3 /* VMInspector.cpp */; };
-                FE4A332015BD2E07006F54F3 /* VMInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = FE4A331E15BD2E07006F54F3 /* VMInspector.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 FE5932A7183C5A2600A1ECCC /* VMEntryScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE5932A5183C5A2600A1ECCC /* VMEntryScope.cpp */; };
</span><span class="cx">                 FE5932A8183C5A2600A1ECCC /* VMEntryScope.h in Headers */ = {isa = PBXBuildFile; fileRef = FE5932A6183C5A2600A1ECCC /* VMEntryScope.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 FE7BA60F1A1A7CEC00F1F7B4 /* HeapVerifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE7BA60D1A1A7CEC00F1F7B4 /* HeapVerifier.cpp */; };
</span><span class="lines">@@ -3426,8 +3424,6 @@
</span><span class="cx">                 FE0D4A081ABA2437002F54BF /* GlobalContextWithFinalizerTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GlobalContextWithFinalizerTest.h; path = API/tests/GlobalContextWithFinalizerTest.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FE20CE9B15F04A9500DF3430 /* LLIntCLoop.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LLIntCLoop.cpp; path = llint/LLIntCLoop.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FE20CE9C15F04A9500DF3430 /* LLIntCLoop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LLIntCLoop.h; path = llint/LLIntCLoop.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                FE4A331D15BD2E07006F54F3 /* VMInspector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VMInspector.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
-                FE4A331E15BD2E07006F54F3 /* VMInspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VMInspector.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 FE5932A5183C5A2600A1ECCC /* VMEntryScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VMEntryScope.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FE5932A6183C5A2600A1ECCC /* VMEntryScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VMEntryScope.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FE7BA60D1A1A7CEC00F1F7B4 /* HeapVerifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HeapVerifier.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -3850,8 +3846,6 @@
</span><span class="cx">                                 149B24FF0D8AF6D1009CB8C7 /* Register.h */,
</span><span class="cx">                                 A7C1EAEC17987AB600299DB2 /* StackVisitor.cpp */,
</span><span class="cx">                                 A7C1EAED17987AB600299DB2 /* StackVisitor.h */,
</span><del>-                                FE4A331D15BD2E07006F54F3 /* VMInspector.cpp */,
-                                FE4A331E15BD2E07006F54F3 /* VMInspector.h */,
</del><span class="cx">                         );
</span><span class="cx">                         path = interpreter;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -6436,7 +6430,6 @@
</span><span class="cx">                                 0F426A491460CBB700131F8F /* VirtualRegister.h in Headers */,
</span><span class="cx">                                 BC18C4200E16F5CD00B34460 /* VM.h in Headers */,
</span><span class="cx">                                 FE5932A8183C5A2600A1ECCC /* VMEntryScope.h in Headers */,
</span><del>-                                FE4A332015BD2E07006F54F3 /* VMInspector.h in Headers */,
</del><span class="cx">                                 FED94F2F171E3E2300BE77A4 /* Watchdog.h in Headers */,
</span><span class="cx">                                 0F919D2615853CE3004A4E7D /* Watchpoint.h in Headers */,
</span><span class="cx">                                 142E313C134FF0A600AFADB5 /* Weak.h in Headers */,
</span><span class="lines">@@ -7516,7 +7509,6 @@
</span><span class="cx">                                 0F24E55817F74EDB00ABB217 /* ValueRecovery.cpp in Sources */,
</span><span class="cx">                                 E18E3A590DF9278C00D90B34 /* VM.cpp in Sources */,
</span><span class="cx">                                 FE5932A7183C5A2600A1ECCC /* VMEntryScope.cpp in Sources */,
</span><del>-                                FE4A331F15BD2E07006F54F3 /* VMInspector.cpp in Sources */,
</del><span class="cx">                                 FED94F2E171E3E2300BE77A4 /* Watchdog.cpp in Sources */,
</span><span class="cx">                                 FED94F30171E3E2300BE77A4 /* WatchdogMac.cpp in Sources */,
</span><span class="cx">                                 0F919D2515853CE0004A4E7D /* Watchpoint.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterCallFrameh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/interpreter/CallFrame.h (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/CallFrame.h        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/interpreter/CallFrame.h        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -310,7 +310,6 @@
</span><span class="cx">         const CallerFrameAndPC&amp; callerFrameAndPC() const { return *reinterpret_cast&lt;const CallerFrameAndPC*&gt;(this); }
</span><span class="cx"> 
</span><span class="cx">         friend class JSStack;
</span><del>-        friend class VMInspector;
</del><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterVMInspectorcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/JavaScriptCore/interpreter/VMInspector.cpp (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/VMInspector.cpp        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/interpreter/VMInspector.cpp        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,588 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include &quot;config.h&quot;
-#include &quot;VMInspector.h&quot;
-
-#if ENABLE(VMINSPECTOR)
-
-#include &quot;JSCInlines.h&quot;
-#include &quot;StackVisitor.h&quot;
-#include &lt;wtf/ASCIICType.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace JSC {
-
-const char* VMInspector::getTypeName(JSValue value)
-{
-    if (value.isInt32())
-        return &quot;&lt;Int32&gt;&quot;;
-    if (value.isBoolean())
-        return &quot;&lt;Boolean&gt;&quot;;
-    if (value.isNull())
-        return &quot;&lt;Empty&gt;&quot;;
-    if (value.isUndefined())
-        return &quot;&lt;Undefined&gt;&quot;;
-    if (value.isCell())
-        return &quot;&lt;Cell&gt;&quot;;
-    if (value.isEmpty())
-        return &quot;&lt;Empty&gt;&quot;;
-    return &quot;&quot;;
-}
-
-void VMInspector::dumpFrame0(CallFrame* frame)
-{
-    dumpFrame(frame, 0, 0, 0, 0);
-}
-
-void VMInspector::dumpFrame(CallFrame* frame, const char* prefix,
-                            const char* funcName, const char* file, int line)
-{
-    int frameCount = VMInspector::countFrames(frame);
-    if (frameCount &lt; 0)
-        return;
-
-    Instruction* vPC = 0;
-    if (frame-&gt;codeBlock())
-        vPC = frame-&gt;currentVPC();
-
-    #define CAST reinterpret_cast
-
-    if (prefix)
-        printf(&quot;%s &quot;, prefix);
-
-    printf(&quot;frame [%d] %p { cb %p:%s, retPC %p:%s, callee %p:%s, callerFrame %p:%s, argc %d, vPC %p }&quot;,
-        frameCount, frame,
-        CAST&lt;void*&gt;(frame[JSStack::CodeBlock].payload()),
-        getTypeName(frame[JSStack::CodeBlock].jsValue()),
-        CAST&lt;void*&gt;(frame[JSStack::ReturnPC].payload()),
-        getTypeName(frame[JSStack::ReturnPC].jsValue()),
-        CAST&lt;void*&gt;(frame[JSStack::Callee].payload()),
-        getTypeName(frame[JSStack::Callee].jsValue()),
-        CAST&lt;void*&gt;(frame[JSStack::CallerFrame].callFrame()),
-        getTypeName(frame[JSStack::CallerFrame].jsValue()),
-        frame[JSStack::ArgumentCount].payload(),
-        vPC);
-
-    if (funcName || file || (line &gt;= 0)) {
-        printf(&quot; @&quot;);
-        if (funcName)
-            printf(&quot; %s&quot;, funcName);
-        if (file)
-            printf(&quot; %s&quot;, file);
-        if (line &gt;= 0)
-            printf(&quot;:%d&quot;, line);
-    }
-    printf(&quot;\n&quot;);
-}
-
-class CountFramesFunctor {
-public:
-    CountFramesFunctor()
-        : m_count(-1)
-    { }
-
-    StackVisitor::Status operator()(StackVisitor&amp; visitor)
-    {
-        m_count++;
-        return StackVisitor::Continue;
-    }
-
-    int count() const { return m_count; }
-
-private:
-    unsigned m_count;
-};
-
-int VMInspector::countFrames(CallFrame* frame)
-{
-    CountFramesFunctor functor();
-    StackVisitor::visit(frame, functor);
-
-    return functor.count();
-}
-
-
-//============================================================================
-//  class FormatPrinter
-//    - implements functionality to support fprintf.
-//
-//    The FormatPrinter classes do the real formatting and printing.
-//    By default, the superclass FormatPrinter will print to stdout (printf).
-//    Each of the subclass will implement the other ...printf() options.
-//    The subclasses are:
-//
-//        FileFormatPrinter     - fprintf
-//        StringFormatPrinter   - sprintf
-//        StringNFormatPrinter  - snprintf
-
-class FormatPrinter {
-public:
-    virtual ~FormatPrinter() { }
-
-    void print(const char* format, va_list args);
-
-protected:
-    // Low level printers:
-    bool printArg(const char* format, ...);
-    virtual bool printArg(const char* format, va_list args);
-
-    // JS type specific printers:
-    void printWTFString(va_list args, bool verbose);
-};
-
-
-// The public print() function is the real workhorse behind the printf
-// family of functions. print() deciphers the % formatting, translate them
-// to primitive formats, and dispatches to underlying printArg() functions
-// to do the printing.
-// 
-// The non-public internal printArg() function is virtual and is responsible
-// for handling the variations between printf, fprintf, sprintf, and snprintf.
-
-void FormatPrinter::print(const char* format, va_list args)
-{
-    const char* p = format;
-    const char* errorStr;
-
-    // buffer is only used for 2 purposes:
-    // 1. To temporarily hold a copy of normal chars (not needing formatting)
-    //    to be passed to printArg() and printed.
-    //
-    //    The incoming format string may contain a string of normal chars much
-    //    longer than 128, but we handle this by breaking them out to 128 chars
-    //    fragments and printing each fragment before re-using the buffer to
-    //    load up the next fragment.
-    //
-    // 2. To hold a single &quot;%...&quot; format to be passed to printArg() to process
-    //    a single va_arg.
-
-    char buffer[129]; // 128 chars + null terminator.
-    char* end = &amp;buffer[sizeof(buffer) - 1];
-    const char* startOfFormatSpecifier = 0;
-
-    while (true) {
-        char c = *p++;
-        char* curr = buffer;
-
-        // Print leading normal chars:
-        while (c != '\0' &amp;&amp; c != '%') {
-            *curr++ = c;
-            if (curr == end) {
-                // Out of buffer space. Flush the fragment, and start over.
-                *curr = '\0';
-                bool success = printArg(&quot;%s&quot;, buffer);
-                if (!success) {
-                    errorStr = buffer;
-                    goto handleError;
-                }
-                curr = buffer;
-            }
-            c = *p++;
-        }
-        // If we have stuff in the buffer, flush the fragment:
-        if (curr != buffer) {
-            ASSERT(curr &lt; end + 1);
-            *curr = '\0';
-            bool success = printArg(&quot;%s&quot;, buffer);
-            if (!success) {
-                errorStr = buffer;
-                goto handleError;
-            }
-        }
-
-        // End if there are not more chars to print:
-        if (c == '\0')
-            break;
-
-        // If we get here, we've must have seen a '%':
-        startOfFormatSpecifier = p - 1;
-        ASSERT(*startOfFormatSpecifier == '%');
-        c = *p++;
-
-        // Check for &quot;%%&quot; case:
-        if (c == '%') {
-            bool success = printArg(&quot;%c&quot;, '%');
-            if (!success) {
-                errorStr = p - 2;
-                goto handleError;
-            }
-            continue;
-        }
-
-        // Check for JS (%J&lt;x&gt;) formatting extensions:
-        if (c == 'J') {
-            bool verbose = false;
-
-            c = *p++;
-            if (UNLIKELY(c == '\0')) {
-                errorStr = p - 2; // Rewind to % in &quot;%J\0&quot;
-                goto handleError;
-            }
-
-            if (c == '+') {
-                verbose = true;
-                c= *p++;
-                if (UNLIKELY(c == '\0')) {
-                    errorStr = p - 3; // Rewind to % in &quot;%J+\0&quot;
-                    goto handleError;
-                }
-            }
-
-            switch (c) {
-            // %Js - WTF::String*
-            case 's': {
-                printWTFString(args, verbose);
-                continue;
-            }
-            } // END switch.
-
-        // Check for non-JS extensions:
-        } else if (c == 'b') {
-            int value = va_arg(args, int);
-            printArg(&quot;%s&quot;, value ? &quot;TRUE&quot; : &quot;FALSE&quot;);
-            continue;
-        }
-
-        // If we didn't handle the format in one of the above cases,
-        // rewind p and let the standard formatting check handle it
-        // if possible:
-        p = startOfFormatSpecifier;
-        ASSERT(*p == '%');
-
-        // Check for standard formatting:
-        // A format specifier always starts with a % and ends with some
-        // alphabet. We'll do the simple thing and scan until the next
-        // alphabet, or the end of string.
-
-        // In the following, we're going to use buffer as storage for a copy
-        // of a single format specifier. Hence, conceptually, we can think of
-        // 'buffer' as synonymous with 'argFormat' here:
-
-#define ABORT_IF_FORMAT_TOO_LONG(curr) \
-        do {                           \
-            if (UNLIKELY(curr &gt;= end)) \
-                goto formatTooLong;    \
-        } while (false)
-        
-        curr = buffer;
-        *curr++ = *p++; // Output the first % in the format specifier.
-        c = *p++; // Grab the next char in the format specifier.
-
-        // Checks for leading modifiers e.g. &quot;%-d&quot;:
-        //     0, -, ' ', +, '\''
-        if (c == '0' || c == '-' || c == ' ' || c == '+' || c == '\'' || c == '#') {
-            ABORT_IF_FORMAT_TOO_LONG(curr);
-            *curr++ = c;
-            c = *p++;
-        }
-
-        // Checks for decimal digit field width modifiers e.g. &quot;%2f&quot;:
-        while (c &gt;= '0' &amp;&amp; c &lt;= '9') {
-            ABORT_IF_FORMAT_TOO_LONG(curr);
-            *curr++ = c;
-            c = *p++;
-        }
-
-        // Checks for '.' e.g. &quot;%2.f&quot;:
-        if (c == '.') {
-            ABORT_IF_FORMAT_TOO_LONG(curr);
-            *curr++ = c;
-            c = *p++;
-
-            // Checks for decimal digit precision modifiers  e.g. &quot;%.2f&quot;:
-            while (c &gt;= '0' &amp;&amp; c &lt;= '9') {
-                ABORT_IF_FORMAT_TOO_LONG(curr);
-                *curr++ = c;
-                c = *p++;
-            }
-        }
-
-        // Checks for the modifier &lt;m&gt; where &lt;m&gt; can be:
-        //     l, h, j, t, z
-        // e.g. &quot;%ld&quot;
-        if (c == 'l' || c == 'h' || c == 'j' || c == 't' || c == 'z' || c == 'L') {
-            ABORT_IF_FORMAT_TOO_LONG(curr);
-            *curr++ = c;
-            char prevChar = c;
-            c = *p++;
-
-            // Checks for the modifier ll or hh in %&lt;x&gt;&lt;m&gt;:
-            if ((prevChar == 'l' || prevChar == 'h') &amp;&amp; c == prevChar) {
-                ABORT_IF_FORMAT_TOO_LONG(curr);
-                *curr++ = c;
-                c = *p++;
-            }
-        }
-
-        // Checks for %&lt;x&gt; where &lt;x&gt; can be:
-        //     d, i, n, o, u, x, X
-        // But hey, we're just going to do the simple thing and allow any
-        // alphabet. The user is expected to pass correct format specifiers.
-        // We won't do any format checking here. We'll just pass it on, and the
-        // underlying ...printf() implementation may do the needed checking
-        // at its discretion.
-        while (c != '\0' &amp;&amp; !isASCIIAlpha(c)) {
-            ABORT_IF_FORMAT_TOO_LONG(curr);
-            *curr++ = c;
-            c = *p++;
-        }
-
-        ABORT_IF_FORMAT_TOO_LONG(curr);
-        *curr++ = c;
-        if (c == '\0') {
-            // Uh oh. Bad format. We should have gotten an alphabet instead.
-            // Print the supposed format as a string instead:
-            errorStr = buffer;
-            goto handleError;
-        }
-
-        // Otherwise, we have the alpha that terminates the format.
-        // Terminate the buffer (i.e. argFormat) string:
-        ASSERT(isASCIIAlpha(c));
-        ABORT_IF_FORMAT_TOO_LONG(curr);
-        *curr = '\0';
-
-        bool success = printArg(buffer, args);
-        if (!success) {
-            errorStr = buffer;
-            goto handleError;
-        }
-    }
-#undef ABORT_IF_FORMAT_TOO_LONG
-
-    return;
-
-formatTooLong:
-    // Print the error string:
-    ASSERT(!!startOfFormatSpecifier);
-    p = startOfFormatSpecifier;
-    ASSERT(p &gt;= format);
-    printArg(&quot;ERROR @ Format too long at \&quot;%s\&quot;\n&quot;, p);
-    return;
-
-handleError:
-    // We've got an error. Can't do any more work. Print an error message if
-    // possible and then just return.
-
-    // The errorStr may be pointing into the middle of buffer, or the original
-    // format string. Move the string to buffer for consistency, and also so
-    // that we can strip it of newlines below.
-    if (errorStr != buffer) {
-        size_t length = strlen(errorStr);
-        if (length &gt; sizeof(buffer) - 1)
-            length = sizeof(buffer) - 1;
-        memmove(buffer, errorStr, length);
-        buffer[length] = '\0'; // Terminate the moved error string.
-    }
-    // Strip the newlines:
-    char* cp = buffer;
-    while (*cp) {
-        if (*cp == '\n' || *cp == '\r')
-            *cp = ' ';
-        cp++;
-    }
-    // Print the error string:
-    printArg(&quot;ERROR @ \&quot;%s\&quot;\n&quot;, buffer);
-}
-
-
-bool FormatPrinter::printArg(const char* format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    bool success = printArg(format, args);
-    va_end(args);
-    return success;
-}
-
-bool FormatPrinter::printArg(const char* format, va_list args)
-{
-    int count = ::vprintf(format, args);
-    return (count &gt;= 0); // Fail if less than 0 chars printed.
-}
-
-
-// %Js - WTF::String*
-// verbose mode prints: WTF::String &quot;&lt;your string&gt;&quot;
-void FormatPrinter::printWTFString(va_list args, bool verbose)
-{
-    const String* str = va_arg(args, const String*);
-
-    // Print verbose header if appropriate:
-    if (verbose)
-        printArg(&quot;WTF::String \&quot;&quot;);
-
-    // Print the string itself:
-    if (!str-&gt;isEmpty()) {
-        if (str-&gt;is8Bit()) {
-            const LChar* chars = str-&gt;characters8();
-            printArg(&quot;%s&quot;, reinterpret_cast&lt;const char*&gt;(chars));
-        } else {
-            const UChar* chars = str-&gt;characters16();
-            printArg(&quot;%S&quot;, reinterpret_cast&lt;const wchar_t*&gt;(chars));
-        }
-    }
-
-    // Print verbose footer if appropriate:
-    if (verbose)
-        printArg(&quot;\&quot;&quot;);
-}
-
-
-//============================================================================
-//  class FileFormatPrinter
-//    - implements functionality to support fprintf.
-
-class FileFormatPrinter: public FormatPrinter {
-public:
-    FileFormatPrinter(FILE*);
-private:
-    virtual bool printArg(const char* format, va_list args);
-
-    FILE* m_file;
-};
-
-FileFormatPrinter::FileFormatPrinter(FILE* file)
-    : m_file(file)
-{ 
-}
-
-bool FileFormatPrinter::printArg(const char* format, va_list args)
-{
-    int count = ::vfprintf(m_file, format, args);
-    return (count &gt;= 0); // Fail if less than 0 chars printed.
-}
-
-
-//============================================================================
-//  class StringFormatPrinter
-//    - implements functionality to support sprintf.
-
-class StringFormatPrinter: public FormatPrinter {
-public:
-    StringFormatPrinter(char* buffer);
-private:
-    virtual bool printArg(const char* format, va_list args);
-
-    char* m_buffer;
-};
-
-StringFormatPrinter::StringFormatPrinter(char* buffer)
-    : m_buffer(buffer)
-{ 
-}
-
-bool StringFormatPrinter::printArg(const char* format, va_list args)
-{
-    int count = ::vsprintf(m_buffer, format, args);
-    m_buffer += count;
-    return (count &gt;= 0); // Fail if less than 0 chars printed.
-}
-
-
-//============================================================================
-//  class StringNFormatPrinter
-//    - implements functionality to support snprintf.
-
-class StringNFormatPrinter: public FormatPrinter {
-public:
-    StringNFormatPrinter(char* buffer, size_t);
-private:
-    virtual bool printArg(const char* format, va_list args);
-
-    char* m_buffer;
-    size_t m_size;
-};
-
-
-StringNFormatPrinter::StringNFormatPrinter(char* buffer, size_t size)
-    : m_buffer(buffer)
-    , m_size(size)
-{
-}
-
-bool StringNFormatPrinter::printArg(const char* format, va_list args)
-{
-    if (m_size &gt; 0) {
-        int count = ::vsnprintf(m_buffer, m_size, format, args);
-
-        // According to vsnprintf specs, ...
-        bool success = (count &gt;= 0);
-        if (static_cast&lt;size_t&gt;(count) &gt;= m_size) {
-            // If count &gt; size, then we didn't have enough buffer space.
-            count = m_size;
-        }
-
-        // Adjust the buffer to what's left if appropriate:
-        if (success) {
-            m_buffer += count;
-            m_size -= count;
-        }
-        return success;
-    }
-    // No more room to print. Declare it a fail:
-    return false;
-}
-
-
-//============================================================================
-//  VMInspector printf family of methods:
-
-void VMInspector::fprintf(FILE* file, const char* format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    FileFormatPrinter(file).print(format, args);
-    va_end(args);
-}
-
-void VMInspector::printf(const char* format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    FormatPrinter().print(format, args);
-    va_end(args);
-}
-
-void VMInspector::sprintf(char* buffer, const char* format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    StringFormatPrinter(buffer).print(format, args);
-    va_end(args);
-}
-
-void VMInspector::snprintf(char* buffer, size_t size, const char* format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    StringNFormatPrinter(buffer, size).print(format, args);
-    va_end(args);
-}
-
-} // namespace JSC
-
-#endif // ENABLE(VMINSPECTOR)
</del></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterVMInspectorh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/JavaScriptCore/interpreter/VMInspector.h (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/VMInspector.h        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/interpreter/VMInspector.h        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,89 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#ifndef VMInspector_h
-#define VMInspector_h
-
-#define ENABLE_VMINSPECTOR 0
-
-#include &quot;CallFrame.h&quot;
-#include &quot;JSCJSValue.h&quot;
-#include &lt;stdarg.h&gt;
-#include &lt;stdio.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace JSC {
-
-#if ENABLE(VMINSPECTOR)
-
-class VMInspector {
-public:    
-    static JS_EXPORT_PRIVATE const char* getTypeName(JSValue);
-    static JS_EXPORT_PRIVATE void dumpFrame0(CallFrame*);
-    static JS_EXPORT_PRIVATE void dumpFrame(CallFrame*, const char* prefix = 0, const char* funcName = 0, const char* file = 0, int line = -1);
-    static JS_EXPORT_PRIVATE int countFrames(CallFrame*);
-
-    // Special family of ...printf() functions that support, in addition to the
-    // standard % formats (e.g. %d, %s, etc), the following extra JSC formatting
-    // options, %J&lt;x&gt;, where &lt;x&gt; consists of:
-    //
-    //   +    - verbose mode modifier.
-    //          Used in combination with other options. Must come after the %J.
-    //   s    - WTF::String*
-    //
-    // Examples of usage:
-    //
-    //    WTF::String str(&quot;My WTF String&quot;);
-    //
-    //    // Printing the string. Will print:
-    //    // The wtf string says: &quot;My WTF String&quot; and is NOT EMPTY.
-    //
-    //    VMInspector::printf(&quot;The wtf string says: \&quot;%Js\&quot; and is %s\n&quot;,
-    //        &amp;str, str.isEmpty()?&quot;EMPTY&quot;:&quot;NOT EMPTY&quot;);
-    //
-    //    // Printing the string with verbose mode. Will print:
-    //    // &lt;WTF::String &quot;My WTF String&quot;&gt;
-    //
-    //    VMInspector::printf(&quot;&lt;%J+s&gt;\n&quot;, &amp;str);
-    //
-    // Also added some convenience non-JS formats:
-    //
-    //   %b    - boolean (va_args will look for an int).
-    //           Prints TRUE if non-zero, else prints FALSE.
-    //
-    // Caution: the user is expected to pass the correctly matched arguments
-    // to pair with the corresponding % fomatting.
-
-    static JS_EXPORT_PRIVATE void fprintf(FILE*, const char* format, ...);
-    static JS_EXPORT_PRIVATE void printf(const char* format, ...);
-    static JS_EXPORT_PRIVATE void sprintf(char*, const char* format, ...);
-    static JS_EXPORT_PRIVATE void snprintf(char*, size_t, const char* format, ...);
-};
-
-#endif // ENABLE(VMINSPECTOR)
-
-} // namespace JSC
-
-#endif // VMInspector.h
</del></span></pre></div>
<a id="trunkSourceJavaScriptCorellintLowLevelInterpretercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #include &quot;LLIntCLoop.h&quot;
</span><span class="cx"> #include &quot;LLIntSlowPaths.h&quot;
</span><span class="cx"> #include &quot;JSCInlines.h&quot;
</span><del>-#include &quot;VMInspector.h&quot;
</del><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><span class="cx"> #include &lt;wtf/MathExtras.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/WebCore/ChangeLog        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2015-04-15  Mark Lam  &lt;mark.lam@apple.com&gt;
+
+        Remove obsolete VMInspector debugging tool.
+        https://bugs.webkit.org/show_bug.cgi?id=143798
+
+        Reviewed by Michael Saboff.
+
+        No new tests needed.  Just removing obsolete code.
+
+        * ForwardingHeaders/interpreter/VMInspector.h: Removed.
+
</ins><span class="cx"> 2015-04-15  Timothy Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Custom CSS cursors do not use -webkit-image-set on retina displays
</span></span></pre></div>
<a id="trunkSourceWebCoreForwardingHeadersinterpreterVMInspectorh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/ForwardingHeaders/interpreter/VMInspector.h (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ForwardingHeaders/interpreter/VMInspector.h        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Source/WebCore/ForwardingHeaders/interpreter/VMInspector.h        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,29 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#ifndef WebCore_FWD_VMInspector_h
-#define WebCore_FWD_VMInspector_h
-#include &lt;JavaScriptCore/VMInspector.h&gt;
-#endif
</del></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/ChangeLog        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2015-04-15  Mark Lam  &lt;mark.lam@apple.com&gt;
+
+        Remove obsolete VMInspector debugging tool.
+        https://bugs.webkit.org/show_bug.cgi?id=143798
+
+        Reviewed by Michael Saboff.
+
+        * TestWebKitAPI/CMakeLists.txt:
+        * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
+        * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
+        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
+        * TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp: Removed.
+
</ins><span class="cx"> 2015-04-15  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed gardening; Make the previous commit apply only _post_ Yosemite.
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPICMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/CMakeLists.txt (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/CMakeLists.txt        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/TestWebKitAPI/CMakeLists.txt        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -169,7 +169,6 @@
</span><span class="cx"> add_executable(TestJavaScriptCore
</span><span class="cx">     ${test_main_SOURCES}
</span><span class="cx">     ${TESTWEBKITAPI_DIR}/TestsController.cpp
</span><del>-    ${TESTWEBKITAPI_DIR}/Tests/JavaScriptCore/VMInspector.cpp
</del><span class="cx"> )
</span><span class="cx"> 
</span><span class="cx"> target_link_libraries(TestJavaScriptCore ${TestJavaScriptCore_LIBRARIES})
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestWebKitAPIvcxprojTestWebKitAPIvcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -291,7 +291,6 @@
</span><span class="cx">   &lt;ItemGroup&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\Counters.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\TestsController.cpp&quot; /&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\Tests\JavaScriptCore\VMInspector.cpp&quot; /&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\Tests\WebCore\CalculationValue.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\Tests\WebCore\CSSParser.cpp&quot; /&gt;
</span><span class="cx">     &lt;ClCompile Include=&quot;..\Tests\WebCore\LayoutUnit.cpp&quot; /&gt;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestWebKitAPIvcxprojTestWebKitAPIvcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -163,9 +163,6 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\Tests\WebCore\CSSParser.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;Tests\WebCore&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\Tests\JavaScriptCore\VMInspector.cpp&quot;&gt;
-      &lt;Filter&gt;Tests\JavaScriptCore&lt;/Filter&gt;
-    &lt;/ClCompile&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\Tests\WTF\WorkQueue.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;Tests\WTF&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestWebKitAPIxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -82,7 +82,6 @@
</span><span class="cx">                 7CCE7EAE1A411A3400447C4C /* TestsController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC131AA8117131FC00B69727 /* TestsController.cpp */; };
</span><span class="cx">                 7CCE7EAF1A411A3800447C4C /* PlatformUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC575BBF126F5752006F0F12 /* PlatformUtilities.cpp */; };
</span><span class="cx">                 7CCE7EB01A411A4400447C4C /* URLExtras.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93A7EB3C18FA63A4009E7670 /* URLExtras.mm */; };
</span><del>-                7CCE7EB11A411A4B00447C4C /* VMInspector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE217ECC1640A54A0052988B /* VMInspector.cpp */; };
</del><span class="cx">                 7CCE7EB21A411A5100447C4C /* MemoryCacheAddImageToCacheIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7560917719259C59009EF06E /* MemoryCacheAddImageToCacheIOS.mm */; };
</span><span class="cx">                 7CCE7EB31A411A7E00447C4C /* AcceptsFirstMouse.mm in Sources */ = {isa = PBXBuildFile; fileRef = 379028B514FABD92007E6B43 /* AcceptsFirstMouse.mm */; };
</span><span class="cx">                 7CCE7EB41A411A7E00447C4C /* AttributedString.mm in Sources */ = {isa = PBXBuildFile; fileRef = B55F119F1516834F00915916 /* AttributedString.mm */; };
</span><span class="lines">@@ -715,7 +714,6 @@
</span><span class="cx">                 F6F49C6715545C8D0007F39D /* DOMWindowExtensionNoCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMWindowExtensionNoCache.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 F6FDDDD214241AD4004F1729 /* PrivateBrowsingPushStateNoHistoryCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PrivateBrowsingPushStateNoHistoryCallback.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 F6FDDDD514241C48004F1729 /* push-state.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = &quot;push-state.html&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                FE217ECC1640A54A0052988B /* VMInspector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VMInspector.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx"> /* End PBXFileReference section */
</span><span class="cx"> 
</span><span class="cx"> /* Begin PBXFrameworksBuildPhase section */
</span><span class="lines">@@ -1280,7 +1278,6 @@
</span><span class="cx">                 FE217ECB1640A54A0052988B /* JavaScriptCore */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><del>-                                FE217ECC1640A54A0052988B /* VMInspector.cpp */,
</del><span class="cx">                         );
</span><span class="cx">                         path = JavaScriptCore;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -1548,7 +1545,6 @@
</span><span class="cx">                                 7CCE7F171A411AE600447C4C /* UserMedia.cpp in Sources */,
</span><span class="cx">                                 7CCE7F181A411AE600447C4C /* UserMessage.cpp in Sources */,
</span><span class="cx">                                 7CCE7F4A1A411B8E00447C4C /* Vector.cpp in Sources */,
</span><del>-                                7CCE7EB11A411A4B00447C4C /* VMInspector.cpp in Sources */,
</del><span class="cx">                                 0F139E771A423A5B00F590F5 /* WeakObjCPtr.mm in Sources */,
</span><span class="cx">                                 7CCE7F191A411AE600447C4C /* WebArchive.cpp in Sources */,
</span><span class="cx">                                 7CCE7F1A1A411AE600447C4C /* WebCoreStatisticsWithNoWebProcess.cpp in Sources */,
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsJavaScriptCoreVMInspectorcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp (182870 => 182871)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp        2015-04-15 23:21:47 UTC (rev 182870)
+++ trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/VMInspector.cpp        2015-04-16 00:10:57 UTC (rev 182871)
</span><span class="lines">@@ -1,689 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-
-#include &lt;interpreter/VMInspector.h&gt;
-#include &lt;stdarg.h&gt;
-#include &lt;stdio.h&gt;
-
-using namespace JSC;
-
-// There's not much we can test for the VMInspector::printf() case except to
-// make sure it does not crash. Unfortunately, we also don't want all the
-// test strings crowding out stdout. So, we forego the printf tests.
-// NOTE that the most interesting part of VMInspector::printf() is the
-// formatting functionality, and it is are already being tested by the
-// fprintf() and sprintf() cases.
-
-
-// The VMInspector::fprintf() test works by printing the string to a temp file,
-// and then reading the file content back into a buffer, which we, in turn,
-// compare against the expected string.
-
-TEST(JSC, VMInspectorFprintf)
-{
-#if ENABLE(VMINSPECTOR)
-    char actual[1024];
-    char expected[1024];
-    const char* format;
-    const char* expectedLiteral;
-    FILE* file;
-    const char* filename = &quot;/tmp/VMInspectorFprintfTest.txt&quot;;
-    size_t size;
-
-#define OPEN_FILE(file)                         \
-    do {                                        \
-        file = fopen(filename, &quot;w&quot;);            \
-    } while (false)
-
-#define READ_AND_CLOSE_FILE(file, actual)       \
-    do {                                        \
-        fclose(file);                           \
-        file = fopen(filename, &quot;r&quot;);            \
-        fseek(file, 0, SEEK_END);               \
-        size = ftell(file);                     \
-        rewind(file);                           \
-        fread(actual, 1, size, file);           \
-        actual[size] = '\0';                    \
-        fclose(file);                           \
-    } while (false)
-
-    // Testing standard default format specifiers:
-    // Note: should work just like sprintf. So, we just compare against that.
-    memset(actual, 'z', sizeof(actual));
-    // The compiler warning flags are configured to expect a literal string for
-    // ::sprintf below. So, use a #define for this one case to keep the
-    // compiler happy.
-#undef LITERAL_FORMAT
-#define LITERAL_FORMAT &quot;'%%%%'                         ==&gt; '%%'\n&quot;
-
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, LITERAL_FORMAT);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, LITERAL_FORMAT);
-
-#undef LITERAL_FORMAT
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%c', 'x'                    ==&gt; '%c'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 'x');
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 'x');
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*c', 8, 'x'                ==&gt; '%*c'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 8, 'x');
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 8, 'x');
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%s', \&quot;hello world\&quot;          ==&gt; '%s'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, &quot;hello world&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, &quot;hello world&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*s', 8, \&quot;hello world\&quot;      ==&gt; '%*s'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 8, &quot;hello world&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 8, &quot;hello world&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*s', 8, \&quot;hello\&quot;            ==&gt; '%*s'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 8, &quot;hello&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 8, &quot;hello&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%d', 987654321              ==&gt; '%d'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 987654321);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 987654321);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%u', 4276543210u            ==&gt; '%u'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 4276543210u);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 4276543210u);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%u', 0xffffffff             ==&gt; '%u'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 0xffffffff);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 0xffffffff);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%x', 0xffffffff             ==&gt; '%x'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 0xffffffff);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 0xffffffff);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%p', (void*)0xabcdbabe      ==&gt; '%p'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, (void*)0xabcdbabe);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, (void*)0xabcdbabe);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%lu', 1234567890987654321ul ==&gt; '%lu'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 1234567890987654321ul);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 1234567890987654321ul);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%f', 1234.567               ==&gt; '%f'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 1234.567);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%.2f', 1234.567             ==&gt; '%.2f'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 1234.567);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%10.2f', 1234.567           ==&gt; '%10.2f'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 1234.567);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%010.2f', 1234.567          ==&gt; '%010.2f'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 1234.567);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    // Bad / weird formats:
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%5.4', 987654321            ==&gt; '%5.4'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 987654321);
-    READ_AND_CLOSE_FILE(file, actual);
-    expectedLiteral = &quot;'%5.4', 987654321            ==&gt; 'ERROR @ \&quot;%5.4' \&quot;\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%5.4' '%%d', 987654321, 4    ==&gt; '%5.4' '%d'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 987654321, 4);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 987654321, 4);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%w' '%%d', 987654321, 6      ==&gt; '%w' '%d'\n&quot;;
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, format, 987654321, 6);
-    READ_AND_CLOSE_FILE(file, actual);
-    ::sprintf(expected, format, 987654321, 6);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-
-    // Testing the %b extension:
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%b', 0          ==&gt; '%b'\n&quot;, 0);
-    READ_AND_CLOSE_FILE(file, actual);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 0          ==&gt; 'FALSE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%b', 1          ==&gt; '%b'\n&quot;, 1);
-    READ_AND_CLOSE_FILE(file, actual);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 1          ==&gt; 'TRUE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%b', -123456789 ==&gt; '%b'\n&quot;, -123456789);
-    READ_AND_CLOSE_FILE(file, actual);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', -123456789 ==&gt; 'TRUE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%b', 123456789  ==&gt; '%b'\n&quot;, 123456789);
-    READ_AND_CLOSE_FILE(file, actual);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 123456789  ==&gt; 'TRUE'\n&quot;), 0);
-
-
-    // Testing the %J&lt;x&gt; extensions:
-    String str1(&quot;Test WTF String&quot;);
-    String str2(&quot;&quot;);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%Js' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-        &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    expectedLiteral = &quot;'%Js' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; 'Test WTF String' is NOT EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%Js' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-        &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    expectedLiteral = &quot;'%Js' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '' is EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%J+s' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-        &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    expectedLiteral = &quot;'%J+s' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;Test WTF String\&quot;' is NOT EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    OPEN_FILE(file);
-    VMInspector::fprintf(file, &quot;'%%J+s' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-        &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    READ_AND_CLOSE_FILE(file, actual);
-    expectedLiteral = &quot;'%J+s' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;\&quot;' is EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-#undef OPEN_FILE
-#undef READ_AND_CLOSE_FILE
-
-#endif
-}
-
-
-TEST(JSC, VMInspectorSprintf)
-{
-#if ENABLE(VMINSPECTOR)
-    char actual[1024];
-    char expected[1024];
-    const char* format;
-    const char* expectedLiteral;
-
-    // Testing standard default format specifiers:
-    // Note: should work just like sprintf. So, we just compare against that.
-    memset(actual, 'z', sizeof(actual));
-    // The compiler warning flags are configured to expect a literal string for
-    // ::sprintf below. So, use a #define for this one case to keep the
-    // compiler happy.
-#undef LITERAL_FORMAT
-#define LITERAL_FORMAT &quot;'%%%%'                         ==&gt; '%%'\n&quot;
-    VMInspector::sprintf(actual, LITERAL_FORMAT);
-    ::sprintf(expected, LITERAL_FORMAT);
-#undef LITERAL_FORMAT
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%c', 'x'                    ==&gt; '%c'\n&quot;;
-    VMInspector::sprintf(actual, format, 'x');
-    ::sprintf(expected, format, 'x');
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*c', 8, 'x'                ==&gt; '%*c'\n&quot;;
-    VMInspector::sprintf(actual, format, 8, 'x');
-    ::sprintf(expected, format, 8, 'x');
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%s', \&quot;hello world\&quot;          ==&gt; '%s'\n&quot;;
-    VMInspector::sprintf(actual, format, &quot;hello world&quot;);
-    ::sprintf(expected, format, &quot;hello world&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*s', 8, \&quot;hello world\&quot;      ==&gt; '%*s'\n&quot;;
-    VMInspector::sprintf(actual, format, 8, &quot;hello world&quot;);
-    ::sprintf(expected, format, 8, &quot;hello world&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%*s', 8, \&quot;hello\&quot;            ==&gt; '%*s'\n&quot;;
-    VMInspector::sprintf(actual, format, 8, &quot;hello&quot;);
-    ::sprintf(expected, format, 8, &quot;hello&quot;);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%d', 987654321              ==&gt; '%d'\n&quot;;
-    VMInspector::sprintf(actual, format, 987654321);
-    ::sprintf(expected, format, 987654321);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%u', 4276543210u            ==&gt; '%u'\n&quot;;
-    VMInspector::sprintf(actual, format, 4276543210u);
-    ::sprintf(expected, format, 4276543210u);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%u', 0xffffffff             ==&gt; '%u'\n&quot;;
-    VMInspector::sprintf(actual, format, 0xffffffff);
-    ::sprintf(expected, format, 0xffffffff);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%x', 0xffffffff             ==&gt; '%x'\n&quot;;
-    VMInspector::sprintf(actual, format, 0xffffffff);
-    ::sprintf(expected, format, 0xffffffff);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%p', (void*)0xabcdbabe      ==&gt; '%p'\n&quot;;
-    VMInspector::sprintf(actual, format, (void*)0xabcdbabe);
-    ::sprintf(expected, format, (void*)0xabcdbabe);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%lu', 1234567890987654321ul ==&gt; '%lu'\n&quot;;
-    VMInspector::sprintf(actual, format, 1234567890987654321ul);
-    ::sprintf(expected, format, 1234567890987654321ul);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%f', 1234.567               ==&gt; '%f'\n&quot;;
-    VMInspector::sprintf(actual, format, 1234.567);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%.2f', 1234.567             ==&gt; '%.2f'\n&quot;;
-    VMInspector::sprintf(actual, format, 1234.567);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%10.2f', 1234.567           ==&gt; '%10.2f'\n&quot;;
-    VMInspector::sprintf(actual, format, 1234.567);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%010.2f', 1234.567          ==&gt; '%010.2f'\n&quot;;
-    VMInspector::sprintf(actual, format, 1234.567);
-    ::sprintf(expected, format, 1234.567);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    // Bad / weird formats:
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%5.4', 987654321            ==&gt; '%5.4'\n&quot;;
-    VMInspector::sprintf(actual, format, 987654321);
-    expectedLiteral = &quot;'%5.4', 987654321            ==&gt; 'ERROR @ \&quot;%5.4' \&quot;\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%5.4' '%%d', 987654321, 4    ==&gt; '%5.4' '%d'\n&quot;;
-    VMInspector::sprintf(actual, format, 987654321, 4);
-    ::sprintf(expected, format, 987654321, 4);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    format = &quot;'%%w' '%%d', 987654321, 6      ==&gt; '%w' '%d'\n&quot;;
-    VMInspector::sprintf(actual, format, 987654321, 6);
-    ::sprintf(expected, format, 987654321, 6);
-    ASSERT_EQ(strcmp(actual, expected), 0);
-
-
-    // Testing the %b extension:
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%b', 0          ==&gt; '%b'\n&quot;, 0);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 0          ==&gt; 'FALSE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%b', 1          ==&gt; '%b'\n&quot;, 1);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 1          ==&gt; 'TRUE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%b', -123456789 ==&gt; '%b'\n&quot;, -123456789);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', -123456789 ==&gt; 'TRUE'\n&quot;), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%b', 123456789  ==&gt; '%b'\n&quot;, 123456789);
-    ASSERT_EQ(strcmp(actual, &quot;'%b', 123456789  ==&gt; 'TRUE'\n&quot;), 0);
-
-
-    // Testing the %J&lt;x&gt; extensions:
-    String str1(&quot;Test WTF String&quot;);
-    String str2(&quot;&quot;);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%Js' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-        &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    expectedLiteral = &quot;'%Js' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; 'Test WTF String' is NOT EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%Js' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-        &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    expectedLiteral = &quot;'%Js' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '' is EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%J+s' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-        &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    expectedLiteral = &quot;'%J+s' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;Test WTF String\&quot;' is NOT EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-
-    memset(actual, 'z', sizeof(actual));
-    VMInspector::sprintf(actual, &quot;'%%J+s' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-        &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-    expectedLiteral = &quot;'%J+s' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;\&quot;' is EMPTY\n&quot;;
-    ASSERT_EQ(strcmp(actual, expectedLiteral), 0);
-#endif
-}
-
-
-TEST(JSC, VMInspectorSnprintf)
-{
-#if ENABLE(VMINSPECTOR)
-    char actual[1024];
-    char expected[1024];
-    const char* format;
-    const char* expectedLiteral;
-
-    size_t size = 1;
-    while (size &lt;= 100) {
-
-        // Testing standard default format specifiers:
-        // Note: should work just like snprintf. So, we just compare against that.
-        memset(actual, 'z', sizeof(actual));
-        // The compiler warning flags are configured to expect a literal string for
-        // ::snprintf below. So, use a #define for this one case to keep the
-        // compiler happy.
-#undef LITERAL_FORMAT
-#define LITERAL_FORMAT &quot;'%%%%'                         ==&gt; '%%'\n&quot;
-        VMInspector::snprintf(actual, size, LITERAL_FORMAT);
-        ::snprintf(expected, size, LITERAL_FORMAT);
-#undef LITERAL_FORMAT
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%c', 'x'                    ==&gt; '%c'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 'x');
-        ::snprintf(expected, size, format, 'x');
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%*c', 8, 'x'                ==&gt; '%*c'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 8, 'x');
-        ::snprintf(expected, size, format, 8, 'x');
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%s', \&quot;hello world\&quot;          ==&gt; '%s'\n&quot;;
-        VMInspector::snprintf(actual, size, format, &quot;hello world&quot;);
-        ::snprintf(expected, size, format, &quot;hello world&quot;);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%*s', 8, \&quot;hello world\&quot;      ==&gt; '%*s'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 8, &quot;hello world&quot;);
-        ::snprintf(expected, size, format, 8, &quot;hello world&quot;);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%*s', 8, \&quot;hello\&quot;            ==&gt; '%*s'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 8, &quot;hello&quot;);
-        ::snprintf(expected, size, format, 8, &quot;hello&quot;);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%d', 987654321              ==&gt; '%d'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 987654321);
-        ::snprintf(expected, size, format, 987654321);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%u', 4276543210u            ==&gt; '%u'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 4276543210u);
-        ::snprintf(expected, size, format, 4276543210u);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%u', 0xffffffff             ==&gt; '%u'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 0xffffffff);
-        ::snprintf(expected, size, format, 0xffffffff);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%x', 0xffffffff             ==&gt; '%x'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 0xffffffff);
-        ::snprintf(expected, size, format, 0xffffffff);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%p', (void*)0xabcdbabe      ==&gt; '%p'\n&quot;;
-        VMInspector::snprintf(actual, size, format, (void*)0xabcdbabe);
-        ::snprintf(expected, size, format, (void*)0xabcdbabe);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%lu', 1234567890987654321ul ==&gt; '%lu'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 1234567890987654321ul);
-        ::snprintf(expected, size, format, 1234567890987654321ul);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%f', 1234.567               ==&gt; '%f'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 1234.567);
-        ::snprintf(expected, size, format, 1234.567);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%.2f', 1234.567             ==&gt; '%.2f'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 1234.567);
-        ::snprintf(expected, size, format, 1234.567);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%10.2f', 1234.567           ==&gt; '%10.2f'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 1234.567);
-        ::snprintf(expected, size, format, 1234.567);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%010.2f', 1234.567          ==&gt; '%010.2f'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 1234.567);
-        ::snprintf(expected, size, format, 1234.567);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        // Bad / weird formats:
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%5.4', 987654321            ==&gt; '%5.4'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 987654321);
-        expectedLiteral = &quot;'%5.4', 987654321            ==&gt; 'ERROR @ \&quot;%5.4' \&quot;\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%5.4' '%%d', 987654321, 4    ==&gt; '%5.4' '%d'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 987654321, 4);
-        ::snprintf(expected, size, format, 987654321, 4);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        format = &quot;'%%w' '%%d', 987654321, 6      ==&gt; '%w' '%d'\n&quot;;
-        VMInspector::snprintf(actual, size, format, 987654321, 6);
-        ::snprintf(expected, size, format, 987654321, 6);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-
-        // Testing the %b extension:
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%b', 0          ==&gt; '%b'\n&quot;, 0);
-        expectedLiteral = &quot;'%b', 0          ==&gt; 'FALSE'\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%b', 1          ==&gt; '%b'\n&quot;, 1);
-        expectedLiteral = &quot;'%b', 1          ==&gt; 'TRUE'\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%b', -123456789 ==&gt; '%b'\n&quot;, -123456789);
-        expectedLiteral = &quot;'%b', -123456789 ==&gt; 'TRUE'\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%b', 123456789  ==&gt; '%b'\n&quot;, 123456789);
-        expectedLiteral = &quot;'%b', 123456789  ==&gt; 'TRUE'\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        // Testing the %J&lt;x&gt; extensions:
-        String str1(&quot;Test WTF String&quot;);
-        String str2(&quot;&quot;);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%Js' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-            &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-        expectedLiteral = &quot;'%Js' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; 'Test WTF String' is NOT EMPTY\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%Js' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '%Js' is %s\n&quot;,
-            &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-        expectedLiteral = &quot;'%Js' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot;  ==&gt; '' is EMPTY\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%J+s' is %%s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-            &amp;str1, str1.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-        expectedLiteral = &quot;'%J+s' is %s, &amp;str1, str1.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;Test WTF String\&quot;' is NOT EMPTY\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        memset(actual, 'z', sizeof(actual));
-        VMInspector::snprintf(actual, size, &quot;'%%J+s' is %%s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; '%J+s' is %s\n&quot;,
-            &amp;str2, str2.isEmpty() ? &quot;EMPTY&quot; : &quot;NOT EMPTY&quot;);
-        expectedLiteral = &quot;'%J+s' is %s, &amp;str2, str2.isEmpty()?\&quot;EMPTY\&quot;:\&quot;NOT EMPTY\&quot; ==&gt; 'WTF::String \&quot;\&quot;' is EMPTY\n&quot;;
-        ::snprintf(expected, size, &quot;%s&quot;, expectedLiteral);
-        ASSERT_EQ(strcmp(actual, expected), 0);
-
-        // Test lower sizes more densely, and then space out to larger sizes.
-        // We're doing this because the lower sizes might be interesting, but
-        // for expediency, we don't want to test at this fine grain resolution
-        // for all possible sizes. Hence, we accelerate the rate once we're
-        // pass the interesting small sizes.
-        if (size &lt;= 5)
-            size++;
-        else
-            size += 4;
-    }
-#endif
-}
</del></span></pre>
</div>
</div>

</body>
</html>