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

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

<h3>Log Message</h3>
<pre>Inline functions in URLParser
https://bugs.webkit.org/show_bug.cgi?id=162106

Reviewed by Antti Koivisto.

No change in behavior. Just make URLParser faster.

* platform/URLParser.cpp:
(WebCore::isC0Control):
(WebCore::isC0ControlOrSpace):
(WebCore::isTabOrNewline):
(WebCore::isInSimpleEncodeSet):
(WebCore::isInDefaultEncodeSet):
(WebCore::isInUserInfoEncodeSet):
(WebCore::isInvalidDomainCharacter):
(WebCore::isPercentOrNonASCII):
(WebCore::isSlashQuestionOrHash):
(WebCore::isWindowsDriveLetter):
(WebCore::shouldCopyFileURL):
(WebCore::percentEncode):
(WebCore::utf8PercentEncode):
(WebCore::utf8PercentEncodeQuery):
(WebCore::encodeQuery):
(WebCore::isDefaultPort):
(WebCore::isSpecialScheme):
(WebCore::copyASCIIStringUntil):
(WebCore::isPercentEncodedDot):
(WebCore::isSingleDotPathSegment):
(WebCore::isDoubleDotPathSegment):
(WebCore::consumeSingleDotPathSegment):
(WebCore::consumeDoubleDotPathSegment):
(WebCore::serializeIPv4):
(WebCore::zeroSequenceLength):
(WebCore::findLongestZeroSequence):
(WebCore::serializeIPv6Piece):
(WebCore::serializeIPv6):
(WebCore::parseIPv4Number):
(WebCore::pow256):
(WebCore::parseIPv4Host):
(WebCore::parseIPv6Host):
(WebCore::percentDecode):
(WebCore::containsOnlyASCII):
(WebCore::domainToASCII):
(WebCore::hasInvalidDomainCharacter):
(WebCore::formURLDecode):
(WebCore::serializeURLEncodedForm):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformURLParsercpp">trunk/Source/WebCore/platform/URLParser.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (206074 => 206075)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-17 11:14:38 UTC (rev 206074)
+++ trunk/Source/WebCore/ChangeLog        2016-09-18 05:38:24 UTC (rev 206075)
</span><span class="lines">@@ -1,3 +1,52 @@
</span><ins>+2016-09-17  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Inline functions in URLParser
+        https://bugs.webkit.org/show_bug.cgi?id=162106
+
+        Reviewed by Antti Koivisto.
+
+        No change in behavior. Just make URLParser faster.
+
+        * platform/URLParser.cpp:
+        (WebCore::isC0Control):
+        (WebCore::isC0ControlOrSpace):
+        (WebCore::isTabOrNewline):
+        (WebCore::isInSimpleEncodeSet):
+        (WebCore::isInDefaultEncodeSet):
+        (WebCore::isInUserInfoEncodeSet):
+        (WebCore::isInvalidDomainCharacter):
+        (WebCore::isPercentOrNonASCII):
+        (WebCore::isSlashQuestionOrHash):
+        (WebCore::isWindowsDriveLetter):
+        (WebCore::shouldCopyFileURL):
+        (WebCore::percentEncode):
+        (WebCore::utf8PercentEncode):
+        (WebCore::utf8PercentEncodeQuery):
+        (WebCore::encodeQuery):
+        (WebCore::isDefaultPort):
+        (WebCore::isSpecialScheme):
+        (WebCore::copyASCIIStringUntil):
+        (WebCore::isPercentEncodedDot):
+        (WebCore::isSingleDotPathSegment):
+        (WebCore::isDoubleDotPathSegment):
+        (WebCore::consumeSingleDotPathSegment):
+        (WebCore::consumeDoubleDotPathSegment):
+        (WebCore::serializeIPv4):
+        (WebCore::zeroSequenceLength):
+        (WebCore::findLongestZeroSequence):
+        (WebCore::serializeIPv6Piece):
+        (WebCore::serializeIPv6):
+        (WebCore::parseIPv4Number):
+        (WebCore::pow256):
+        (WebCore::parseIPv4Host):
+        (WebCore::parseIPv6Host):
+        (WebCore::percentDecode):
+        (WebCore::containsOnlyASCII):
+        (WebCore::domainToASCII):
+        (WebCore::hasInvalidDomainCharacter):
+        (WebCore::formURLDecode):
+        (WebCore::serializeURLEncodedForm):
+
</ins><span class="cx"> 2016-09-17  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         MainThreadBridge needs an isolatedCopy() of SecurityOrigin
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformURLParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/URLParser.cpp (206074 => 206075)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/URLParser.cpp        2016-09-17 11:14:38 UTC (rev 206074)
+++ trunk/Source/WebCore/platform/URLParser.cpp        2016-09-18 05:38:24 UTC (rev 206075)
</span><span class="lines">@@ -383,19 +383,19 @@
</span><span class="cx">     QueryPercent, // 0xFF
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-template&lt;typename CharacterType&gt; static bool isC0Control(CharacterType character) { return character &lt;= 0x1F; }
-template&lt;typename CharacterType&gt; static bool isC0ControlOrSpace(CharacterType character) { return character &lt;= 0x20; }
-template&lt;typename CharacterType&gt; static bool isTabOrNewline(CharacterType character) { return character &lt;= 0xD &amp;&amp; character &gt;= 0x9 &amp;&amp; character != 0xB &amp;&amp; character != 0xC; }
-template&lt;typename CharacterType&gt; static bool isInSimpleEncodeSet(CharacterType character) { return character &gt; 0x7E || isC0Control(character); }
-template&lt;typename CharacterType&gt; static bool isInDefaultEncodeSet(CharacterType character) { return character &gt; 0x7E || characterClassTable[character] &amp; Default; }
-template&lt;typename CharacterType&gt; static bool isInUserInfoEncodeSet(CharacterType character) { return character &gt; 0x7E || characterClassTable[character] &amp; UserInfo; }
-template&lt;typename CharacterType&gt; static bool isInvalidDomainCharacter(CharacterType character) { return character &lt;= ']' &amp;&amp; characterClassTable[character] &amp; InvalidDomain; }
-template&lt;typename CharacterType&gt; static bool isPercentOrNonASCII(CharacterType character) { return !isASCII(character) || character == '%'; }
-template&lt;typename CharacterType&gt; static bool isSlashQuestionOrHash(CharacterType character) { return character &lt;= '\\' &amp;&amp; characterClassTable[character] &amp; SlashQuestionOrHash; }
</del><ins>+template&lt;typename CharacterType&gt; inline static bool isC0Control(CharacterType character) { return character &lt;= 0x1F; }
+template&lt;typename CharacterType&gt; inline static bool isC0ControlOrSpace(CharacterType character) { return character &lt;= 0x20; }
+template&lt;typename CharacterType&gt; inline static bool isTabOrNewline(CharacterType character) { return character &lt;= 0xD &amp;&amp; character &gt;= 0x9 &amp;&amp; character != 0xB &amp;&amp; character != 0xC; }
+template&lt;typename CharacterType&gt; inline static bool isInSimpleEncodeSet(CharacterType character) { return character &gt; 0x7E || isC0Control(character); }
+template&lt;typename CharacterType&gt; inline static bool isInDefaultEncodeSet(CharacterType character) { return character &gt; 0x7E || characterClassTable[character] &amp; Default; }
+template&lt;typename CharacterType&gt; inline static bool isInUserInfoEncodeSet(CharacterType character) { return character &gt; 0x7E || characterClassTable[character] &amp; UserInfo; }
+template&lt;typename CharacterType&gt; inline static bool isInvalidDomainCharacter(CharacterType character) { return character &lt;= ']' &amp;&amp; characterClassTable[character] &amp; InvalidDomain; }
+template&lt;typename CharacterType&gt; inline static bool isPercentOrNonASCII(CharacterType character) { return !isASCII(character) || character == '%'; }
+template&lt;typename CharacterType&gt; inline static bool isSlashQuestionOrHash(CharacterType character) { return character &lt;= '\\' &amp;&amp; characterClassTable[character] &amp; SlashQuestionOrHash; }
</ins><span class="cx"> static bool shouldPercentEncodeQueryByte(uint8_t byte) { return characterClassTable[byte] &amp; QueryPercent; }
</span><span class="cx">     
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static bool isWindowsDriveLetter(CodePointIterator&lt;CharacterType&gt; iterator)
</del><ins>+inline static bool isWindowsDriveLetter(CodePointIterator&lt;CharacterType&gt; iterator)
</ins><span class="cx"> {
</span><span class="cx">     if (iterator.atEnd() || !isASCIIAlpha(*iterator))
</span><span class="cx">         return false;
</span><span class="lines">@@ -405,7 +405,7 @@
</span><span class="cx">     return *iterator == ':' || *iterator == '|';
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool isWindowsDriveLetter(const Vector&lt;LChar&gt;&amp; buffer, size_t index)
</del><ins>+inline static bool isWindowsDriveLetter(const Vector&lt;LChar&gt;&amp; buffer, size_t index)
</ins><span class="cx"> {
</span><span class="cx">     if (buffer.size() &lt; index + 2)
</span><span class="cx">         return false;
</span><span class="lines">@@ -413,7 +413,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static bool shouldCopyFileURL(CodePointIterator&lt;CharacterType&gt; iterator)
</del><ins>+inline static bool shouldCopyFileURL(CodePointIterator&lt;CharacterType&gt; iterator)
</ins><span class="cx"> {
</span><span class="cx">     if (isWindowsDriveLetter(iterator))
</span><span class="cx">         return true;
</span><span class="lines">@@ -428,7 +428,7 @@
</span><span class="cx">     return !isSlashQuestionOrHash(*iterator);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void percentEncode(uint8_t byte, Vector&lt;LChar&gt;&amp; buffer)
</del><ins>+inline static void percentEncode(uint8_t byte, Vector&lt;LChar&gt;&amp; buffer)
</ins><span class="cx"> {
</span><span class="cx">     buffer.append('%');
</span><span class="cx">     buffer.append(upperNibbleToASCIIHexDigit(byte));
</span><span class="lines">@@ -435,7 +435,7 @@
</span><span class="cx">     buffer.append(lowerNibbleToASCIIHexDigit(byte));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void utf8PercentEncode(UChar32 codePoint, Vector&lt;LChar&gt;&amp; destination, bool(*isInCodeSet)(UChar32))
</del><ins>+inline static void utf8PercentEncode(UChar32 codePoint, Vector&lt;LChar&gt;&amp; destination, bool(*isInCodeSet)(UChar32))
</ins><span class="cx"> {
</span><span class="cx">     if (isInCodeSet(codePoint)) {
</span><span class="cx">         uint8_t buffer[U8_MAX_LENGTH];
</span><span class="lines">@@ -451,7 +451,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void utf8PercentEncodeQuery(UChar32 codePoint, Vector&lt;LChar&gt;&amp; destination)
</del><ins>+inline static void utf8PercentEncodeQuery(UChar32 codePoint, Vector&lt;LChar&gt;&amp; destination)
</ins><span class="cx"> {
</span><span class="cx">     uint8_t buffer[U8_MAX_LENGTH];
</span><span class="cx">     int32_t offset = 0;
</span><span class="lines">@@ -468,7 +468,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-static void encodeQuery(const StringBuilder&amp; source, Vector&lt;LChar&gt;&amp; destination, const TextEncoding&amp; encoding)
</del><ins>+inline static void encodeQuery(const StringBuilder&amp; source, Vector&lt;LChar&gt;&amp; destination, const TextEncoding&amp; encoding)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: It is unclear in the spec what to do when encoding fails. The behavior should be specified and tested.
</span><span class="cx">     CString encoded = encoding.encode(source.toStringPreserveCapacity(), URLEncodedEntitiesForUnencodables);
</span><span class="lines">@@ -483,7 +483,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool isDefaultPort(StringView scheme, uint16_t port)
</del><ins>+inline static bool isDefaultPort(StringView scheme, uint16_t port)
</ins><span class="cx"> {
</span><span class="cx">     static const uint16_t ftpPort = 21;
</span><span class="cx">     static const uint16_t gopherPort = 70;
</span><span class="lines">@@ -543,7 +543,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool isSpecialScheme(StringView scheme)
</del><ins>+inline static bool isSpecialScheme(StringView scheme)
</ins><span class="cx"> {
</span><span class="cx">     auto length = scheme.length();
</span><span class="cx">     if (!length)
</span><span class="lines">@@ -638,7 +638,7 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void copyASCIIStringUntil(Vector&lt;LChar&gt;&amp; destination, const String&amp; string, size_t lengthIf8Bit, size_t lengthIf16Bit)
</del><ins>+inline static void copyASCIIStringUntil(Vector&lt;LChar&gt;&amp; destination, const String&amp; string, size_t lengthIf8Bit, size_t lengthIf16Bit)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(destination.isEmpty());
</span><span class="cx">     if (string.is8Bit()) {
</span><span class="lines">@@ -717,7 +717,7 @@
</span><span class="cx"> static const char* dotASCIICode = &quot;2e&quot;;
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static bool isPercentEncodedDot(CodePointIterator&lt;CharacterType&gt; c)
</del><ins>+inline static bool isPercentEncodedDot(CodePointIterator&lt;CharacterType&gt; c)
</ins><span class="cx"> {
</span><span class="cx">     if (c.atEnd())
</span><span class="cx">         return false;
</span><span class="lines">@@ -735,7 +735,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static bool isSingleDotPathSegment(CodePointIterator&lt;CharacterType&gt; c)
</del><ins>+inline static bool isSingleDotPathSegment(CodePointIterator&lt;CharacterType&gt; c)
</ins><span class="cx"> {
</span><span class="cx">     if (c.atEnd())
</span><span class="cx">         return false;
</span><span class="lines">@@ -759,7 +759,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static bool isDoubleDotPathSegment(CodePointIterator&lt;CharacterType&gt; c)
</del><ins>+inline static bool isDoubleDotPathSegment(CodePointIterator&lt;CharacterType&gt; c)
</ins><span class="cx"> {
</span><span class="cx">     if (c.atEnd())
</span><span class="cx">         return false;
</span><span class="lines">@@ -783,7 +783,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static void consumeSingleDotPathSegment(CodePointIterator&lt;CharacterType&gt;&amp; c)
</del><ins>+inline static void consumeSingleDotPathSegment(CodePointIterator&lt;CharacterType&gt;&amp; c)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(isSingleDotPathSegment(c));
</span><span class="cx">     if (*c == '.') {
</span><span class="lines">@@ -811,7 +811,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static void consumeDoubleDotPathSegment(CodePointIterator&lt;CharacterType&gt;&amp; c)
</del><ins>+inline static void consumeDoubleDotPathSegment(CodePointIterator&lt;CharacterType&gt;&amp; c)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(isDoubleDotPathSegment(c));
</span><span class="cx">     if (*c == '.')
</span><span class="lines">@@ -1588,7 +1588,7 @@
</span><span class="cx">     destination.append(p, end - p);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void serializeIPv4(uint32_t address, Vector&lt;LChar&gt;&amp; buffer)
</del><ins>+inline static void serializeIPv4(uint32_t address, Vector&lt;LChar&gt;&amp; buffer)
</ins><span class="cx"> {
</span><span class="cx">     append&lt;uint8_t&gt;(buffer, address &gt;&gt; 24);
</span><span class="cx">     buffer.append('.');
</span><span class="lines">@@ -1599,7 +1599,7 @@
</span><span class="cx">     append&lt;uint8_t&gt;(buffer, address);
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-static size_t zeroSequenceLength(const std::array&lt;uint16_t, 8&gt;&amp; address, size_t begin)
</del><ins>+inline static size_t zeroSequenceLength(const std::array&lt;uint16_t, 8&gt;&amp; address, size_t begin)
</ins><span class="cx"> {
</span><span class="cx">     size_t end = begin;
</span><span class="cx">     for (; end &lt; 8; end++) {
</span><span class="lines">@@ -1609,7 +1609,7 @@
</span><span class="cx">     return end - begin;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Optional&lt;size_t&gt; findLongestZeroSequence(const std::array&lt;uint16_t, 8&gt;&amp; address)
</del><ins>+inline static Optional&lt;size_t&gt; findLongestZeroSequence(const std::array&lt;uint16_t, 8&gt;&amp; address)
</ins><span class="cx"> {
</span><span class="cx">     Optional&lt;size_t&gt; longest;
</span><span class="cx">     size_t longestLength = 0;
</span><span class="lines">@@ -1626,7 +1626,7 @@
</span><span class="cx">     return longest;
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-static void serializeIPv6Piece(uint16_t piece, Vector&lt;LChar&gt;&amp; buffer)
</del><ins>+inline static void serializeIPv6Piece(uint16_t piece, Vector&lt;LChar&gt;&amp; buffer)
</ins><span class="cx"> {
</span><span class="cx">     bool printed = false;
</span><span class="cx">     if (auto nibble0 = piece &gt;&gt; 12) {
</span><span class="lines">@@ -1644,7 +1644,7 @@
</span><span class="cx">     buffer.append(lowerNibbleToLowercaseASCIIHexDigit(piece &amp; 0xF));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void serializeIPv6(std::array&lt;uint16_t, 8&gt; address, Vector&lt;LChar&gt;&amp; buffer)
</del><ins>+inline static void serializeIPv6(std::array&lt;uint16_t, 8&gt; address, Vector&lt;LChar&gt;&amp; buffer)
</ins><span class="cx"> {
</span><span class="cx">     buffer.append('[');
</span><span class="cx">     auto compressPointer = findLongestZeroSequence(address);
</span><span class="lines">@@ -1668,7 +1668,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static Optional&lt;uint32_t&gt; parseIPv4Number(CodePointIterator&lt;CharacterType&gt;&amp; iterator)
</del><ins>+inline static Optional&lt;uint32_t&gt; parseIPv4Number(CodePointIterator&lt;CharacterType&gt;&amp; iterator)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: Check for overflow.
</span><span class="cx">     enum class State : uint8_t {
</span><span class="lines">@@ -1728,7 +1728,7 @@
</span><span class="cx">     return value;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static uint64_t pow256(size_t exponent)
</del><ins>+inline static uint64_t pow256(size_t exponent)
</ins><span class="cx"> {
</span><span class="cx">     RELEASE_ASSERT(exponent &lt;= 4);
</span><span class="cx">     uint64_t values[5] = {1, 256, 256 * 256, 256 * 256 * 256, 256ull * 256 * 256 * 256 };
</span><span class="lines">@@ -1736,7 +1736,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static Optional&lt;uint32_t&gt; parseIPv4Host(CodePointIterator&lt;CharacterType&gt; iterator)
</del><ins>+inline static Optional&lt;uint32_t&gt; parseIPv4Host(CodePointIterator&lt;CharacterType&gt; iterator)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;uint32_t, 4&gt; items;
</span><span class="cx">     items.reserveInitialCapacity(4);
</span><span class="lines">@@ -1767,7 +1767,7 @@
</span><span class="cx"> }
</span><span class="cx">     
</span><span class="cx"> template&lt;typename CharacterType&gt;
</span><del>-static Optional&lt;std::array&lt;uint16_t, 8&gt;&gt; parseIPv6Host(CodePointIterator&lt;CharacterType&gt; c)
</del><ins>+inline static Optional&lt;std::array&lt;uint16_t, 8&gt;&gt; parseIPv6Host(CodePointIterator&lt;CharacterType&gt; c)
</ins><span class="cx"> {
</span><span class="cx">     if (c.atEnd())
</span><span class="cx">         return Nullopt;
</span><span class="lines">@@ -1860,7 +1860,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // FIXME: This should return a CString.
</span><del>-static String percentDecode(const LChar* input, size_t length)
</del><ins>+inline static String percentDecode(const LChar* input, size_t length)
</ins><span class="cx"> {
</span><span class="cx">     StringBuilder output;
</span><span class="cx">     
</span><span class="lines">@@ -1880,7 +1880,7 @@
</span><span class="cx">     return output.toStringPreserveCapacity();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool containsOnlyASCII(const String&amp; string)
</del><ins>+inline static bool containsOnlyASCII(const String&amp; string)
</ins><span class="cx"> {
</span><span class="cx">     if (string.is8Bit())
</span><span class="cx">         return charactersAreAllASCII(string.characters8(), string.length());
</span><span class="lines">@@ -1887,7 +1887,7 @@
</span><span class="cx">     return charactersAreAllASCII(string.characters16(), string.length());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Optional&lt;String&gt; domainToASCII(const String&amp; domain)
</del><ins>+inline static Optional&lt;String&gt; domainToASCII(const String&amp; domain)
</ins><span class="cx"> {
</span><span class="cx">     const unsigned hostnameBufferLength = 2048;
</span><span class="cx"> 
</span><span class="lines">@@ -1920,7 +1920,7 @@
</span><span class="cx">     return Nullopt;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool hasInvalidDomainCharacter(const String&amp; asciiDomain)
</del><ins>+inline static bool hasInvalidDomainCharacter(const String&amp; asciiDomain)
</ins><span class="cx"> {
</span><span class="cx">     RELEASE_ASSERT(asciiDomain.is8Bit());
</span><span class="cx">     const LChar* characters = asciiDomain.characters8();
</span><span class="lines">@@ -2073,7 +2073,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Optional&lt;String&gt; formURLDecode(StringView input)
</del><ins>+inline static Optional&lt;String&gt; formURLDecode(StringView input)
</ins><span class="cx"> {
</span><span class="cx">     auto utf8 = input.utf8(StrictConversion);
</span><span class="cx">     if (utf8.isNull())
</span><span class="lines">@@ -2103,7 +2103,7 @@
</span><span class="cx">     return output;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void serializeURLEncodedForm(const String&amp; input, Vector&lt;LChar&gt;&amp; output)
</del><ins>+inline static void serializeURLEncodedForm(const String&amp; input, Vector&lt;LChar&gt;&amp; output)
</ins><span class="cx"> {
</span><span class="cx">     auto utf8 = input.utf8(StrictConversion);
</span><span class="cx">     const char* data = utf8.data();
</span></span></pre>
</div>
</div>

</body>
</html>