<!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>[38061] 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/38061">38061</a></dd>
<dt>Author</dt> <dd>cwzwarich@webkit.org</dd>
<dt>Date</dt> <dd>2008-10-31 18:05:21 -0700 (Fri, 31 Oct 2008)</dd>
</dl>

<h3>Log Message</h3>
<pre>2008-10-31  Cameron Zwarich  &lt;zwarich@apple.com&gt;

        Rubber-stamped by Geoff Garen.

        Rename SourceRange.h to SourceCode.h.

        JavaScriptCore:

        * API/JSBase.cpp:
        * GNUmakefile.am:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * VM/CodeBlock.h:
        * kjs/SourceCode.h: Copied from kjs/SourceRange.h.
        * kjs/SourceRange.h: Removed.
        * kjs/grammar.y:
        * kjs/lexer.h:
        * kjs/nodes.cpp:
        (JSC::ForInNode::ForInNode):
        * kjs/nodes.h:
        (JSC::ThrowableExpressionData::setExceptionSourceCode):

        WebCore:

        * ForwardingHeaders/kjs/SourceCode.h: Copied from ForwardingHeaders/kjs/SourceRange.h.
        * ForwardingHeaders/kjs/SourceRange.h: Removed.
        * bindings/js/StringSourceProvider.h:
        * bridge/NP_jsobject.cpp:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkJavaScriptCoreAPIJSBasecpp">trunk/JavaScriptCore/API/JSBase.cpp</a></li>
<li><a href="#trunkJavaScriptCoreChangeLog">trunk/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkJavaScriptCoreGNUmakefileam">trunk/JavaScriptCore/GNUmakefile.am</a></li>
<li><a href="#trunkJavaScriptCoreJavaScriptCorevcprojJavaScriptCoreJavaScriptCorevcproj">trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj</a></li>
<li><a href="#trunkJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj">trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkJavaScriptCoreVMCodeBlockh">trunk/JavaScriptCore/VM/CodeBlock.h</a></li>
<li><a href="#trunkJavaScriptCorekjsgrammary">trunk/JavaScriptCore/kjs/grammar.y</a></li>
<li><a href="#trunkJavaScriptCorekjslexerh">trunk/JavaScriptCore/kjs/lexer.h</a></li>
<li><a href="#trunkJavaScriptCorekjsnodescpp">trunk/JavaScriptCore/kjs/nodes.cpp</a></li>
<li><a href="#trunkJavaScriptCorekjsnodesh">trunk/JavaScriptCore/kjs/nodes.h</a></li>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCorebindingsjsStringSourceProviderh">trunk/WebCore/bindings/js/StringSourceProvider.h</a></li>
<li><a href="#trunkWebCorebridgeNP_jsobjectcpp">trunk/WebCore/bridge/NP_jsobject.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkJavaScriptCorekjsSourceCodeh">trunk/JavaScriptCore/kjs/SourceCode.h</a></li>
<li><a href="#trunkWebCoreForwardingHeaderskjsSourceCodeh">trunk/WebCore/ForwardingHeaders/kjs/SourceCode.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkJavaScriptCorekjsSourceRangeh">trunk/JavaScriptCore/kjs/SourceRange.h</a></li>
<li><a href="#trunkWebCoreForwardingHeaderskjsSourceRangeh">trunk/WebCore/ForwardingHeaders/kjs/SourceRange.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJavaScriptCoreAPIJSBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/API/JSBase.cpp (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/API/JSBase.cpp        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/API/JSBase.cpp        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> #include &quot;APICast.h&quot;
</span><span class="cx"> #include &quot;completion.h&quot;
</span><span class="cx"> #include &quot;OpaqueJSString.h&quot;
</span><del>-#include &quot;SourceRange.h&quot;
</del><ins>+#include &quot;SourceCode.h&quot;
</ins><span class="cx"> #include &lt;kjs/ExecState.h&gt;
</span><span class="cx"> #include &lt;kjs/InitializeThreading.h&gt;
</span><span class="cx"> #include &lt;kjs/interpreter.h&gt;
</span></span></pre></div>
<a id="trunkJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/ChangeLog (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/ChangeLog        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/ChangeLog        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -1,5 +1,25 @@
</span><span class="cx"> 2008-10-31  Cameron Zwarich  &lt;zwarich@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Rubber-stamped by Geoff Garen.
+
+        Rename SourceRange.h to SourceCode.h.
+
+        * API/JSBase.cpp:
+        * GNUmakefile.am:
+        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
+        * JavaScriptCore.xcodeproj/project.pbxproj:
+        * VM/CodeBlock.h:
+        * kjs/SourceCode.h: Copied from kjs/SourceRange.h.
+        * kjs/SourceRange.h: Removed.
+        * kjs/grammar.y:
+        * kjs/lexer.h:
+        * kjs/nodes.cpp:
+        (JSC::ForInNode::ForInNode):
+        * kjs/nodes.h:
+        (JSC::ThrowableExpressionData::setExceptionSourceCode):
+
+2008-10-31  Cameron Zwarich  &lt;zwarich@apple.com&gt;
+
</ins><span class="cx">         Reviewed by Darin Adler.
</span><span class="cx"> 
</span><span class="cx">         Bug 22019: Move JSC::Interpreter::shouldPrintExceptions() to WebCore::Console
</span></span></pre></div>
<a id="trunkJavaScriptCoreGNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/GNUmakefile.am (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/GNUmakefile.am        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/GNUmakefile.am        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx">         JavaScriptCore/kjs/ScopeChain.h \
</span><span class="cx">         JavaScriptCore/kjs/ScopeChainMark.h \
</span><span class="cx">         JavaScriptCore/kjs/SourceProvider.h \
</span><del>-        JavaScriptCore/kjs/SourceRange.h \
</del><ins>+        JavaScriptCore/kjs/SourceCode.h \
</ins><span class="cx">         JavaScriptCore/kjs/SymbolTable.h \
</span><span class="cx">         JavaScriptCore/kjs/Tracing.h \
</span><span class="cx">         JavaScriptCore/kjs/TypeInfo.h \
</span></span></pre></div>
<a id="trunkJavaScriptCoreJavaScriptCorevcprojJavaScriptCoreJavaScriptCorevcproj"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -833,7 +833,7 @@
</span><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span><span class="cx">                         &lt;File
</span><del>-                                RelativePath=&quot;..\..\kjs\SourceRange.h&quot;
</del><ins>+                                RelativePath=&quot;..\..\kjs\SourceCode.h&quot;
</ins><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span><span class="cx">                         &lt;File
</span></span></pre></div>
<a id="trunkJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -250,7 +250,7 @@
</span><span class="cx">                 BC18C4610E16F5CD00B34460 /* ScopeChain.h in Headers */ = {isa = PBXBuildFile; fileRef = 9374D3A7038D9D74008635CE /* ScopeChain.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BC18C4620E16F5CD00B34460 /* SegmentedVector.h in Headers */ = {isa = PBXBuildFile; fileRef = A7C31DA80DBEBA4300FDF8EB /* SegmentedVector.h */; };
</span><span class="cx">                 BC18C4630E16F5CD00B34460 /* SourceProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 65E866ED0DD59AFA00A2B2A1 /* SourceProvider.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                BC18C4640E16F5CD00B34460 /* SourceRange.h in Headers */ = {isa = PBXBuildFile; fileRef = 65E866EE0DD59AFA00A2B2A1 /* SourceRange.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><ins>+                BC18C4640E16F5CD00B34460 /* SourceCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 65E866EE0DD59AFA00A2B2A1 /* SourceCode.h */; settings = {ATTRIBUTES = (Private, ); }; };
</ins><span class="cx">                 BC18C4660E16F5CD00B34460 /* StringConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = BC18C3C10E16EE3300B34460 /* StringConstructor.h */; };
</span><span class="cx">                 BC18C4670E16F5CD00B34460 /* StringExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = E11D51750B2E798D0056C188 /* StringExtras.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BC18C4680E16F5CD00B34460 /* StringObject.h in Headers */ = {isa = PBXBuildFile; fileRef = BC18C3C30E16EE3300B34460 /* StringObject.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -513,7 +513,7 @@
</span><span class="cx">                 65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FastMalloc.cpp; sourceTree = &quot;&lt;group&gt;&quot;; tabWidth = 8; };
</span><span class="cx">                 65E217BA08E7EECC0023E5F6 /* FastMalloc.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = FastMalloc.h; sourceTree = &quot;&lt;group&gt;&quot;; tabWidth = 8; };
</span><span class="cx">                 65E866ED0DD59AFA00A2B2A1 /* SourceProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SourceProvider.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                65E866EE0DD59AFA00A2B2A1 /* SourceRange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SourceRange.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                65E866EE0DD59AFA00A2B2A1 /* SourceCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SourceCode.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 65EA4C99092AF9E20093D800 /* JSLock.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSLock.cpp; sourceTree = &quot;&lt;group&gt;&quot;; tabWidth = 8; };
</span><span class="cx">                 65EA4C9A092AF9E20093D800 /* JSLock.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = JSLock.h; sourceTree = &quot;&lt;group&gt;&quot;; tabWidth = 8; };
</span><span class="cx">                 65EA73620BAE35D1001BB560 /* CommonIdentifiers.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CommonIdentifiers.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -1126,7 +1126,7 @@
</span><span class="cx">                                 9374D3A7038D9D74008635CE /* ScopeChain.h */,
</span><span class="cx">                                 7E2C6C980D31C6B6002D44E2 /* ScopeChainMark.h */,
</span><span class="cx">                                 65E866ED0DD59AFA00A2B2A1 /* SourceProvider.h */,
</span><del>-                                65E866EE0DD59AFA00A2B2A1 /* SourceRange.h */,
</del><ins>+                                65E866EE0DD59AFA00A2B2A1 /* SourceCode.h */,
</ins><span class="cx">                                 14A396A60CD2933100B5B4FF /* SymbolTable.h */,
</span><span class="cx">                                 5D53726D0E1C546B0021E549 /* Tracing.d */,
</span><span class="cx">                                 5D53726E0E1C54880021E549 /* Tracing.h */,
</span><span class="lines">@@ -1486,7 +1486,7 @@
</span><span class="cx">                                 BC18C4610E16F5CD00B34460 /* ScopeChain.h in Headers */,
</span><span class="cx">                                 BC18C4620E16F5CD00B34460 /* SegmentedVector.h in Headers */,
</span><span class="cx">                                 BC18C4630E16F5CD00B34460 /* SourceProvider.h in Headers */,
</span><del>-                                BC18C4640E16F5CD00B34460 /* SourceRange.h in Headers */,
</del><ins>+                                BC18C4640E16F5CD00B34460 /* SourceCode.h in Headers */,
</ins><span class="cx">                                 BC18C4660E16F5CD00B34460 /* StringConstructor.h in Headers */,
</span><span class="cx">                                 BC18C4670E16F5CD00B34460 /* StringExtras.h in Headers */,
</span><span class="cx">                                 BC18C4680E16F5CD00B34460 /* StringObject.h in Headers */,
</span></span></pre></div>
<a id="trunkJavaScriptCoreVMCodeBlockh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/VM/CodeBlock.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/VM/CodeBlock.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/VM/CodeBlock.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> #include &quot;JSGlobalObject.h&quot;
</span><span class="cx"> #include &quot;nodes.h&quot;
</span><span class="cx"> #include &quot;Parser.h&quot;
</span><del>-#include &quot;SourceRange.h&quot;
</del><ins>+#include &quot;SourceCode.h&quot;
</ins><span class="cx"> #include &quot;ustring.h&quot;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span></span></pre></div>
<a id="trunkJavaScriptCorekjsSourceCodehfromrev38058trunkJavaScriptCorekjsSourceRangeh"></a>
<div class="copfile"><h4>Copied: trunk/JavaScriptCore/kjs/SourceCode.h (from rev 38058, trunk/JavaScriptCore/kjs/SourceRange.h) (0 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/SourceCode.h                                (rev 0)
+++ trunk/JavaScriptCore/kjs/SourceCode.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -0,0 +1,90 @@
</span><ins>+/*
+ * Copyright (C) 2008 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.
+ * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
+ *     its contributors may be used to endorse or promote products derived
+ *     from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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.
+ */
+
+#ifndef SourceCode_h
+#define SourceCode_h
+
+#include &quot;SourceProvider.h&quot;
+#include &lt;wtf/RefPtr.h&gt;
+
+namespace JSC {
+
+    class SourceCode {
+    public:
+        SourceCode()
+            : m_startChar(0)
+            , m_endChar(0)
+            , m_firstLine(0)
+        {
+        }
+
+        SourceCode(PassRefPtr&lt;SourceProvider&gt; provider, int firstLine = 1)
+            : m_provider(provider)
+            , m_startChar(0)
+            , m_endChar(m_provider-&gt;length())
+            , m_firstLine(std::max(firstLine, 1))
+        {
+        }
+
+        SourceCode(PassRefPtr&lt;SourceProvider&gt; provider, int start, int end, int firstLine)
+            : m_provider(provider)
+            , m_startChar(start)
+            , m_endChar(end)
+            , m_firstLine(std::max(firstLine, 1))
+        {
+        }
+
+        UString toString() const
+        {
+            if (!m_provider)
+                return UString();
+            return m_provider-&gt;getRange(m_startChar, m_endChar);
+        }
+        
+        bool isNull() const { return !m_provider; }
+        SourceProvider* provider() const { return m_provider.get(); }
+        int firstLine() const { return m_firstLine; }
+        int startOffset() const { return m_startChar; }
+        const UChar* data() const { return m_provider-&gt;data() + m_startChar; }
+        int length() const { return m_endChar - m_startChar; }
+
+    private:
+        RefPtr&lt;SourceProvider&gt; m_provider;
+        int m_startChar;
+        int m_endChar;
+        int m_firstLine;
+    };
+
+    inline SourceCode makeSource(const UString&amp; source, const UString&amp; url = UString(), int firstLine = 1)
+    {
+        return SourceCode(UStringSourceProvider::create(source, url), firstLine);
+    }
+
+} // namespace JSC
+
+#endif // SourceCode_h
</ins></span></pre></div>
<a id="trunkJavaScriptCorekjsSourceCodeh"></a>
<div class="propset"><h4>Property changes: trunk/JavaScriptCore/kjs/SourceCode.h</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="addfile"><h4>Added: svn:mergeinfo</h4></div>
<a id="trunkJavaScriptCorekjsSourceRangeh"></a>
<div class="delfile"><h4>Deleted: trunk/JavaScriptCore/kjs/SourceRange.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/SourceRange.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/kjs/SourceRange.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -1,92 +0,0 @@
</span><del>-/*
- * Copyright (C) 2008 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.
- * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; 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 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.
- */
-
-#ifndef SourceCode_h
-#define SourceCode_h
-
-// FIXME: Rename this file to &quot;SourceCode.h&quot;
-
-#include &quot;SourceProvider.h&quot;
-#include &lt;wtf/RefPtr.h&gt;
-
-namespace JSC {
-
-    class SourceCode {
-    public:
-        SourceCode()
-            : m_startChar(0)
-            , m_endChar(0)
-            , m_firstLine(0)
-        {
-        }
-
-        SourceCode(PassRefPtr&lt;SourceProvider&gt; provider, int firstLine = 1)
-            : m_provider(provider)
-            , m_startChar(0)
-            , m_endChar(m_provider-&gt;length())
-            , m_firstLine(std::max(firstLine, 1))
-        {
-        }
-
-        SourceCode(PassRefPtr&lt;SourceProvider&gt; provider, int start, int end, int firstLine)
-            : m_provider(provider)
-            , m_startChar(start)
-            , m_endChar(end)
-            , m_firstLine(std::max(firstLine, 1))
-        {
-        }
-
-        UString toString() const
-        {
-            if (!m_provider)
-                return UString();
-            return m_provider-&gt;getRange(m_startChar, m_endChar);
-        }
-        
-        bool isNull() const { return !m_provider; }
-        SourceProvider* provider() const { return m_provider.get(); }
-        int firstLine() const { return m_firstLine; }
-        int startOffset() const { return m_startChar; }
-        const UChar* data() const { return m_provider-&gt;data() + m_startChar; }
-        int length() const { return m_endChar - m_startChar; }
-
-    private:
-        RefPtr&lt;SourceProvider&gt; m_provider;
-        int m_startChar;
-        int m_endChar;
-        int m_firstLine;
-    };
-
-    inline SourceCode makeSource(const UString&amp; source, const UString&amp; url = UString(), int firstLine = 1)
-    {
-        return SourceCode(UStringSourceProvider::create(source, url), firstLine);
-    }
-
-} // namespace JSC
-
-#endif // SourceCode_h
</del></span></pre></div>
<a id="trunkJavaScriptCorekjsgrammary"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/kjs/grammar.y (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/grammar.y        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/kjs/grammar.y        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> #define LEXER (GLOBAL_DATA-&gt;lexer)
</span><span class="cx"> 
</span><span class="cx"> #define AUTO_SEMICOLON do { if (!allowAutomaticSemicolon(*LEXER, yychar)) YYABORT; } while (0)
</span><del>-#define SET_EXCEPTION_LOCATION(node, start, divot, end) node-&gt;setExceptionSourceRange((divot), (divot) - (start), (end) - (divot))
</del><ins>+#define SET_EXCEPTION_LOCATION(node, start, divot, end) node-&gt;setExceptionSourceCode((divot), (divot) - (start), (end) - (divot))
</ins><span class="cx"> #define DBG(l, s, e) (l)-&gt;setLoc((s).first_line, (e).last_line)
</span><span class="cx"> 
</span><span class="cx"> using namespace JSC;
</span></span></pre></div>
<a id="trunkJavaScriptCorekjslexerh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/kjs/lexer.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/lexer.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/kjs/lexer.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> #include &quot;lookup.h&quot;
</span><span class="cx"> #include &quot;ustring.h&quot;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><del>-#include &quot;SourceRange.h&quot;
</del><ins>+#include &quot;SourceCode.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkJavaScriptCorekjsnodescpp"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/kjs/nodes.cpp (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/nodes.cpp        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/kjs/nodes.cpp        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -1284,7 +1284,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (in) {
</span><span class="cx">         AssignResolveNode* node = new AssignResolveNode(globalData, ident, in, true);
</span><del>-        node-&gt;setExceptionSourceRange(divot, divot - startOffset, endOffset - divot);
</del><ins>+        node-&gt;setExceptionSourceCode(divot, divot - startOffset, endOffset - divot);
</ins><span class="cx">         m_init = node;
</span><span class="cx">     }
</span><span class="cx">     // for( var foo = bar in baz )
</span></span></pre></div>
<a id="trunkJavaScriptCorekjsnodesh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/kjs/nodes.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/kjs/nodes.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/JavaScriptCore/kjs/nodes.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> #include &quot;Opcode.h&quot;
</span><span class="cx"> #include &quot;RegisterID.h&quot;
</span><span class="cx"> #include &quot;ResultType.h&quot;
</span><del>-#include &quot;SourceRange.h&quot;
</del><ins>+#include &quot;SourceCode.h&quot;
</ins><span class="cx"> #include &quot;SymbolTable.h&quot;
</span><span class="cx"> #include &quot;regexp.h&quot;
</span><span class="cx"> #include &lt;wtf/ListRefPtr.h&gt;
</span><span class="lines">@@ -346,7 +346,7 @@
</span><span class="cx">         {
</span><span class="cx">         }
</span><span class="cx">         
</span><del>-        void setExceptionSourceRange(unsigned divot, unsigned startOffset, unsigned endOffset)
</del><ins>+        void setExceptionSourceCode(unsigned divot, unsigned startOffset, unsigned endOffset)
</ins><span class="cx">         {
</span><span class="cx">             m_divot = divot;
</span><span class="cx">             m_startOffset = startOffset;
</span></span></pre></div>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/WebCore/ChangeLog        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -1,5 +1,16 @@
</span><span class="cx"> 2008-10-31  Cameron Zwarich  &lt;zwarich@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Rubber-stamped by Geoff Garen.
+
+        Rename SourceRange.h to SourceCode.h.
+
+        * ForwardingHeaders/kjs/SourceCode.h: Copied from ForwardingHeaders/kjs/SourceRange.h.
+        * ForwardingHeaders/kjs/SourceRange.h: Removed.
+        * bindings/js/StringSourceProvider.h:
+        * bridge/NP_jsobject.cpp:
+
+2008-10-31  Cameron Zwarich  &lt;zwarich@apple.com&gt;
+
</ins><span class="cx">         Reviewed by Darin Adler.
</span><span class="cx"> 
</span><span class="cx">         Bug 22019: Move JSC::Interpreter::shouldPrintExceptions() to WebCore::Console
</span></span></pre></div>
<a id="trunkWebCoreForwardingHeaderskjsSourceCodehfromrev38058trunkWebCoreForwardingHeaderskjsSourceRangeh"></a>
<div class="copfile"><h4>Copied: trunk/WebCore/ForwardingHeaders/kjs/SourceCode.h (from rev 38058, trunk/WebCore/ForwardingHeaders/kjs/SourceRange.h) (0 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ForwardingHeaders/kjs/SourceCode.h                                (rev 0)
+++ trunk/WebCore/ForwardingHeaders/kjs/SourceCode.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+#include &lt;JavaScriptCore/SourceCode.h&gt;
</ins></span></pre></div>
<a id="trunkWebCoreForwardingHeaderskjsSourceCodeh"></a>
<div class="propset"><h4>Property changes: trunk/WebCore/ForwardingHeaders/kjs/SourceCode.h</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="addfile"><h4>Added: svn:mergeinfo</h4></div>
<a id="trunkWebCoreForwardingHeaderskjsSourceRangeh"></a>
<div class="delfile"><h4>Deleted: trunk/WebCore/ForwardingHeaders/kjs/SourceRange.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ForwardingHeaders/kjs/SourceRange.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/WebCore/ForwardingHeaders/kjs/SourceRange.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-#include &lt;JavaScriptCore/SourceRange.h&gt;
</del></span></pre></div>
<a id="trunkWebCorebindingsjsStringSourceProviderh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/bindings/js/StringSourceProvider.h (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/bindings/js/StringSourceProvider.h        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/WebCore/bindings/js/StringSourceProvider.h        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #ifndef StringSourceProvider_h
</span><span class="cx"> #define StringSourceProvider_h
</span><span class="cx"> 
</span><del>-#include &lt;kjs/SourceRange.h&gt;
</del><ins>+#include &lt;kjs/SourceCode.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebCorebridgeNP_jsobjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/bridge/NP_jsobject.cpp (38060 => 38061)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/bridge/NP_jsobject.cpp        2008-11-01 00:35:14 UTC (rev 38060)
+++ trunk/WebCore/bridge/NP_jsobject.cpp        2008-11-01 01:05:21 UTC (rev 38061)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx"> #include &lt;runtime/JSGlobalObject.h&gt;
</span><span class="cx"> #include &lt;kjs/JSLock.h&gt;
</span><span class="cx"> #include &lt;kjs/PropertyNameArray.h&gt;
</span><del>-#include &lt;kjs/SourceRange.h&gt;
</del><ins>+#include &lt;kjs/SourceCode.h&gt;
</ins><span class="cx"> #include &lt;kjs/completion.h&gt;
</span><span class="cx"> #include &lt;kjs/interpreter.h&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>