Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
27 #include "RegexInterpreter.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.h`/
28
29 #include "RegexCompiler.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.h`/
30 #include "RegexPattern.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h`/
31
32 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
33 #include <stdio.h>
34 #endif
35
36 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(YARR)
37
38 using namespace WTFcxx . . $ `<built-in>:467:9`!;
39
40 namespace JSCcxx . . $ `<built-in>:463:9`! { namespace Yarrcxx . . $ QTJSC/Yarr/ {
41
42 class Interpretercxx . . $ QTJSC/Yarr/Interpreter# {
43 public:
44 struct ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#;
45
46 struct BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter# {
47 uintptr_tcxx . . $ uintptr_t# matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
48 };
49 struct BackTrackInfoCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoCharacterClass# {
50 uintptr_tcxx . . $ uintptr_t# matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoCharacterClass#matchAmount.;
51 };
52 struct BackTrackInfoBackReferencecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference# {
53 uintptr_tcxx . . $ uintptr_t# begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin.; // Not really needed for greedy quantifiers.
54 uintptr_tcxx . . $ uintptr_t# matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount.; // Not really needed for fixed quantifiers.
55 };
56 struct BackTrackInfoAlternativecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative# {
57 uintptr_tcxx . . $ uintptr_t# offsetcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#offset.;
58 };
59 struct BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion# {
60 uintptr_tcxx . . $ uintptr_t# begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#begin.;
61 };
62 struct BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce# {
63 uintptr_tcxx . . $ uintptr_t# inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses.;
64 };
65 struct BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses# {
66 uintptr_tcxx . . $ uintptr_t# matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.;
67 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
68 uintptr_tcxx . . $ uintptr_t# prevBegincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevBegin.;
69 uintptr_tcxx . . $ uintptr_t# prevEndcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevEnd.;
70 };
71
72 static inline void appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#* backTrack, ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context)
73 {
74 context->nextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#next. = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
75 backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext. = context;
76 ++backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.;
77 }
78
79 static inline void popParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#popParenthesesDisjunctionContext(2b53d1840e6ffddb).(BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#* backTrack)
80 {
81 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->matchAmount);
82 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->lastContext);
83 backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext. = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.->nextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#next.;
84 --backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.;
85 }
86
87 struct DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#
88 {
89 DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#DisjunctionContext(49f6e7a06ebc5aa8).()
90 : termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term.(0)
91 {
92 }
93
94 void* operatorcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#`operator new`(7cf5f2fc6057a0cc). new(size_tcxx . . $ size_t#, void* where)
95 {
96 return where;
97 }
98
99 int termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term.;
100 unsigned matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin.;
101 unsigned matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd.;
102 uintptr_tcxx . . $ uintptr_t# framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame.[1];
103 };
104
105 DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* allocDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocDisjunctionContext(6287ab362621e6b7).(ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunction)
106 {
107 return new(malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#) + (disjunction->m_frameSizecxx . . $ QTJSC/Yarr/ByteDisjunction#m_frameSize. - 1) * sizeof(uintptr_tcxx . . $ uintptr_t#))) DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#();
108 }
109
110 void freeDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeDisjunctionContext(8c3efe5de11604a1).(DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
111 {
112 freecxx . . $ free(5d22bdacc48458e8).(context);
113 }
114
115 struct ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#
116 {
117 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#ParenthesesDisjunctionContext(9f8e921c09b56258).(int* output, ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
118 : nextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#next.(0)
119 {
120 unsigned firstSubpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
121 unsigned numNestedSubpatterns = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.->m_numSubpatternscxx . . $ QTJSC/Yarr/ByteDisjunction#m_numSubpatterns.;
122
123 for (unsigned i = 0; i < (numNestedSubpatterns << 1); ++i) {
124 subpatternBackupcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#subpatternBackup.[i] = output[(firstSubpatternId << 1) + i];
125 output[(firstSubpatternId << 1) + i] = -1;
126 }
127
128 new(getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)) DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#();
129 }
130
131 void* operatorcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#`operator new`(7cf5f2fc6057a0cc). new(size_tcxx . . $ size_t#, void* where)
132 {
133 return where;
134 }
135
136 void restoreOutputcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#restoreOutput(257d87c423562613).(int* output, unsigned firstSubpatternId, unsigned numNestedSubpatterns)
137 {
138 for (unsigned i = 0; i < (numNestedSubpatterns << 1); ++i)
139 output[(firstSubpatternId << 1) + i] = subpatternBackupcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#subpatternBackup.[i];
140 }
141
142 DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
143 {
144 return reinterpret_cast<DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#*>(&(subpatternBackupcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#subpatternBackup.[term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.->m_numSubpatternscxx . . $ QTJSC/Yarr/ByteDisjunction#m_numSubpatterns. << 1]));
145 }
146
147 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* nextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#next.;
148 int subpatternBackupcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#subpatternBackup.[1];
149 };
150
151 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunction, int* output, ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
152 {
153 return new(malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#) + (((term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.->m_numSubpatternscxx . . $ QTJSC/Yarr/ByteDisjunction#m_numSubpatterns. << 1) - 1) * sizeof(int)) + sizeof(DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#) + (disjunction->m_frameSizecxx . . $ QTJSC/Yarr/ByteDisjunction#m_frameSize. - 1) * sizeof(uintptr_tcxx . . $ uintptr_t#))) ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#ParenthesesDisjunctionContext(9f8e921c09b56258).(output, term);
154 }
155
156 void freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context)
157 {
158 freecxx . . $ free(5d22bdacc48458e8).(context);
159 }
160
161 class InputStreamcxx . . $ QTJSC/Yarr/Interpreter#InputStream# {
162 public:
163 InputStreamcxx . . $ QTJSC/Yarr/Interpreter#InputStream#InputStream(ceda1484f88f3da2).(const UCharcxx . . $ UChar#* input, unsigned start, unsigned length)
164 : inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.(input)
165 , poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos.(start)
166 , lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.(length)
167 {
168 }
169
170 void nextcxx . . $ QTJSC/Yarr/Interpreter#InputStream#next(49f6e7a06ebc5aa8).()
171 {
172 ++poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos.;
173 }
174
175 void rewindcxx . . $ QTJSC/Yarr/Interpreter#InputStream#rewind(cb2f890c2fdad230).(unsigned amount)
176 {
177 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(pos >= amount);
178 poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. -= amount;
179 }
180
181 int readcxx . . $ QTJSC/Yarr/Interpreter#InputStream#read(b126dc7c1de90089).()
182 {
183 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(pos < length);
184 if (poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. < lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.)
185 return inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.[poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos.];
186 return -1;
187 }
188
189 int readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(int position)
190 {
191 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(position < 0);
192 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!((unsigned)-position <= pos);
193 unsigned p = poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. + position;
194 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(p < length);
195 return inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.[p];
196 }
197
198 int rereadcxx . . $ QTJSC/Yarr/Interpreter#InputStream#reread(4c679297bf94b9eb).(unsigned from)
199 {
200 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(from < length);
201 return inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.[from];
202 }
203
204 int prevcxx . . $ QTJSC/Yarr/Interpreter#InputStream#prev(b126dc7c1de90089).()
205 {
206 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!(pos > length));
207 if (poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. && lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.)
208 return inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.[poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. - 1];
209 return -1;
210 }
211
212 unsigned getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).()
213 {
214 return poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos.;
215 }
216
217 void setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(unsigned p)
218 {
219 poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. = p;
220 }
221
222 bool atStartcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atStart(c9857a73d68e59ba).()
223 {
224 return poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. == 0;
225 }
226
227 bool atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).()
228 {
229 return poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. == lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.;
230 }
231
232 bool checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(int count)
233 {
234 if ((poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. + count) <= lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.) {
235 poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. += count;
236 return true;
237 } else
238 return false;
239 }
240
241 void uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(int count)
242 {
243 poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. -= count;
244 }
245
246 bool atStartcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atStart(83c267b20bac841a).(int position)
247 {
248 return (poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. + position) == 0;
249 }
250
251 bool atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(83c267b20bac841a).(int position)
252 {
253 return (poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos. + position) == lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.;
254 }
255
256 private:
257 const UCharcxx . . $ UChar#* inputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#input.;
258 unsigned poscxx . . $ QTJSC/Yarr/Interpreter#InputStream#pos.;
259 unsigned lengthcxx . . $ QTJSC/Yarr/Interpreter#InputStream#length.;
260 };
261
262 bool testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(CharacterClasscxx . . $ QTJSC/Yarr/CharacterClass#* characterClass, int ch)
263 {
264 if (ch & 0xFF80) {
265 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). characterClass->m_matchesUnicode.size(); ++i)
266 if (ch ==cxx . . $ QTJSC/`operator==`(e9142ab59ce7dac8). characterClass->m_matchesUnicode[i])
267 return true;
268 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). characterClass->m_rangesUnicode.size(); ++i)
269 if ((ch >=cxx . . $ `operator>=`(8f8a8e6a6f1fc74b). characterClass->m_rangesUnicode[i].begin) && (ch <=cxx . . $ `operator<=`(8f8a8e6a6f1fc74b). characterClass->m_rangesUnicode[i].end))
270 return true;
271 } else {
272 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). characterClass->m_matches.size(); ++i)
273 if (ch ==cxx . . $ QTJSC/`operator==`(e9142ab59ce7dac8). characterClass->m_matches[i])
274 return true;
275 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). characterClass->m_ranges.size(); ++i)
276 if ((ch >=cxx . . $ `operator>=`(8f8a8e6a6f1fc74b). characterClass->m_ranges[i].begin) && (ch <=cxx . . $ `operator<=`(8f8a8e6a6f1fc74b). characterClass->m_ranges[i].end))
277 return true;
278 }
279
280 return false;
281 }
282
283 bool tryConsumeCharactercxx . . $ QTJSC/Yarr/Interpreter#tryConsumeCharacter(83c267b20bac841a).(int testChar)
284 {
285 if (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).())
286 return false;
287
288 int ch = inputcxx . . $ QTJSC/Yarr/Interpreter#input..readcxx . . $ QTJSC/Yarr/Interpreter#InputStream#read(b126dc7c1de90089).();
289
290 if (patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_ignoreCasecxx . . $ QTJSC/Yarr/BytecodePattern#m_ignoreCase. ? ((Unicodecxx . . $ QTWTF/Unicode/::toLowercxx . . $ QTWTF/Unicode/toLower(7864480464b09eea).(testChar) == ch) || (Unicodecxx . . $ QTWTF/Unicode/::toUppercxx . . $ QTWTF/Unicode/toUpper(7864480464b09eea).(testChar) == ch)) : (testChar == ch)) {
291 inputcxx . . $ QTJSC/Yarr/Interpreter#input..nextcxx . . $ QTJSC/Yarr/Interpreter#InputStream#next(49f6e7a06ebc5aa8).();
292 return true;
293 }
294 return false;
295 }
296
297 bool checkCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCharacter(cf9ef193275fa6d8).(int testChar, int inputPosition)
298 {
299 return testChar == inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(inputPosition);
300 }
301
302 bool checkCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCasedCharacter(1432650661211742).(int loChar, int hiChar, int inputPosition)
303 {
304 int ch = inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(inputPosition);
305 return (loChar == ch) || (hiChar == ch);
306 }
307
308 bool tryConsumeCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#tryConsumeCharacterClass(4804d1c37f593b06).(CharacterClasscxx . . $ QTJSC/Yarr/CharacterClass#* characterClass, bool invert)
309 {
310 if (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).())
311 return false;
312
313 bool match = testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(characterClass, inputcxx . . $ QTJSC/Yarr/Interpreter#input..readcxx . . $ QTJSC/Yarr/Interpreter#InputStream#read(b126dc7c1de90089).());
314
315 if (invert)
316 match = !match;
317
318 if (match) {
319 inputcxx . . $ QTJSC/Yarr/Interpreter#input..nextcxx . . $ QTJSC/Yarr/Interpreter#InputStream#next(49f6e7a06ebc5aa8).();
320 return true;
321 }
322 return false;
323 }
324
325 bool checkCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#checkCharacterClass(83351dc5425c5136).(CharacterClasscxx . . $ QTJSC/Yarr/CharacterClass#* characterClass, bool invert, int inputPosition)
326 {
327 bool match = testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(characterClass, inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(inputPosition));
328 return invert ? !match : match;
329 }
330
331 bool tryConsumeBackReferencecxx . . $ QTJSC/Yarr/Interpreter#tryConsumeBackReference(1432650661211742).(int matchBegin, int matchEnd, int inputOffset)
332 {
333 int matchSize = matchEnd - matchBegin;
334
335 if (!inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(matchSize))
336 return false;
337
338 for (int i = 0; i < matchSize; ++i) {
339 if (!checkCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCharacter(cf9ef193275fa6d8).(inputcxx . . $ QTJSC/Yarr/Interpreter#input..rereadcxx . . $ QTJSC/Yarr/Interpreter#InputStream#reread(4c679297bf94b9eb).(matchBegin + i), inputOffset - matchSize + i)) {
340 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(matchSize);
341 return false;
342 }
343 }
344
345 return true;
346 }
347
348 bool matchAssertionBOLcxx . . $ QTJSC/Yarr/Interpreter#matchAssertionBOL(5ebb9ac6d9f515ce).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
349 {
350 return (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atStartcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atStart(83c267b20bac841a).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)) || (patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_multilinecxx . . $ QTJSC/Yarr/BytecodePattern#m_multiline. && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->newlineCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#newlineCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1)));
351 }
352
353 bool matchAssertionEOLcxx . . $ QTJSC/Yarr/Interpreter#matchAssertionEOL(5ebb9ac6d9f515ce).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
354 {
355 if (term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)
356 return (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(83c267b20bac841a).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)) || (patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_multilinecxx . . $ QTJSC/Yarr/BytecodePattern#m_multiline. && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->newlineCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#newlineCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)));
357 else
358 return (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).()) || (patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_multilinecxx . . $ QTJSC/Yarr/BytecodePattern#m_multiline. && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->newlineCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#newlineCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readcxx . . $ QTJSC/Yarr/Interpreter#InputStream#read(b126dc7c1de90089).()));
359 }
360
361 bool matchAssertionWordBoundarycxx . . $ QTJSC/Yarr/Interpreter#matchAssertionWordBoundary(5ebb9ac6d9f515ce).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
362 {
363 bool prevIsWordchar = !inputcxx . . $ QTJSC/Yarr/Interpreter#input..atStartcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atStart(83c267b20bac841a).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.) && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->wordcharCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#wordcharCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1));
364 bool readIsWordchar;
365 if (term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)
366 readIsWordchar = !inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(83c267b20bac841a).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.) && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->wordcharCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#wordcharCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readCheckedcxx . . $ QTJSC/Yarr/Interpreter#InputStream#readChecked(7864480464b09eea).(term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.));
367 else
368 readIsWordchar = !inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).() && testCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#testCharacterClass(90f62885311abcf6).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->wordcharCharacterClasscxx . . $ QTJSC/Yarr/BytecodePattern#wordcharCharacterClass., inputcxx . . $ QTJSC/Yarr/Interpreter#input..readcxx . . $ QTJSC/Yarr/Interpreter#InputStream#read(b126dc7c1de90089).());
369
370 bool wordBoundary = prevIsWordchar != readIsWordchar;
371 return term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).() ? !wordBoundary : wordBoundary;
372 }
373
374 bool backtrackPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#backtrackPatternCharacter(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
375 {
376 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
377
378 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
379 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
380 break;
381
382 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
383 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.) {
384 --backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
385 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
386 return true;
387 }
388 break;
389
390 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
391 if ((backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
392 ++backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
393 if (checkCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCharacter(cf9ef193275fa6d8).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..patternCharactercxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#patternCharacter., term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1))
394 return true;
395 }
396 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.);
397 break;
398 }
399
400 return false;
401 }
402
403 bool backtrackPatternCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#backtrackPatternCasedCharacter(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
404 {
405 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
406
407 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
408 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
409 break;
410
411 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
412 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.) {
413 --backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
414 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
415 return true;
416 }
417 break;
418
419 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
420 if ((backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
421 ++backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
422 if (checkCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCasedCharacter(1432650661211742).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..casedCharactercxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#casedCharacter..locxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#$anonymous_type_3#lo., term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..casedCharactercxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#casedCharacter..hicxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#$anonymous_type_3#hi., term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1))
423 return true;
424 }
425 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.);
426 break;
427 }
428
429 return false;
430 }
431
432 bool matchCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#matchCharacterClass(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
433 {
434 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeCharacterClass);
435 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
436
437 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
438 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.: {
439 for (unsigned matchAmount = 0; matchAmount < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.; ++matchAmount) {
440 if (!checkCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#checkCharacterClass(83351dc5425c5136).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..characterClasscxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#characterClass., term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).(), term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. + matchAmount))
441 return false;
442 }
443 return true;
444 }
445
446 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.: {
447 unsigned matchAmount = 0;
448 while ((matchAmount < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
449 if (!checkCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#checkCharacterClass(83351dc5425c5136).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..characterClasscxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#characterClass., term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).(), term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1)) {
450 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
451 break;
452 }
453 ++matchAmount;
454 }
455 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = matchAmount;
456
457 return true;
458 }
459
460 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
461 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = 0;
462 return true;
463 }
464
465 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
466 return false;
467 }
468
469 bool backtrackCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#backtrackCharacterClass(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
470 {
471 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeCharacterClass);
472 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
473
474 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
475 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
476 break;
477
478 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
479 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.) {
480 --backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
481 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
482 return true;
483 }
484 break;
485
486 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
487 if ((backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
488 ++backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.;
489 if (checkCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#checkCharacterClass(83351dc5425c5136).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..characterClasscxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#characterClass., term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).(), term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition. - 1))
490 return true;
491 }
492 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount.);
493 break;
494 }
495
496 return false;
497 }
498
499 bool matchBackReferencecxx . . $ QTJSC/Yarr/Interpreter#matchBackReference(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
500 {
501 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeBackReference);
502 BackTrackInfoBackReferencecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#* backTrack = reinterpret_cast<BackTrackInfoBackReferencecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
503
504 int matchBegin = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId. << 1)];
505 int matchEnd = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId. << 1) + 1];
506 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!((matchBegin == -1) == (matchEnd == -1));
507 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(matchBegin <= matchEnd);
508
509 if (matchBegin == matchEnd)
510 return true;
511
512 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
513 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.: {
514 backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
515 for (unsigned matchAmount = 0; matchAmount < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.; ++matchAmount) {
516 if (!tryConsumeBackReferencecxx . . $ QTJSC/Yarr/Interpreter#tryConsumeBackReference(1432650661211742).(matchBegin, matchEnd, term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)) {
517 inputcxx . . $ QTJSC/Yarr/Interpreter#input..setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin.);
518 return false;
519 }
520 }
521 return true;
522 }
523
524 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.: {
525 unsigned matchAmount = 0;
526 while ((matchAmount < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && tryConsumeBackReferencecxx . . $ QTJSC/Yarr/Interpreter#tryConsumeBackReference(1432650661211742).(matchBegin, matchEnd, term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.))
527 ++matchAmount;
528 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount. = matchAmount;
529 return true;
530 }
531
532 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
533 backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
534 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount. = 0;
535 return true;
536 }
537
538 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
539 return false;
540 }
541
542 bool backtrackBackReferencecxx . . $ QTJSC/Yarr/Interpreter#backtrackBackReference(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
543 {
544 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeBackReference);
545 BackTrackInfoBackReferencecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#* backTrack = reinterpret_cast<BackTrackInfoBackReferencecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
546
547 int matchBegin = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId. << 1)];
548 int matchEnd = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId. << 1) + 1];
549 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!((matchBegin == -1) == (matchEnd == -1));
550 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(matchBegin <= matchEnd);
551
552 if (matchBegin == matchEnd)
553 return false;
554
555 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
556 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
557 // for quantityCount == 1, could rewind.
558 inputcxx . . $ QTJSC/Yarr/Interpreter#input..setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin.);
559 break;
560
561 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
562 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount.) {
563 --backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount.;
564 inputcxx . . $ QTJSC/Yarr/Interpreter#input..rewindcxx . . $ QTJSC/Yarr/Interpreter#InputStream#rewind(cb2f890c2fdad230).(matchEnd - matchBegin);
565 return true;
566 }
567 break;
568
569 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
570 if ((backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) && tryConsumeBackReferencecxx . . $ QTJSC/Yarr/Interpreter#tryConsumeBackReference(1432650661211742).(matchBegin, matchEnd, term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.)) {
571 ++backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#matchAmount.;
572 return true;
573 } else
574 inputcxx . . $ QTJSC/Yarr/Interpreter#input..setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoBackReference#begin.);
575 break;
576 }
577
578 return false;
579 }
580
581 void recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context)
582 {
583 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
584 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
585 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1)] = context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)->matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin. + term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.;
586 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1] = context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)->matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd. + term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.;
587 }
588 }
589 void resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context)
590 {
591 unsigned firstSubpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
592 unsigned count = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.->m_numSubpatternscxx . . $ QTJSC/Yarr/ByteDisjunction#m_numSubpatterns.;
593 context->restoreOutputcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#restoreOutput(257d87c423562613).(outputcxx . . $ QTJSC/Yarr/Interpreter#output., firstSubpatternId, count);
594 }
595 void resetAssertionMatchescxx . . $ QTJSC/Yarr/Interpreter#resetAssertionMatches(d2950c3a5e008b38).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term)
596 {
597 unsigned firstSubpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
598 unsigned count = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.->m_numSubpatternscxx . . $ QTJSC/Yarr/ByteDisjunction#m_numSubpatterns.;
599 for (unsigned i = 0; i < (count << 1); ++i)
600 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(firstSubpatternId << 1) + i] = -1;
601 }
602 bool parenthesesDoBacktrackcxx . . $ QTJSC/Yarr/Interpreter#parenthesesDoBacktrack(4abead6f19324bf2).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#* backTrack)
603 {
604 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.) {
605 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
606
607 if (matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction., context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term), true))
608 return true;
609
610 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
611 popParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#popParenthesesDisjunctionContext(2b53d1840e6ffddb).(backTrack);
612 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
613 }
614
615 return false;
616 }
617
618 bool matchParenthesesOnceBegincxx . . $ QTJSC/Yarr/Interpreter#matchParenthesesOnceBegin(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
619 {
620 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpatternOnceBegin);
621 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
622
623 BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#* backTrack = reinterpret_cast<BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
624
625 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
626 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.: {
627 // set this speculatively; if we get to the parens end this will be true.
628 backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses. = 1;
629 break;
630 }
631 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.: {
632 backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses. = 0;
633 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
634 return true;
635 }
636 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
637 break;
638 }
639
640 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
641 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
642 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1)] = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).() + term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.;
643 }
644
645 return true;
646 }
647
648 bool matchParenthesesOnceEndcxx . . $ QTJSC/Yarr/Interpreter#matchParenthesesOnceEnd(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#*)
649 {
650 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpatternOnceEnd);
651 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
652
653 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
654 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
655 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1] = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).() + term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.;
656 }
657 return true;
658 }
659
660 bool backtrackParenthesesOnceBegincxx . . $ QTJSC/Yarr/Interpreter#backtrackParenthesesOnceBegin(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
661 {
662 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpatternOnceBegin);
663 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
664
665 BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#* backTrack = reinterpret_cast<BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
666
667 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
668 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
669 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1)] = -1;
670 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1] = -1;
671 }
672
673 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
674 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
675 // if we backtrack to this point, there is another chance - try matching nothing.
676 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->inParentheses);
677 backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses. = 0;
678 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
679 return true;
680 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
681 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->inParentheses);
682 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
683 break;
684 }
685
686 return false;
687 }
688
689 bool backtrackParenthesesOnceEndcxx . . $ QTJSC/Yarr/Interpreter#backtrackParenthesesOnceEnd(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
690 {
691 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpatternOnceEnd);
692 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
693
694 BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#* backTrack = reinterpret_cast<BackTrackInfoParenthesesOncecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
695
696 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
697 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.:
698 if (!backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses.) {
699 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. -= term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
700 return false;
701 }
702 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
703 if (!backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses.) {
704 // now try to match the parens; set this speculatively.
705 backTrack->inParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParenthesesOnce#inParentheses. = 1;
706 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
707 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
708 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1] = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).() + term.inputPositioncxx . . $ QTJSC/Yarr/ByteTerm#inputPosition.;
709 }
710 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. -= term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
711 return true;
712 }
713 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.:
714 break;
715 }
716
717 return false;
718 }
719
720 bool matchParentheticalAssertionBegincxx . . $ QTJSC/Yarr/Interpreter#matchParentheticalAssertionBegin(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
721 {
722 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParentheticalAssertionBegin);
723 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
724
725 BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#* backTrack = reinterpret_cast<BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
726
727 backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#begin. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
728 return true;
729 }
730
731 bool matchParentheticalAssertionEndcxx . . $ QTJSC/Yarr/Interpreter#matchParentheticalAssertionEnd(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
732 {
733 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParentheticalAssertionEnd);
734 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
735
736 BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#* backTrack = reinterpret_cast<BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
737
738 inputcxx . . $ QTJSC/Yarr/Interpreter#input..setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#begin.);
739
740 // We've reached the end of the parens; if they are inverted, this is failure.
741 if (term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).()) {
742 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. -= term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
743 return false;
744 }
745
746 return true;
747 }
748
749 bool backtrackParentheticalAssertionBegincxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheticalAssertionBegin(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
750 {
751 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParentheticalAssertionBegin);
752 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
753
754 // We've failed to match parens; if they are inverted, this is win!
755 if (term.invertcxx . . $ QTJSC/Yarr/ByteTerm#invert(c9857a73d68e59ba).()) {
756 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
757 return true;
758 }
759
760 return false;
761 }
762
763 bool backtrackParentheticalAssertionEndcxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheticalAssertionEnd(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
764 {
765 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParentheticalAssertionEnd);
766 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.atom.quantityCount == 1);
767
768 BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#* backTrack = reinterpret_cast<BackTrackInfoParentheticalAssertioncxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
769
770 inputcxx . . $ QTJSC/Yarr/Interpreter#input..setPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#setPos(cb2f890c2fdad230).(backTrack->begincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheticalAssertion#begin.);
771
772 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. -= term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesWidthcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesWidth.;
773 return false;
774 }
775
776 bool matchParenthesescxx . . $ QTJSC/Yarr/Interpreter#matchParentheses(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
777 {
778 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpattern);
779
780 BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#* backTrack = reinterpret_cast<BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
781
782 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
783 ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunctionBody = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.;
784
785 backTrack->prevBegincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevBegin. = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1)];
786 backTrack->prevEndcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevEnd. = outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1];
787
788 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. = 0;
789 backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext. = 0;
790
791 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
792 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.: {
793 // While we haven't yet reached our fixed limit,
794 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) {
795 // Try to do a match, and it it succeeds, add it to the list.
796 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(disjunctionBody, outputcxx . . $ QTJSC/Yarr/Interpreter#output., term);
797 if (matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)))
798 appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(backTrack, context);
799 else {
800 // The match failed; try to find an alternate point to carry on from.
801 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
802 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
803 if (!parenthesesDoBacktrackcxx . . $ QTJSC/Yarr/Interpreter#parenthesesDoBacktrack(4abead6f19324bf2).(term, backTrack))
804 return false;
805 }
806 }
807
808 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->matchAmount == term.atom.quantityCount);
809 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
810 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
811 return true;
812 }
813
814 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.: {
815 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) {
816 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(disjunctionBody, outputcxx . . $ QTJSC/Yarr/Interpreter#output., term);
817 if (matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)))
818 appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(backTrack, context);
819 else {
820 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
821 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
822 break;
823 }
824 }
825
826 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.) {
827 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
828 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
829 }
830 return true;
831 }
832
833 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.:
834 return true;
835 }
836
837 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
838 return false;
839 }
840
841 // Rules for backtracking differ depending on whether this is greedy or non-greedy.
842 //
843 // Greedy matches never should try just adding more - you should already have done
844 // the 'more' cases. Always backtrack, at least a leetle bit. However cases where
845 // you backtrack an item off the list needs checking, since we'll never have matched
846 // the one less case. Tracking forwards, still add as much as possible.
847 //
848 // Non-greedy, we've already done the one less case, so don't match on popping.
849 // We haven't done the one more case, so always try to add that.
850 //
851 bool backtrackParenthesescxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheses(a492e0f376292fdf).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& term, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context)
852 {
853 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(term.type == ByteTerm::TypeParenthesesSubpattern);
854
855 BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#* backTrack = reinterpret_cast<BackTrackInfoParenthesescxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. + term.frameLocationcxx . . $ QTJSC/Yarr/ByteTerm#frameLocation.);
856
857 if (term.capturecxx . . $ QTJSC/Yarr/ByteTerm#capture(c9857a73d68e59ba).()) {
858 unsigned subpatternId = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
859 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1)] = backTrack->prevBegincxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevBegin.;
860 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[(subpatternId << 1) + 1] = backTrack->prevEndcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#prevEnd.;
861 }
862
863 ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunctionBody = term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..parenthesesDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_4#parenthesesDisjunction.;
864
865 switch (term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityTypecxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityType.) {
866 case QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.: {
867 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->matchAmount == term.atom.quantityCount);
868
869 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = 0;
870
871 if (!parenthesesDoBacktrackcxx . . $ QTJSC/Yarr/Interpreter#parenthesesDoBacktrack(4abead6f19324bf2).(term, backTrack))
872 return false;
873
874 // While we haven't yet reached our fixed limit,
875 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) {
876 // Try to do a match, and it it succeeds, add it to the list.
877 context = allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(disjunctionBody, outputcxx . . $ QTJSC/Yarr/Interpreter#output., term);
878 if (matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)))
879 appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(backTrack, context);
880 else {
881 // The match failed; try to find an alternate point to carry on from.
882 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
883 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
884 if (!parenthesesDoBacktrackcxx . . $ QTJSC/Yarr/Interpreter#parenthesesDoBacktrack(4abead6f19324bf2).(term, backTrack))
885 return false;
886 }
887 }
888
889 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(backTrack->matchAmount == term.atom.quantityCount);
890 context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
891 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
892 return true;
893 }
894
895 case QuantifierGreedycxx . . $ QTJSC/Yarr/QuantifierGreedy.: {
896 if (!backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.)
897 return false;
898
899 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
900 if (matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term), true)) {
901 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) {
902 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(disjunctionBody, outputcxx . . $ QTJSC/Yarr/Interpreter#output., term);
903 if (matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term)))
904 appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(backTrack, context);
905 else {
906 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
907 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
908 break;
909 }
910 }
911 } else {
912 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
913 popParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#popParenthesesDisjunctionContext(2b53d1840e6ffddb).(backTrack);
914 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
915 }
916
917 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.) {
918 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
919 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
920 }
921 return true;
922 }
923
924 case QuantifierNonGreedycxx . . $ QTJSC/Yarr/QuantifierNonGreedy.: {
925 // If we've not reached the limit, try to add one more match.
926 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount. < term.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..quantityCountcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#quantityCount.) {
927 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = allocParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocParenthesesDisjunctionContext(69ea79a88a5e006f).(disjunctionBody, outputcxx . . $ QTJSC/Yarr/Interpreter#output., term);
928 if (matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term))) {
929 appendParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#appendParenthesesDisjunctionContext(42a59be9a579a107).(backTrack, context);
930 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
931 return true;
932 } else {
933 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
934 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
935 }
936 }
937
938 // Nope - okay backtrack looking for an alternative.
939 while (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.) {
940 ParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#* context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
941 if (matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(disjunctionBody, context->getDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#ParenthesesDisjunctionContext#getDisjunctionContext(bb2c672532fa2ec5).(term), true)) {
942 // successful backtrack! we're back in the game!
943 if (backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#matchAmount.) {
944 context = backTrack->lastContextcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoParentheses#lastContext.;
945 recordParenthesesMatchcxx . . $ QTJSC/Yarr/Interpreter#recordParenthesesMatch(d1c9eca3a6432343).(term, context);
946 }
947 return true;
948 }
949
950 // pop a match off the stack
951 resetMatchescxx . . $ QTJSC/Yarr/Interpreter#resetMatches(d1c9eca3a6432343).(term, context);
952 popParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#popParenthesesDisjunctionContext(2b53d1840e6ffddb).(backTrack);
953 freeParenthesesDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeParenthesesDisjunctionContext(8953d16a51b7c1e).(context);
954 }
955
956 return false;
957 }
958 }
959
960 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
961 return false;
962 }
963
964 #define MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!() { ++context->term; goto matchAgain; }
965 #define BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!() { --context->term; goto backtrack; }
966 #define currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!() (disjunction->terms[context->term])
967 bool matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunction, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context, bool btrack = false)
968 {
969 if (btrack)
970 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
971
972 context->matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
973 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. = 0;
974
975 matchAgain:
976 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(context->term < static_cast<int>(disjunction->terms.size()));
977
978 switch (currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().type) {
979 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeSubpatternBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeSubpatternBegin.:
980 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
981 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeSubpatternEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeSubpatternEnd.:
982 context->matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
983 return true;
984
985 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeBegin.:
986 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
987 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeDisjunction.:
988 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeEnd.:
989 context->matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
990 return true;
991
992 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeBegin.:
993 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
994 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeDisjunction.:
995 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeEnd.: {
996 int offset = currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().alternative.end;
997 BackTrackInfoAlternativecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#* backTrack = reinterpret_cast<BackTrackInfoAlternativecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
998 backTrack->offsetcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#offset. = offset;
999 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += offset;
1000 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1001 }
1002
1003 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionBOLcxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionBOL.:
1004 if (matchAssertionBOLcxx . . $ QTJSC/Yarr/Interpreter#matchAssertionBOL(5ebb9ac6d9f515ce).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!()))
1005 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1006 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1007 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionEOLcxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionEOL.:
1008 if (matchAssertionEOLcxx . . $ QTJSC/Yarr/Interpreter#matchAssertionEOL(5ebb9ac6d9f515ce).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!()))
1009 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1010 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1011 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionWordBoundarycxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionWordBoundary.:
1012 if (matchAssertionWordBoundarycxx . . $ QTJSC/Yarr/Interpreter#matchAssertionWordBoundary(5ebb9ac6d9f515ce).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!()))
1013 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1014 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1015
1016 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterOncecxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterOnce.:
1017 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterFixedcxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterFixed.: {
1018 for (unsigned matchAmount = 0; matchAmount <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.quantityCount; ++matchAmount) {
1019 if (!checkCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCharacter(cf9ef193275fa6d8).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.patternCharacter, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().inputPosition +cxx . . $ operator+(f3789794639247d3). matchAmount))
1020 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1021 }
1022 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1023 }
1024 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterGreedy.: {
1025 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
1026 unsigned matchAmount = 0;
1027 while ((matchAmount <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.quantityCount) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
1028 if (!checkCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCharacter(cf9ef193275fa6d8).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.patternCharacter, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().inputPosition - 1)) {
1029 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
1030 break;
1031 }
1032 ++matchAmount;
1033 }
1034 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = matchAmount;
1035
1036 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1037 }
1038 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterNonGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterNonGreedy.: {
1039 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
1040 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = 0;
1041 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1042 }
1043
1044 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterOncecxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterOnce.:
1045 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterFixedcxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterFixed.: {
1046 for (unsigned matchAmount = 0; matchAmount <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.quantityCount; ++matchAmount) {
1047 if (!checkCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCasedCharacter(1432650661211742).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.casedCharacter.lo, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.casedCharacter.hi, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().inputPosition +cxx . . $ operator+(f3789794639247d3). matchAmount))
1048 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1049 }
1050 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1051 }
1052 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterGreedy.: {
1053 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
1054 unsigned matchAmount = 0;
1055 while ((matchAmount <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.quantityCount) && inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(1)) {
1056 if (!checkCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#checkCasedCharacter(1432650661211742).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.casedCharacter.lo, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().atom.casedCharacter.hi, currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().inputPosition - 1)) {
1057 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(1);
1058 break;
1059 }
1060 ++matchAmount;
1061 }
1062 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = matchAmount;
1063
1064 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1065 }
1066 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterNonGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterNonGreedy.: {
1067 BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#* backTrack = reinterpret_cast<BackTrackInfoPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
1068 backTrack->matchAmountcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoPatternCharacter#matchAmount. = 0;
1069 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1070 }
1071
1072 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeCharacterClasscxx . . $ QTJSC/Yarr/ByteTerm#TypeCharacterClass.:
1073 if (matchCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#matchCharacterClass(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1074 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1075 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1076 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBackReferencecxx . . $ QTJSC/Yarr/ByteTerm#TypeBackReference.:
1077 if (matchBackReferencecxx . . $ QTJSC/Yarr/Interpreter#matchBackReference(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1078 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1079 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1080 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatterncxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpattern.:
1081 if (matchParenthesescxx . . $ QTJSC/Yarr/Interpreter#matchParentheses(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1082 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1083 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1084 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceBegin.:
1085 if (matchParenthesesOnceBegincxx . . $ QTJSC/Yarr/Interpreter#matchParenthesesOnceBegin(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1086 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1087 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1088 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceEnd.:
1089 if (matchParenthesesOnceEndcxx . . $ QTJSC/Yarr/Interpreter#matchParenthesesOnceEnd(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1090 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1091 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1092 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionBegin.:
1093 if (matchParentheticalAssertionBegincxx . . $ QTJSC/Yarr/Interpreter#matchParentheticalAssertionBegin(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1094 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1095 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1096 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionEnd.:
1097 if (matchParentheticalAssertionEndcxx . . $ QTJSC/Yarr/Interpreter#matchParentheticalAssertionEnd(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1098 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1099 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1100
1101 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeCheckInputcxx . . $ QTJSC/Yarr/ByteTerm#TypeCheckInput.:
1102 if (inputcxx . . $ QTJSC/Yarr/Interpreter#input..checkInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#checkInput(83c267b20bac841a).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().checkInputCount))
1103 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1104 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1105 }
1106
1107 // We should never fall-through to here.
1108 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
1109
1110 backtrack:
1111 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(context->term < static_cast<int>(disjunction->terms.size()));
1112
1113 switch (currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().type) {
1114 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeSubpatternBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeSubpatternBegin.:
1115 return false;
1116 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeSubpatternEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeSubpatternEnd.:
1117 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
1118
1119 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeBegin.:
1120 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeDisjunction.: {
1121 int offset = currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().alternative.next;
1122 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += offset;
1123 if (offset > 0)
1124 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1125
1126 if (inputcxx . . $ QTJSC/Yarr/Interpreter#input..atEndcxx . . $ QTJSC/Yarr/Interpreter#InputStream#atEnd(c9857a73d68e59ba).())
1127 return false;
1128
1129 inputcxx . . $ QTJSC/Yarr/Interpreter#input..nextcxx . . $ QTJSC/Yarr/Interpreter#InputStream#next(49f6e7a06ebc5aa8).();
1130 context->matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin. = inputcxx . . $ QTJSC/Yarr/Interpreter#input..getPoscxx . . $ QTJSC/Yarr/Interpreter#InputStream#getPos(db52760e79bf9054).();
1131 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1132 }
1133 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBodyAlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeBodyAlternativeEnd.:
1134 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
1135
1136 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeBegin.:
1137 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeDisjunction.: {
1138 int offset = currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().alternative.next;
1139 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. += offset;
1140 if (offset > 0)
1141 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1142 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1143 }
1144 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeAlternativeEnd.: {
1145 // We should never backtrack back into an alternative of the main body of the regex.
1146 BackTrackInfoAlternativecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#* backTrack = reinterpret_cast<BackTrackInfoAlternativecxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#*>(context->framecxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#frame. +cxx . . $ operator+(f3789794639247d3). currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().frameLocation);
1147 unsigned offset = backTrack->offsetcxx . . $ QTJSC/Yarr/Interpreter#BackTrackInfoAlternative#offset.;
1148 context->termcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#term. -= offset;
1149 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1150 }
1151
1152 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionBOLcxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionBOL.:
1153 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionEOLcxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionEOL.:
1154 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeAssertionWordBoundarycxx . . $ QTJSC/Yarr/ByteTerm#TypeAssertionWordBoundary.:
1155 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1156
1157 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterOncecxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterOnce.:
1158 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterFixedcxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterFixed.:
1159 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterGreedy.:
1160 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCharacterNonGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCharacterNonGreedy.:
1161 if (backtrackPatternCharactercxx . . $ QTJSC/Yarr/Interpreter#backtrackPatternCharacter(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1162 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1163 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1164 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterOncecxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterOnce.:
1165 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterFixedcxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterFixed.:
1166 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterGreedy.:
1167 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypePatternCasedCharacterNonGreedycxx . . $ QTJSC/Yarr/ByteTerm#TypePatternCasedCharacterNonGreedy.:
1168 if (backtrackPatternCasedCharactercxx . . $ QTJSC/Yarr/Interpreter#backtrackPatternCasedCharacter(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1169 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1170 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1171 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeCharacterClasscxx . . $ QTJSC/Yarr/ByteTerm#TypeCharacterClass.:
1172 if (backtrackCharacterClasscxx . . $ QTJSC/Yarr/Interpreter#backtrackCharacterClass(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1173 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1174 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1175 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeBackReferencecxx . . $ QTJSC/Yarr/ByteTerm#TypeBackReference.:
1176 if (backtrackBackReferencecxx . . $ QTJSC/Yarr/Interpreter#backtrackBackReference(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1177 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1178 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1179 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatterncxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpattern.:
1180 if (backtrackParenthesescxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheses(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1181 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1182 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1183 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceBegin.:
1184 if (backtrackParenthesesOnceBegincxx . . $ QTJSC/Yarr/Interpreter#backtrackParenthesesOnceBegin(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1185 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1186 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1187 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceEnd.:
1188 if (backtrackParenthesesOnceEndcxx . . $ QTJSC/Yarr/Interpreter#backtrackParenthesesOnceEnd(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1189 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1190 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1191 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionBegin.:
1192 if (backtrackParentheticalAssertionBegincxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheticalAssertionBegin(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1193 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1194 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1195 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionEnd.:
1196 if (backtrackParentheticalAssertionEndcxx . . $ QTJSC/Yarr/Interpreter#backtrackParentheticalAssertionEnd(a492e0f376292fdf).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!(), context))
1197 MATCH_NEXTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:964:9`!();
1198 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1199
1200 case ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeCheckInputcxx . . $ QTJSC/Yarr/ByteTerm#TypeCheckInput.:
1201 inputcxx . . $ QTJSC/Yarr/Interpreter#input..uncheckInputcxx . . $ QTJSC/Yarr/Interpreter#InputStream#uncheckInput(d4f767463ce0a6b3).(currentTermcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:966:9`!().checkInputCount);
1202 BACKTRACKcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.cpp:965:9`!();
1203 }
1204
1205 ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!();
1206 return false;
1207 }
1208
1209 bool matchNonZeroDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchNonZeroDisjunction(f2e3a3edd6170057).(ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* disjunction, DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context, bool btrack = false)
1210 {
1211 if (matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(disjunction, context, btrack)) {
1212 while (context->matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin. == context->matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd.) {
1213 if (!matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(disjunction, context, true))
1214 return false;
1215 }
1216 return true;
1217 }
1218
1219 return false;
1220 }
1221
1222 int interpretcxx . . $ QTJSC/Yarr/Interpreter#interpret(b126dc7c1de90089).()
1223 {
1224 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). ((patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_body->m_numSubpatterns +cxx . . $ operator+(f3789794639247d3). 1) <<cxx . . $ `operator<<`(eedc86c7e0734d0). 1); ++i)
1225 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[i] = -1;
1226
1227 DisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#* context = allocDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#allocDisjunctionContext(6287ab362621e6b7).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_body.get());
1228
1229 if (matchDisjunctioncxx . . $ QTJSC/Yarr/Interpreter#matchDisjunction(f2e3a3edd6170057).(patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.->m_body.get(), context)) {
1230 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[0] = context->matchBegincxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchBegin.;
1231 outputcxx . . $ QTJSC/Yarr/Interpreter#output.[1] = context->matchEndcxx . . $ QTJSC/Yarr/Interpreter#DisjunctionContext#matchEnd.;
1232 }
1233
1234 freeDisjunctionContextcxx . . $ QTJSC/Yarr/Interpreter#freeDisjunctionContext(8c3efe5de11604a1).(context);
1235
1236 return outputcxx . . $ QTJSC/Yarr/Interpreter#output.[0];
1237 }
1238
1239 Interpretercxx . . $ QTJSC/Yarr/Interpreter#Interpreter(7c30709794360eb8).(BytecodePatterncxx . . $ QTJSC/Yarr/BytecodePattern#* pattern, int* output, const UCharcxx . . $ UChar#* inputChar, unsigned start, unsigned length)
1240 : patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.(pattern)
1241 , outputcxx . . $ QTJSC/Yarr/Interpreter#output.(output)
1242 , inputcxx . . $ QTJSC/Yarr/Interpreter#input.(inputChar, start, length)
1243 {
1244 }
1245
1246 private:
1247 BytecodePatterncxx . . $ QTJSC/Yarr/BytecodePattern# *patterncxx . . $ QTJSC/Yarr/Interpreter#pattern.;
1248 int* outputcxx . . $ QTJSC/Yarr/Interpreter#output.;
1249 InputStreamcxx . . $ QTJSC/Yarr/Interpreter#InputStream# inputcxx . . $ QTJSC/Yarr/Interpreter#input.;
1250 };
1251
1252
1253
1254 class ByteCompilercxx . . $ QTJSC/Yarr/ByteCompiler# {
1255 struct ParenthesesStackEntrycxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry# {
1256 unsigned beginTermcxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry#beginTerm.;
1257 unsigned savedAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry#savedAlternativeIndex.;
1258 ParenthesesStackEntrycxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry#ParenthesesStackEntry(b4d55b1286ff73e8).(unsigned beginTerm, unsigned savedAlternativeIndex/*, unsigned subpatternId, bool capture = false*/)
1259 : beginTermcxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry#beginTerm.(beginTerm)
1260 , savedAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#ParenthesesStackEntry#savedAlternativeIndex.(savedAlternativeIndex)
1261 {
1262 }
1263 };
1264
1265 public:
1266 ByteCompilercxx . . $ QTJSC/Yarr/ByteCompiler#ByteCompiler(42309c613cd95058).(RegexPatterncxx . . $ QTJSC/Yarr/RegexPattern#& pattern)
1267 : m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern.(pattern)
1268 {
1269 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction. = 0;
1270 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = 0;
1271 }
1272
1273 BytecodePatterncxx . . $ QTJSC/Yarr/BytecodePattern#* compilecxx . . $ QTJSC/Yarr/ByteCompiler#compile(7274935945157802).()
1274 {
1275 regexBegincxx . . $ QTJSC/Yarr/ByteCompiler#regexBegin(b4d55b1286ff73e8).(m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern..m_numSubpatternscxx . . $ QTJSC/Yarr/RegexPattern#m_numSubpatterns., m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern..m_bodycxx . . $ QTJSC/Yarr/RegexPattern#m_body.->m_callFrameSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_callFrameSize.);
1276 emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern..m_bodycxx . . $ QTJSC/Yarr/RegexPattern#m_body.);
1277 regexEndcxx . . $ QTJSC/Yarr/ByteCompiler#regexEnd(49f6e7a06ebc5aa8).();
1278
1279 return new BytecodePattern(m_bodyDisjunction, m_allParenthesesInfo, m_pattern);
1280 }
1281
1282 void checkInputcxx . . $ QTJSC/Yarr/ByteCompiler#checkInput(cb2f890c2fdad230).(unsigned count)
1283 {
1284 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::CheckInputcxx . . $ QTJSC/Yarr/ByteTerm#CheckInput(5bd2f9ded3ceb12c).(count));
1285 }
1286
1287 void assertionBOLcxx . . $ QTJSC/Yarr/ByteCompiler#assertionBOL(d4f767463ce0a6b3).(int inputPosition)
1288 {
1289 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::BOLcxx . . $ QTJSC/Yarr/ByteTerm#BOL(61e3619b4b1a13cc).(inputPosition));
1290 }
1291
1292 void assertionEOLcxx . . $ QTJSC/Yarr/ByteCompiler#assertionEOL(d4f767463ce0a6b3).(int inputPosition)
1293 {
1294 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::EOLcxx . . $ QTJSC/Yarr/ByteTerm#EOL(61e3619b4b1a13cc).(inputPosition));
1295 }
1296
1297 void assertionWordBoundarycxx . . $ QTJSC/Yarr/ByteCompiler#assertionWordBoundary(b994e01f1c45a386).(bool invert, int inputPosition)
1298 {
1299 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::WordBoundarycxx . . $ QTJSC/Yarr/ByteTerm#WordBoundary(17a487a268d1456a).(invert, inputPosition));
1300 }
1301
1302 void atomPatternCharactercxx . . $ QTJSC/Yarr/ByteCompiler#atomPatternCharacter(c706ab68f2102f85).(UCharcxx . . $ UChar# ch, int inputPosition, unsigned frameLocation, unsigned quantityCount, QuantifierTypecxx . . $ QTJSC/Yarr/QuantifierType# quantityType)
1303 {
1304 if (m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern..m_ignoreCasecxx . . $ QTJSC/Yarr/RegexPattern#m_ignoreCase.) {
1305 UCharcxx . . $ UChar# lo = Unicodecxx . . $ QTWTF/Unicode/::toLowercxx . . $ QTWTF/Unicode/toLower(7864480464b09eea).(ch);
1306 UCharcxx . . $ UChar# hi = Unicodecxx . . $ QTWTF/Unicode/::toUppercxx . . $ QTWTF/Unicode/toUpper(7864480464b09eea).(ch);
1307
1308 if (lo != hi) {
1309 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(9232a60c7cb6eba1).(lo, hi, inputPosition, frameLocation, quantityCount, quantityType));
1310 return;
1311 }
1312 }
1313
1314 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(c706ab68f2102f85).(ch, inputPosition, frameLocation, quantityCount, quantityType));
1315 }
1316
1317 void atomCharacterClasscxx . . $ QTJSC/Yarr/ByteCompiler#atomCharacterClass(749b8d18b1b04d56).(CharacterClasscxx . . $ QTJSC/Yarr/CharacterClass#* characterClass, bool invert, int inputPosition, unsigned frameLocation, unsigned quantityCount, QuantifierTypecxx . . $ QTJSC/Yarr/QuantifierType# quantityType)
1318 {
1319 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(9e3a5daa0991ec4).(characterClass, invert, inputPosition));
1320
1321 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].atom.quantityCount = quantityCount;
1322 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].atom.quantityType = quantityType;
1323 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = frameLocation;
1324 }
1325
1326 void atomBackReferencecxx . . $ QTJSC/Yarr/ByteCompiler#atomBackReference(cab794a603be5109).(unsigned subpatternId, int inputPosition, unsigned frameLocation, unsigned quantityCount, QuantifierTypecxx . . $ QTJSC/Yarr/QuantifierType# quantityType)
1327 {
1328 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(subpatternId);
1329
1330 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::BackReferencecxx . . $ QTJSC/Yarr/ByteTerm#BackReference(8c55a2c3cf164b74).(subpatternId, inputPosition));
1331
1332 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].atom.quantityCount = quantityCount;
1333 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].atom.quantityType = quantityType;
1334 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = frameLocation;
1335 }
1336
1337 void atomParenthesesSubpatternBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesSubpatternBegin(715fc55b568b4871).(unsigned subpatternId, bool capture, int inputPosition, unsigned frameLocation, unsigned alternativeFrameLocation)
1338 {
1339 int beginTerm = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1340
1341 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(8855f21d2236050d).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceBegin., subpatternId, capture, inputPosition));
1342 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = frameLocation;
1343 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::AlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#AlternativeBegin(b2793b3685d9b704).());
1344 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = alternativeFrameLocation;
1345
1346 m_parenthesesStack.append(ParenthesesStackEntry(beginTerm, m_currentAlternativeIndex));
1347 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = beginTerm + 1;
1348 }
1349
1350 void atomParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParentheticalAssertionBegin(d9d0053e206adc11).(unsigned subpatternId, bool invert, unsigned frameLocation, unsigned alternativeFrameLocation)
1351 {
1352 int beginTerm = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1353
1354 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(8855f21d2236050d).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionBegin., subpatternId, invert, 0));
1355 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = frameLocation;
1356 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::AlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#AlternativeBegin(b2793b3685d9b704).());
1357 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size() - 1].frameLocation = alternativeFrameLocation;
1358
1359 m_parenthesesStack.append(ParenthesesStackEntry(beginTerm, m_currentAlternativeIndex));
1360 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = beginTerm + 1;
1361 }
1362
1363 unsigned popParenthesesStackcxx . . $ QTJSC/Yarr/ByteCompiler#popParenthesesStack(db52760e79bf9054).()
1364 {
1365 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_parenthesesStack.size());
1366 int stackEnd = m_parenthesesStack.size() - 1;
1367 unsigned beginTerm = m_parenthesesStack[stackEnd].beginTerm;
1368 m_currentAlternativeIndex = m_parenthesesStack[stackEnd].savedAlternativeIndex;
1369 m_parenthesesStack.shrink(stackEnd);
1370
1371 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(beginTerm < m_bodyDisjunction->terms.size());
1372 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_currentAlternativeIndex < m_bodyDisjunction->terms.size());
1373
1374 return beginTerm;
1375 }
1376
1377 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
1378 void dumpDisjunction(ByteDisjunction* disjunction)
1379 {
1380 printf("ByteDisjunction(%p):\n\t", disjunction);
1381 for (unsigned i = 0; i < disjunction->terms.size(); ++i)
1382 printf("{ %d } ", disjunction->terms[i].type);
1383 printf("\n");
1384 }
1385 #endif
1386
1387 void closeAlternativecxx . . $ QTJSC/Yarr/ByteCompiler#closeAlternative(d4f767463ce0a6b3).(int beginTerm)
1388 {
1389 int origBeginTerm = beginTerm;
1390 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeAlternativeBegin);
1391 int endIndex = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1392
1393 unsigned frameLocation = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].frameLocation;
1394
1395 if (!m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next)
1396 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.remove(beginTerm);
1397 else {
1398 while (m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next) {
1399 beginTerm +=cxx . . $ `operator+=`(79c69f12ebd2f310). m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next;
1400 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeAlternativeDisjunction);
1401 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.end = endIndex - beginTerm;
1402 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].frameLocation = frameLocation;
1403 }
1404
1405 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next = origBeginTerm - beginTerm;
1406
1407 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::AlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#AlternativeEnd(b2793b3685d9b704).());
1408 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endIndex].frameLocation = frameLocation;
1409 }
1410 }
1411
1412 void closeBodyAlternativecxx . . $ QTJSC/Yarr/ByteCompiler#closeBodyAlternative(49f6e7a06ebc5aa8).()
1413 {
1414 int beginTerm = 0;
1415 int origBeginTerm = 0;
1416 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeBodyAlternativeBegin);
1417 int endIndex = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1418
1419 unsigned frameLocation = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].frameLocation;
1420
1421 while (m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next) {
1422 beginTerm +=cxx . . $ `operator+=`(79c69f12ebd2f310). m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next;
1423 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeBodyAlternativeDisjunction);
1424 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.end = endIndex - beginTerm;
1425 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].frameLocation = frameLocation;
1426 }
1427
1428 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].alternative.next = origBeginTerm - beginTerm;
1429
1430 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::BodyAlternativeEndcxx . . $ QTJSC/Yarr/ByteTerm#BodyAlternativeEnd(b2793b3685d9b704).());
1431 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endIndex].frameLocation = frameLocation;
1432 }
1433
1434 void atomParenthesesEndcxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesEnd(d2fd9372120f1171).(bool doInline, unsigned lastSubpatternId, int inputPosition, unsigned frameLocation, unsigned quantityCount, QuantifierTypecxx . . $ QTJSC/Yarr/QuantifierType# quantityType, unsigned callFrameSize = 0)
1435 {
1436 unsigned beginTerm = popParenthesesStackcxx . . $ QTJSC/Yarr/ByteCompiler#popParenthesesStack(db52760e79bf9054).();
1437 closeAlternativecxx . . $ QTJSC/Yarr/ByteCompiler#closeAlternative(d4f767463ce0a6b3).(beginTerm + 1);
1438 unsigned endTerm = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1439
1440 bool isAssertion = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].type ==cxx . . $ QTJSC/`operator==`(e9142ab59ce7dac8). ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionBegin.;
1441 bool invertOrCapture = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].invertOrCapture;
1442 unsigned subpatternId = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.subpatternId;
1443
1444 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(8855f21d2236050d).(isAssertion ? ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParentheticalAssertionEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParentheticalAssertionEnd. : ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatternOnceEndcxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpatternOnceEnd., subpatternId, invertOrCapture, inputPosition));
1445 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.parenthesesWidth = endTerm - beginTerm;
1446 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endTerm].atom.parenthesesWidth = endTerm - beginTerm;
1447 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endTerm].frameLocation = frameLocation;
1448
1449 if (doInline) {
1450 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.quantityCount = quantityCount;
1451 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.quantityType = quantityType;
1452 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endTerm].atom.quantityCount = quantityCount;
1453 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[endTerm].atom.quantityType = quantityType;
1454 } else {
1455 ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#& parenthesesBegin = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm];
1456 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(parenthesesBegin.type == ByteTerm::TypeParenthesesSubpatternOnceBegin);
1457
1458 bool invertOrCapture = parenthesesBegin.invertOrCapturecxx . . $ QTJSC/Yarr/ByteTerm#invertOrCapture.;
1459 unsigned subpatternId = parenthesesBegin.atomcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#atom..subpatternIdcxx . . $ QTJSC/Yarr/ByteTerm#$anonymous_type_0#$anonymous_type_1#$anonymous_type_2#subpatternId.;
1460
1461 unsigned numSubpatterns = lastSubpatternId - subpatternId + 1;
1462 ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* parenthesesDisjunction = new ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#ByteDisjunction(b4d55b1286ff73e8).(numSubpatterns, callFrameSize);
1463
1464 parenthesesDisjunction->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::SubpatternBegincxx . . $ QTJSC/Yarr/ByteTerm#SubpatternBegin(b2793b3685d9b704).());
1465 for (unsigned termInParentheses = beginTerm + 1; termInParentheses < endTerm; ++termInParentheses)
1466 parenthesesDisjunction->terms.append(m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[termInParentheses]);
1467 parenthesesDisjunction->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::SubpatternEndcxx . . $ QTJSC/Yarr/ByteTerm#SubpatternEnd(b2793b3685d9b704).());
1468
1469 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.shrink(beginTerm);
1470
1471 m_allParenthesesInfo.append(parenthesesDisjunction);
1472 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#ByteTerm(58ec429312fcdc80).(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::TypeParenthesesSubpatterncxx . . $ QTJSC/Yarr/ByteTerm#TypeParenthesesSubpattern., subpatternId, parenthesesDisjunction, invertOrCapture, inputPosition));
1473
1474 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.quantityCount = quantityCount;
1475 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].atom.quantityType = quantityType;
1476 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[beginTerm].frameLocation = frameLocation;
1477 }
1478 }
1479
1480 void regexBegincxx . . $ QTJSC/Yarr/ByteCompiler#regexBegin(b4d55b1286ff73e8).(unsigned numSubpatterns, unsigned callFrameSize)
1481 {
1482 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction. = new ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#ByteDisjunction(b4d55b1286ff73e8).(numSubpatterns, callFrameSize);
1483 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::BodyAlternativeBegincxx . . $ QTJSC/Yarr/ByteTerm#BodyAlternativeBegin(b2793b3685d9b704).());
1484 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[0].frameLocation = 0;
1485 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = 0;
1486 }
1487
1488 void regexEndcxx . . $ QTJSC/Yarr/ByteCompiler#regexEnd(49f6e7a06ebc5aa8).()
1489 {
1490 closeBodyAlternativecxx . . $ QTJSC/Yarr/ByteCompiler#closeBodyAlternative(49f6e7a06ebc5aa8).();
1491 }
1492
1493 void alternativeBodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#alternativeBodyDisjunction(49f6e7a06ebc5aa8).()
1494 {
1495 int newAlternativeIndex = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1496 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex.].alternative.next = newAlternativeIndex - m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex.;
1497 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::BodyAlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#BodyAlternativeDisjunction(b2793b3685d9b704).());
1498
1499 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = newAlternativeIndex;
1500 }
1501
1502 void alternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#alternativeDisjunction(49f6e7a06ebc5aa8).()
1503 {
1504 int newAlternativeIndex = m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.size();
1505 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms[m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex.].alternative.next = newAlternativeIndex - m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex.;
1506 m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.->terms.append(ByteTermcxx . . $ QTJSC/Yarr/ByteTerm#::AlternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteTerm#AlternativeDisjunction(b2793b3685d9b704).());
1507
1508 m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex. = newAlternativeIndex;
1509 }
1510
1511 void emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(PatternDisjunctioncxx . . $ QTJSC/Yarr/PatternDisjunction#* disjunction, unsigned inputCountAlreadyChecked = 0, unsigned parenthesesInputCountAlreadyChecked = 0)
1512 {
1513 for (unsigned alt = 0; alt <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). disjunction->m_alternatives.size(); ++alt) {
1514 unsigned currentCountAlreadyChecked = inputCountAlreadyChecked;
1515
1516 if (alt) {
1517 if (disjunction == m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern..m_bodycxx . . $ QTJSC/Yarr/RegexPattern#m_body.)
1518 alternativeBodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#alternativeBodyDisjunction(49f6e7a06ebc5aa8).();
1519 else
1520 alternativeDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#alternativeDisjunction(49f6e7a06ebc5aa8).();
1521 }
1522
1523 PatternAlternativecxx . . $ QTJSC/Yarr/PatternAlternative#* alternative = disjunction->m_alternatives[alt];
1524 unsigned minimumSize = alternative->m_minimumSizecxx . . $ QTJSC/Yarr/PatternAlternative#m_minimumSize.;
1525
1526 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(minimumSize >= parenthesesInputCountAlreadyChecked);
1527 unsigned countToCheck = minimumSize - parenthesesInputCountAlreadyChecked;
1528 if (countToCheck)
1529 checkInputcxx . . $ QTJSC/Yarr/ByteCompiler#checkInput(cb2f890c2fdad230).(countToCheck);
1530 currentCountAlreadyChecked += countToCheck;
1531
1532 for (unsigned i = 0; i <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). alternative->m_terms.size(); ++i) {
1533 PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#& term = alternative->m_terms[i];
1534
1535 switch (term.typecxx . . $ QTJSC/Yarr/PatternTerm#type.) {
1536 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeAssertionBOLcxx . . $ QTJSC/Yarr/PatternTerm#TypeAssertionBOL.:
1537 assertionBOLcxx . . $ QTJSC/Yarr/ByteCompiler#assertionBOL(d4f767463ce0a6b3).(term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked);
1538 break;
1539
1540 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeAssertionEOLcxx . . $ QTJSC/Yarr/PatternTerm#TypeAssertionEOL.:
1541 assertionEOLcxx . . $ QTJSC/Yarr/ByteCompiler#assertionEOL(d4f767463ce0a6b3).(term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked);
1542 break;
1543
1544 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeAssertionWordBoundarycxx . . $ QTJSC/Yarr/PatternTerm#TypeAssertionWordBoundary.:
1545 assertionWordBoundarycxx . . $ QTJSC/Yarr/ByteCompiler#assertionWordBoundary(b994e01f1c45a386).(term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked);
1546 break;
1547
1548 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypePatternCharactercxx . . $ QTJSC/Yarr/PatternTerm#TypePatternCharacter.:
1549 atomPatternCharactercxx . . $ QTJSC/Yarr/ByteCompiler#atomPatternCharacter(c706ab68f2102f85).(term.patternCharactercxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#patternCharacter., term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType.);
1550 break;
1551
1552 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeCharacterClasscxx . . $ QTJSC/Yarr/PatternTerm#TypeCharacterClass.:
1553 atomCharacterClasscxx . . $ QTJSC/Yarr/ByteCompiler#atomCharacterClass(749b8d18b1b04d56).(term.characterClasscxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#characterClass., term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType.);
1554 break;
1555
1556 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeBackReferencecxx . . $ QTJSC/Yarr/PatternTerm#TypeBackReference.:
1557 atomBackReferencecxx . . $ QTJSC/Yarr/ByteCompiler#atomBackReference(cab794a603be5109).(term.subpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#subpatternId., term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType.);
1558 break;
1559
1560 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeForwardReferencecxx . . $ QTJSC/Yarr/PatternTerm#TypeForwardReference.:
1561 break;
1562
1563 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeParenthesesSubpatterncxx . . $ QTJSC/Yarr/PatternTerm#TypeParenthesesSubpattern.: {
1564 unsigned disjunctionAlreadyCheckedCount = 0;
1565 if ((term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount. == 1) && !term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..isCopycxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#isCopy.) {
1566 if (term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType. == QuantifierFixedCountcxx . . $ QTJSC/Yarr/QuantifierFixedCount.) {
1567 disjunctionAlreadyCheckedCount = term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction.->m_minimumSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_minimumSize.;
1568 unsigned delegateEndInputOffset = term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked;
1569 atomParenthesesSubpatternBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesSubpatternBegin(715fc55b568b4871).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..subpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#subpatternId., term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., delegateEndInputOffset - disjunctionAlreadyCheckedCount, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation.);
1570 emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction., currentCountAlreadyChecked, term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction.->m_minimumSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_minimumSize.);
1571 atomParenthesesEndcxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesEnd(d2fd9372120f1171).(true, term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..lastSubpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#lastSubpatternId., delegateEndInputOffset, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType., term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction.->m_callFrameSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_callFrameSize.);
1572 } else {
1573 unsigned delegateEndInputOffset = term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked;
1574 atomParenthesesSubpatternBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesSubpatternBegin(715fc55b568b4871).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..subpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#subpatternId., term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., delegateEndInputOffset - disjunctionAlreadyCheckedCount, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation. + RegexStackSpaceForBackTrackInfoParenthesesOncecxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:44:9`!);
1575 emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction., currentCountAlreadyChecked, 0);
1576 atomParenthesesEndcxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesEnd(d2fd9372120f1171).(true, term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..lastSubpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#lastSubpatternId., delegateEndInputOffset, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType., term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction.->m_callFrameSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_callFrameSize.);
1577 }
1578 } else {
1579 unsigned delegateEndInputOffset = term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. - currentCountAlreadyChecked;
1580 atomParenthesesSubpatternBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesSubpatternBegin(715fc55b568b4871).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..subpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#subpatternId., term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., delegateEndInputOffset - disjunctionAlreadyCheckedCount, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., 0);
1581 emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction., currentCountAlreadyChecked, 0);
1582 atomParenthesesEndcxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesEnd(d2fd9372120f1171).(false, term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..lastSubpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#lastSubpatternId., delegateEndInputOffset, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType., term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction.->m_callFrameSizecxx . . $ QTJSC/Yarr/PatternDisjunction#m_callFrameSize.);
1583 }
1584 break;
1585 }
1586
1587 case PatternTermcxx . . $ QTJSC/Yarr/PatternTerm#::TypeParentheticalAssertioncxx . . $ QTJSC/Yarr/PatternTerm#TypeParentheticalAssertion.: {
1588 unsigned alternativeFrameLocation = term.inputPositioncxx . . $ QTJSC/Yarr/PatternTerm#inputPosition. + RegexStackSpaceForBackTrackInfoParentheticalAssertioncxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:43:9`!;
1589
1590 atomParentheticalAssertionBegincxx . . $ QTJSC/Yarr/ByteCompiler#atomParentheticalAssertionBegin(d9d0053e206adc11).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..subpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#subpatternId., term.invertOrCapturecxx . . $ QTJSC/Yarr/PatternTerm#invertOrCapture., term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., alternativeFrameLocation);
1591 emitDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#emitDisjunction(b43bba2495f54df4).(term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..disjunctioncxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#disjunction., currentCountAlreadyChecked, 0);
1592 atomParenthesesEndcxx . . $ QTJSC/Yarr/ByteCompiler#atomParenthesesEnd(d2fd9372120f1171).(true, term.parenthesescxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#parentheses..lastSubpatternIdcxx . . $ QTJSC/Yarr/PatternTerm#$anonymous_type_0#$anonymous_type_1#lastSubpatternId., 0, term.frameLocationcxx . . $ QTJSC/Yarr/PatternTerm#frameLocation., term.quantityCountcxx . . $ QTJSC/Yarr/PatternTerm#quantityCount., term.quantityTypecxx . . $ QTJSC/Yarr/PatternTerm#quantityType.);
1593 break;
1594 }
1595 }
1596 }
1597 }
1598 }
1599
1600 private:
1601 RegexPatterncxx . . $ QTJSC/Yarr/RegexPattern#& m_patterncxx . . $ QTJSC/Yarr/ByteCompiler#m_pattern.;
1602 ByteDisjunctioncxx . . $ QTJSC/Yarr/ByteDisjunction#* m_bodyDisjunctioncxx . . $ QTJSC/Yarr/ByteCompiler#m_bodyDisjunction.;
1603 unsigned m_currentAlternativeIndexcxx . . $ QTJSC/Yarr/ByteCompiler#m_currentAlternativeIndex.;
1604 Vector<ParenthesesStackEntry> m_parenthesesStackcxx . . $ QTJSC/Yarr/ByteCompiler#m_parenthesesStack.;
1605 Vector<ByteDisjunction*> m_allParenthesesInfocxx . . $ QTJSC/Yarr/ByteCompiler#m_allParenthesesInfo.;
1606 };
1607
1608
1609 BytecodePatterncxx . . $ QTJSC/Yarr/BytecodePattern#* byteCompileRegexcxx . . $ QTJSC/Yarr/byteCompileRegex(2a11e44c6d26179f).(const UStringcxx . . $ QTJSC/UString#& patternString, unsigned& numSubpatterns, const char*& error, bool ignoreCase, bool multiline)
1610 {
1611 RegexPatterncxx . . $ QTJSC/Yarr/RegexPattern# patterncxx . . $ QTJSC/Yarr/RegexPattern#RegexPattern(b0b38cda41d4ede4).(ignoreCase, multiline);
1612
1613 if ((error = compileRegexcxx . . $ QTJSC/Yarr/compileRegex(d85ba63b80712db2).(patternString, pattern)))
1614 return 0;
1615
1616 numSubpatterns = pattern.m_numSubpatternscxx . . $ QTJSC/Yarr/RegexPattern#m_numSubpatterns.;
1617
1618 return ByteCompilercxx . . $ QTJSC/Yarr/ByteCompiler#(pattern).compilecxx . . $ QTJSC/Yarr/ByteCompiler#compile(7274935945157802).();
1619 }
1620
1621 int interpretRegexcxx . . $ QTJSC/Yarr/interpretRegex(ae0016d597b821a6).(BytecodePatterncxx . . $ QTJSC/Yarr/BytecodePattern#* regex, const UCharcxx . . $ UChar#* input, unsigned start, unsigned length, int* output)
1622 {
1623 return Interpretercxx . . $ QTJSC/Yarr/Interpreter#Interpreter(7c30709794360eb8).(regex, output, input, start, length).interpretcxx . . $ QTJSC/Yarr/Interpreter#interpret(b126dc7c1de90089).();
1624 }
1625
1626
1627 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoPatternCharacter) == (RegexStackSpaceForBackTrackInfoPatternCharactercxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:39:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoPatternCharacter);
1628 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoCharacterClass) == (RegexStackSpaceForBackTrackInfoCharacterClasscxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:40:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoCharacterClass);
1629 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoBackReference) == (RegexStackSpaceForBackTrackInfoBackReferencecxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:41:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoBackReference);
1630 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoAlternative) == (RegexStackSpaceForBackTrackInfoAlternativecxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:42:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoAlternative);
1631 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoParentheticalAssertion) == (RegexStackSpaceForBackTrackInfoParentheticalAssertioncxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:43:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoParentheticalAssertion);
1632 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoParenthesesOnce) == (RegexStackSpaceForBackTrackInfoParenthesesOncecxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:44:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoParenthesesOnce);
1633 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(Interpreter::BackTrackInfoParentheses) == (RegexStackSpaceForBackTrackInfoParenthesescxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexPattern.h:45:9`! * sizeof(uintptr_t)), CheckRegexStackSpaceForBackTrackInfoParentheses);
1634
1635
1636 } }
1637
1638 #endif