Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/parser/Lexer.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 1999-2000 Harri Porten ([email protected])
3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All Rights Reserved.
4 * Copyright (C) 2007 Cameron Zwarich ([email protected])
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
24 #include "Lexer.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Lexer.h`/
25
26 #include "JSFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h`/
27 #include "JSGlobalObjectFunctions.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObjectFunctions.h`/
28 #include "NodeInfo.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/NodeInfo.h`/
29 #include "Nodes.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Nodes.h`/
30 #include "dtoa.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/dtoa.h`/
31 #include <ctype.h>
32 #include <limits.h>
33 #include <string.h>
34 #include <wtf/Assertions.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h`/
35
36 using namespace WTFcxx . . $ `<built-in>:467:9`!;
37 using namespace Unicode;
38
39 // We can't specify the namespace in yacc's C output, so do it here instead.
40 using namespace JSCcxx . . $ `<built-in>:463:9`!;
41
42 #include "Grammar.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/generated/Grammar.h`/
43 #include "Lookup.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h`/
44 #include "Lexer.lut.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/generated/Lexer.lut.h`/
45
46 namespace JSCcxx . . $ `<built-in>:463:9`! {
47
48 static const UCharcxx . . $ UChar# byteOrderMarkcxx . . $ QTJSC/byteOrderMark. = 0xFEFF;
49
50 Lexercxx . . $ QTJSC/Lexer#::Lexercxx . . $ QTJSC/Lexer#Lexer(71c44650a83bfd83).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData)
51 : m_isReparsingcxx . . $ QTJSC/Lexer#m_isReparsing.(false)
52 , m_globalDatacxx . . $ QTJSC/Lexer#m_globalData.(globalData)
53 , m_keywordTablecxx . . $ QTJSC/Lexer#m_keywordTable.(JSCcxx . . $ `<built-in>:463:9`!::mainTablecxx . . $ QTJSC/mainTable.)
54 {
55 m_buffer8.reserveInitialCapacity(initialReadBufferCapacity);
56 m_buffer16.reserveInitialCapacity(initialReadBufferCapacity);
57 }
58
59 Lexercxx . . $ QTJSC/Lexer#::~cxx . . $ QTJSC/Lexer#`~Lexer`(49f6e7a06ebc5aa8).Lexercxx . . $ QTJSC/Lexer#()
60 {
61 m_keywordTablecxx . . $ QTJSC/Lexer#m_keywordTable..deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
62 }
63
64 inline const UCharcxx . . $ UChar#* Lexercxx . . $ QTJSC/Lexer#::currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).() const
65 {
66 return m_codecxx . . $ QTJSC/Lexer#m_code. - 4;
67 }
68
69 inline int Lexercxx . . $ QTJSC/Lexer#::currentOffsetcxx . . $ QTJSC/Lexer#currentOffset(455f465bc33b4cdf).() const
70 {
71 return currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).() - m_codeStartcxx . . $ QTJSC/Lexer#m_codeStart.;
72 }
73
74 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! void Lexercxx . . $ QTJSC/Lexer#::shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).()
75 {
76 m_currentcxx . . $ QTJSC/Lexer#m_current. = m_next1cxx . . $ QTJSC/Lexer#m_next1.;
77 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_next2cxx . . $ QTJSC/Lexer#m_next2.;
78 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_next3cxx . . $ QTJSC/Lexer#m_next3.;
79 if (LIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:53:9`!(m_code < m_codeEnd))
80 m_next3cxx . . $ QTJSC/Lexer#m_next3. = m_codecxx . . $ QTJSC/Lexer#m_code.[0];
81 else
82 m_next3cxx . . $ QTJSC/Lexer#m_next3. = -1;
83
84 ++m_codecxx . . $ QTJSC/Lexer#m_code.;
85 }
86
87 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! void Lexercxx . . $ QTJSC/Lexer#::shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).()
88 {
89 m_currentcxx . . $ QTJSC/Lexer#m_current. = m_next2cxx . . $ QTJSC/Lexer#m_next2.;
90 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_next3cxx . . $ QTJSC/Lexer#m_next3.;
91 if (LIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:53:9`!(m_code + 1 < m_codeEnd)) {
92 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code.[0];
93 m_next3cxx . . $ QTJSC/Lexer#m_next3. = m_codecxx . . $ QTJSC/Lexer#m_code.[1];
94 } else {
95 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code. < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[0] : -1;
96 m_next3cxx . . $ QTJSC/Lexer#m_next3. = -1;
97 }
98
99 m_codecxx . . $ QTJSC/Lexer#m_code. += 2;
100 }
101
102 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! void Lexercxx . . $ QTJSC/Lexer#::shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).()
103 {
104 m_currentcxx . . $ QTJSC/Lexer#m_current. = m_next3cxx . . $ QTJSC/Lexer#m_next3.;
105 if (LIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:53:9`!(m_code + 2 < m_codeEnd)) {
106 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_codecxx . . $ QTJSC/Lexer#m_code.[0];
107 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code.[1];
108 m_next3cxx . . $ QTJSC/Lexer#m_next3. = m_codecxx . . $ QTJSC/Lexer#m_code.[2];
109 } else {
110 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_codecxx . . $ QTJSC/Lexer#m_code. < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[0] : -1;
111 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code. + 1 < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[1] : -1;
112 m_next3cxx . . $ QTJSC/Lexer#m_next3. = -1;
113 }
114
115 m_codecxx . . $ QTJSC/Lexer#m_code. += 3;
116 }
117
118 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! void Lexercxx . . $ QTJSC/Lexer#::shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).()
119 {
120 if (LIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:53:9`!(m_code + 3 < m_codeEnd)) {
121 m_currentcxx . . $ QTJSC/Lexer#m_current. = m_codecxx . . $ QTJSC/Lexer#m_code.[0];
122 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_codecxx . . $ QTJSC/Lexer#m_code.[1];
123 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code.[2];
124 m_next3cxx . . $ QTJSC/Lexer#m_next3. = m_codecxx . . $ QTJSC/Lexer#m_code.[3];
125 } else {
126 m_currentcxx . . $ QTJSC/Lexer#m_current. = m_codecxx . . $ QTJSC/Lexer#m_code. < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[0] : -1;
127 m_next1cxx . . $ QTJSC/Lexer#m_next1. = m_codecxx . . $ QTJSC/Lexer#m_code. + 1 < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[1] : -1;
128 m_next2cxx . . $ QTJSC/Lexer#m_next2. = m_codecxx . . $ QTJSC/Lexer#m_code. + 2 < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. ? m_codecxx . . $ QTJSC/Lexer#m_code.[2] : -1;
129 m_next3cxx . . $ QTJSC/Lexer#m_next3. = -1;
130 }
131
132 m_codecxx . . $ QTJSC/Lexer#m_code. += 4;
133 }
134
135 void Lexercxx . . $ QTJSC/Lexer#::setCodecxx . . $ QTJSC/Lexer#setCode(69629f4309bb4539).(const SourceCodecxx . . $ QTJSC/SourceCode#& source, ParserArenacxx . . $ QTJSC/ParserArena#& arena)
136 {
137 m_arenacxx . . $ QTJSC/Lexer#m_arena. = &arena.identifierArenacxx . . $ QTJSC/ParserArena#identifierArena(a2b2bd4d27f4ae7b).();
138
139 m_lineNumbercxx . . $ QTJSC/Lexer#m_lineNumber. = source.firstLinecxx . . $ QTJSC/SourceCode#firstLine(455f465bc33b4cdf).();
140 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
141 m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. = -1;
142
143 const UCharcxx . . $ UChar#* data = source.providercxx . . $ QTJSC/SourceCode#provider(387ae131163f03a7).()->datacxx . . $ QTJSC/SourceProvider#data(9865edf6270d80f8).();
144
145 m_sourcecxx . . $ QTJSC/Lexer#m_source. = &source;
146 m_codeStartcxx . . $ QTJSC/Lexer#m_codeStart. = data;
147 m_codecxx . . $ QTJSC/Lexer#m_code. = data + source.startOffsetcxx . . $ QTJSC/SourceCode#startOffset(455f465bc33b4cdf).();
148 m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd. = data + source.endOffsetcxx . . $ QTJSC/SourceCode#endOffset(455f465bc33b4cdf).();
149 m_errorcxx . . $ QTJSC/Lexer#m_error. = false;
150 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = true;
151
152 // ECMA-262 calls for stripping all Cf characters, but we only strip BOM characters.
153 // See <https://bugs.webkit.org/show_bug.cgi?id=4931> for details.
154 if (source.providercxx . . $ QTJSC/SourceCode#provider(387ae131163f03a7).()->hasBOMscxx . . $ QTJSC/SourceProvider#hasBOMs(eefac63cb5729db6).()) {
155 for (const UCharcxx . . $ UChar#* p = m_codeStartcxx . . $ QTJSC/Lexer#m_codeStart.; p < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd.; ++p) {
156 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(*p == byteOrderMark)) {
157 copyCodeWithoutBOMscxx . . $ QTJSC/Lexer#copyCodeWithoutBOMs(49f6e7a06ebc5aa8).();
158 break;
159 }
160 }
161 }
162
163 // Read the first characters into the 4-character buffer.
164 shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).();
165 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(currentOffset() == source.startOffset());
166 }
167
168 void Lexercxx . . $ QTJSC/Lexer#::copyCodeWithoutBOMscxx . . $ QTJSC/Lexer#copyCodeWithoutBOMs(49f6e7a06ebc5aa8).()
169 {
170 // Note: In this case, the character offset data for debugging will be incorrect.
171 // If it's important to correctly debug code with extraneous BOMs, then the caller
172 // should strip the BOMs when creating the SourceProvider object and do its own
173 // mapping of offsets within the stripped text to original text offset.
174
175 m_codeWithoutBOMs.reserveCapacity(m_codeEnd - m_code);
176 for (const UCharcxx . . $ UChar#* p = m_codecxx . . $ QTJSC/Lexer#m_code.; p < m_codeEndcxx . . $ QTJSC/Lexer#m_codeEnd.; ++p) {
177 UCharcxx . . $ UChar# c = *p;
178 if (c != byteOrderMark)
179 m_codeWithoutBOMs.append(c);
180 }
181 ptrdiff_t startDelta = m_codeStartcxx . . $ QTJSC/Lexer#m_codeStart. - m_codecxx . . $ QTJSC/Lexer#m_code.;
182 m_code = m_codeWithoutBOMs.data();
183 m_codeStartcxx . . $ QTJSC/Lexer#m_codeStart. = m_codecxx . . $ QTJSC/Lexer#m_code. + startDelta;
184 m_codeEnd = m_codeWithoutBOMs.data() + m_codeWithoutBOMs.size();
185 }
186
187 void Lexercxx . . $ QTJSC/Lexer#::shiftLineTerminatorcxx . . $ QTJSC/Lexer#shiftLineTerminator(49f6e7a06ebc5aa8).()
188 {
189 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isLineTerminator(m_current));
190
191 // Allow both CRLF and LFCR.
192 if (m_currentcxx . . $ QTJSC/Lexer#m_current. + m_next1cxx . . $ QTJSC/Lexer#m_next1. == '\n' + '\r')
193 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
194 else
195 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
196
197 ++m_lineNumbercxx . . $ QTJSC/Lexer#m_lineNumber.;
198 }
199
200 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! const Identifiercxx . . $ QTJSC/Identifier#* Lexercxx . . $ QTJSC/Lexer#::makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(const UCharcxx . . $ UChar#* characters, size_tcxx . . $ size_t# length)
201 {
202 return &m_arenacxx . . $ QTJSC/Lexer#m_arena.->makeIdentifiercxx . . $ QTJSC/IdentifierArena#makeIdentifier(8bd20c2cb45bde8a).(m_globalDatacxx . . $ QTJSC/Lexer#m_globalData., characters, length);
203 }
204
205 inline bool Lexercxx . . $ QTJSC/Lexer#::lastTokenWasRestrKeywordcxx . . $ QTJSC/Lexer#lastTokenWasRestrKeyword(50ce9a9e25b4a850).() const
206 {
207 return m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. == CONTINUEcxx . . $ CONTINUE. || m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. == BREAKcxx . . $ BREAK. || m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. == RETURNcxx . . $ RETURN. || m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. == THROWcxx . . $ THROW.;
208 }
209
210 static NEVER_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:35:9`! bool isNonASCIIIdentStartcxx . . $ QTJSC/isNonASCIIIdentStart(83c267b20bac841a).(int c)
211 {
212 return categorycxx . . $ QTWTF/Unicode/category(3a8d230864d72d06).(c) & (Letter_Uppercasecxx . . $ QTWTF/Unicode/Letter_Uppercase. | Letter_Lowercasecxx . . $ QTWTF/Unicode/Letter_Lowercase. | Letter_Titlecasecxx . . $ QTWTF/Unicode/Letter_Titlecase. | Letter_Modifiercxx . . $ QTWTF/Unicode/Letter_Modifier. | Letter_Othercxx . . $ QTWTF/Unicode/Letter_Other.);
213 }
214
215 static inline bool isIdentStartcxx . . $ QTJSC/isIdentStart(83c267b20bac841a).(int c)
216 {
217 return isASCIIcxx . . $ isASCII(83c267b20bac841a).(c) ? isASCIIAlphacxx . . $ isASCIIAlpha(83c267b20bac841a).(c) || c == '$' || c == '_' : isNonASCIIIdentStartcxx . . $ QTJSC/isNonASCIIIdentStart(83c267b20bac841a).(c);
218 }
219
220 static NEVER_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:35:9`! bool isNonASCIIIdentPartcxx . . $ QTJSC/isNonASCIIIdentPart(83c267b20bac841a).(int c)
221 {
222 return categorycxx . . $ QTWTF/Unicode/category(3a8d230864d72d06).(c) & (Letter_Uppercasecxx . . $ QTWTF/Unicode/Letter_Uppercase. | Letter_Lowercasecxx . . $ QTWTF/Unicode/Letter_Lowercase. | Letter_Titlecasecxx . . $ QTWTF/Unicode/Letter_Titlecase. | Letter_Modifiercxx . . $ QTWTF/Unicode/Letter_Modifier. | Letter_Othercxx . . $ QTWTF/Unicode/Letter_Other.
223 | Mark_NonSpacingcxx . . $ QTWTF/Unicode/Mark_NonSpacing. | Mark_SpacingCombiningcxx . . $ QTWTF/Unicode/Mark_SpacingCombining. | Number_DecimalDigitcxx . . $ QTWTF/Unicode/Number_DecimalDigit. | Punctuation_Connectorcxx . . $ QTWTF/Unicode/Punctuation_Connector.);
224 }
225
226 static inline bool isIdentPartcxx . . $ QTJSC/isIdentPart(83c267b20bac841a).(int c)
227 {
228 return isASCIIcxx . . $ isASCII(83c267b20bac841a).(c) ? isASCIIAlphanumericcxx . . $ isASCIIAlphanumeric(83c267b20bac841a).(c) || c == '$' || c == '_' : isNonASCIIIdentPartcxx . . $ QTJSC/isNonASCIIIdentPart(83c267b20bac841a).(c);
229 }
230
231 static inline int singleEscapecxx . . $ QTJSC/singleEscape(7864480464b09eea).(int c)
232 {
233 switch (c) {
234 case 'b':
235 return 0x08;
236 case 't':
237 return 0x09;
238 case 'n':
239 return 0x0A;
240 case 'v':
241 return 0x0B;
242 case 'f':
243 return 0x0C;
244 case 'r':
245 return 0x0D;
246 default:
247 return c;
248 }
249 }
250
251 inline void Lexercxx . . $ QTJSC/Lexer#::record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(int c)
252 {
253 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(c >= 0);
254 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(c <= 0xFF);
255 m_buffer8.append(static_cast<char>(c));
256 }
257
258 inline void Lexercxx . . $ QTJSC/Lexer#::record16cxx . . $ QTJSC/Lexer#record16(ed53e3bbd3fa2f69).(UCharcxx . . $ UChar# c)
259 {
260 m_buffer16.append(c);
261 }
262
263 inline void Lexercxx . . $ QTJSC/Lexer#::record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(int c)
264 {
265 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(c >= 0);
266 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(c <= USHRT_MAX);
267 record16cxx . . $ QTJSC/Lexer#record16(ed53e3bbd3fa2f69).(UCharcxx . . $ UChar#(static_cast<unsigned short>(c)));
268 }
269
270 int Lexercxx . . $ QTJSC/Lexer#::lexcxx . . $ QTJSC/Lexer#lex(361d5d7064a2a85d).(void* p1, void* p2)
271 {
272 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!m_error);
273 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_buffer8.isEmpty());
274 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_buffer16.isEmpty());
275
276 YYSTYPEcxx . . $ YYSTYPE#* lvalp = static_cast<YYSTYPEcxx . . $ YYSTYPE#*>(p1);
277 YYLTYPEcxx . . $ YYLTYPE#* llocp = static_cast<YYLTYPEcxx . . $ YYLTYPE#*>(p2);
278 int token = 0;
279 m_terminatorcxx . . $ QTJSC/Lexer#m_terminator. = false;
280
281 start:
282 while (isWhiteSpacecxx . . $ QTJSC/Lexer#isWhiteSpace(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
283 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
284
285 int startOffset = currentOffsetcxx . . $ QTJSC/Lexer#currentOffset(455f465bc33b4cdf).();
286
287 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == -1) {
288 #ifndef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`! /* the parser takes cate about automatic semicolon.
289 this might add incorrect semicolons */
290 //m_delimited and m_isReparsing are now useless
291 if (!m_terminator && !m_delimited && !m_isReparsing) {
292 // automatic semicolon insertion if program incomplete
293 token = ';';
294 goto doneSemicolon;
295 }
296 #endif
297 return 0;
298 }
299
300 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
301 switch (m_currentcxx . . $ QTJSC/Lexer#m_current.) {
302 case '>':
303 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '>' && m_next2cxx . . $ QTJSC/Lexer#m_next2. == '>') {
304 if (m_next3cxx . . $ QTJSC/Lexer#m_next3. == '=') {
305 shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).();
306 token = URSHIFTEQUALcxx . . $ URSHIFTEQUAL.;
307 break;
308 }
309 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
310 token = URSHIFTcxx . . $ URSHIFT.;
311 break;
312 }
313 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '>') {
314 if (m_next2cxx . . $ QTJSC/Lexer#m_next2. == '=') {
315 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
316 token = RSHIFTEQUALcxx . . $ RSHIFTEQUAL.;
317 break;
318 }
319 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
320 token = RSHIFTcxx . . $ RSHIFT.;
321 break;
322 }
323 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
324 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
325 token = GEcxx . . $ GE.;
326 break;
327 }
328 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
329 token = '>';
330 break;
331 case '=':
332 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
333 if (m_next2cxx . . $ QTJSC/Lexer#m_next2. == '=') {
334 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
335 token = STREQcxx . . $ STREQ.;
336 break;
337 }
338 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
339 token = EQEQcxx . . $ EQEQ.;
340 break;
341 }
342 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
343 token = '=';
344 break;
345 case '!':
346 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
347 if (m_next2cxx . . $ QTJSC/Lexer#m_next2. == '=') {
348 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
349 token = STRNEQcxx . . $ STRNEQ.;
350 break;
351 }
352 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
353 token = NEcxx . . $ NE.;
354 break;
355 }
356 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
357 token = '!';
358 break;
359 case '<':
360 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '!' && m_next2cxx . . $ QTJSC/Lexer#m_next2. == '-' && m_next3cxx . . $ QTJSC/Lexer#m_next3. == '-') {
361 // <!-- marks the beginning of a line comment (for www usage)
362 shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).();
363 goto inSingleLineComment;
364 }
365 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '<') {
366 if (m_next2cxx . . $ QTJSC/Lexer#m_next2. == '=') {
367 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
368 token = LSHIFTEQUALcxx . . $ LSHIFTEQUAL.;
369 break;
370 }
371 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
372 token = LSHIFTcxx . . $ LSHIFT.;
373 break;
374 }
375 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
376 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
377 token = LEcxx . . $ LE.;
378 break;
379 }
380 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
381 token = '<';
382 break;
383 case '+':
384 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '+') {
385 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
386 if (m_terminatorcxx . . $ QTJSC/Lexer#m_terminator.) {
387 token = AUTOPLUSPLUScxx . . $ AUTOPLUSPLUS.;
388 break;
389 }
390 token = PLUSPLUScxx . . $ PLUSPLUS.;
391 break;
392 }
393 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
394 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
395 token = PLUSEQUALcxx . . $ PLUSEQUAL.;
396 break;
397 }
398 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
399 token = '+';
400 break;
401 case '-':
402 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '-') {
403 if (m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. && m_next2cxx . . $ QTJSC/Lexer#m_next2. == '>') {
404 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
405 goto inSingleLineComment;
406 }
407 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
408 if (m_terminatorcxx . . $ QTJSC/Lexer#m_terminator.) {
409 token = AUTOMINUSMINUScxx . . $ AUTOMINUSMINUS.;
410 break;
411 }
412 token = MINUSMINUScxx . . $ MINUSMINUS.;
413 break;
414 }
415 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
416 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
417 token = MINUSEQUALcxx . . $ MINUSEQUAL.;
418 break;
419 }
420 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
421 token = '-';
422 break;
423 case '*':
424 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
425 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
426 token = MULTEQUALcxx . . $ MULTEQUAL.;
427 break;
428 }
429 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
430 token = '*';
431 break;
432 case '/':
433 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '/') {
434 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
435 goto inSingleLineComment;
436 }
437 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '*')
438 goto inMultiLineComment;
439 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
440 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
441 token = DIVEQUALcxx . . $ DIVEQUAL.;
442 break;
443 }
444 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
445 token = '/';
446 break;
447 case '&':
448 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '&') {
449 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
450 token = ANDcxx . . $ AND.;
451 break;
452 }
453 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
454 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
455 token = ANDEQUALcxx . . $ ANDEQUAL.;
456 break;
457 }
458 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
459 token = '&';
460 break;
461 case '^':
462 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
463 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
464 token = XOREQUALcxx . . $ XOREQUAL.;
465 break;
466 }
467 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
468 token = '^';
469 break;
470 case '%':
471 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
472 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
473 token = MODEQUALcxx . . $ MODEQUAL.;
474 break;
475 }
476 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
477 token = '%';
478 break;
479 case '|':
480 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '=') {
481 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
482 token = OREQUALcxx . . $ OREQUAL.;
483 break;
484 }
485 if (m_next1cxx . . $ QTJSC/Lexer#m_next1. == '|') {
486 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
487 token = ORcxx . . $ OR.;
488 break;
489 }
490 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
491 token = '|';
492 break;
493 case '.':
494 if (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.)) {
495 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('.');
496 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
497 goto inNumberAfterDecimalPoint;
498 }
499 token = '.';
500 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
501 break;
502 case ',':
503 case '~':
504 case '?':
505 case ':':
506 case '(':
507 case ')':
508 case '[':
509 case ']':
510 token = m_currentcxx . . $ QTJSC/Lexer#m_current.;
511 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
512 break;
513 case ';':
514 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
515 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = true;
516 token = ';';
517 break;
518 case '{':
519 lvalp->intValuecxx . . $ YYSTYPE#intValue. = currentOffsetcxx . . $ QTJSC/Lexer#currentOffset(455f465bc33b4cdf).();
520 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
521 token = OPENBRACEcxx . . $ OPENBRACE.;
522 break;
523 case '}':
524 lvalp->intValuecxx . . $ YYSTYPE#intValue. = currentOffsetcxx . . $ QTJSC/Lexer#currentOffset(455f465bc33b4cdf).();
525 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
526 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = true;
527 token = CLOSEBRACEcxx . . $ CLOSEBRACE.;
528 break;
529 case '\\':
530 goto startIdentifierWithBackslash;
531 case '0':
532 goto startNumberWithZeroDigit;
533 case '1':
534 case '2':
535 case '3':
536 case '4':
537 case '5':
538 case '6':
539 case '7':
540 case '8':
541 case '9':
542 goto startNumber;
543 case '"':
544 case '\'':
545 goto startString;
546 default:
547 if (isIdentStartcxx . . $ QTJSC/isIdentStart(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
548 goto startIdentifierOrKeyword;
549 if (isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
550 shiftLineTerminatorcxx . . $ QTJSC/Lexer#shiftLineTerminator(49f6e7a06ebc5aa8).();
551 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = true;
552 m_terminatorcxx . . $ QTJSC/Lexer#m_terminator. = true;
553 if (lastTokenWasRestrKeywordcxx . . $ QTJSC/Lexer#lastTokenWasRestrKeyword(50ce9a9e25b4a850).()) {
554 token = ';';
555 goto doneSemicolon;
556 }
557 goto start;
558 }
559 goto returnError;
560 }
561
562 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
563 goto returnToken;
564
565 startString: {
566 int stringQuoteCharacter = m_currentcxx . . $ QTJSC/Lexer#m_current.;
567 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
568
569 const UCharcxx . . $ UChar#* stringStart = currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).();
570 while (m_currentcxx . . $ QTJSC/Lexer#m_current. != stringQuoteCharacter) {
571 // Fast check for characters that require special handling.
572 // Catches -1, \n, \r, \, 0x2028, and 0x2029 as efficiently
573 // as possible, and lets through all common ASCII characters.
574 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current == '\\') || UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(((static_cast<unsigned>(m_current) - 0xE) & 0x2000))) {
575 m_buffer16.append(stringStart, currentCharacter() - stringStart);
576 goto inString;
577 }
578 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
579 }
580 lvalp->identcxx . . $ YYSTYPE#ident. = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(stringStart, currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).() - stringStart);
581 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
582 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
583 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
584 token = STRINGcxx . . $ STRING.;
585 goto returnToken;
586
587 inString:
588 while (m_currentcxx . . $ QTJSC/Lexer#m_current. != stringQuoteCharacter) {
589 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == '\\')
590 goto inStringEscapeSequence;
591 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(isLineTerminator(m_current)))
592 goto returnError;
593 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current == -1))
594 goto returnError;
595 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
596 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
597 }
598 goto doneString;
599
600 inStringEscapeSequence:
601 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
602 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == 'x') {
603 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
604 if (isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.) && isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.)) {
605 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(convertHexcxx . . $ QTJSC/Lexer#convertHex(9b283c7f02910f2b).(m_currentcxx . . $ QTJSC/Lexer#m_current., m_next1cxx . . $ QTJSC/Lexer#m_next1.));
606 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
607 goto inString;
608 }
609 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).('x');
610 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == stringQuoteCharacter)
611 goto doneString;
612 goto inString;
613 }
614 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == 'u') {
615 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
616 if (isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.) && isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.) && isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_next2cxx . . $ QTJSC/Lexer#m_next2.) && isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_next3cxx . . $ QTJSC/Lexer#m_next3.)) {
617 record16cxx . . $ QTJSC/Lexer#record16(ed53e3bbd3fa2f69).(convertUnicodecxx . . $ QTJSC/Lexer#convertUnicode(9201b605cda5d4e5).(m_currentcxx . . $ QTJSC/Lexer#m_current., m_next1cxx . . $ QTJSC/Lexer#m_next1., m_next2cxx . . $ QTJSC/Lexer#m_next2., m_next3cxx . . $ QTJSC/Lexer#m_next3.));
618 shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).();
619 goto inString;
620 }
621 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == stringQuoteCharacter) {
622 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).('u');
623 goto doneString;
624 }
625 goto returnError;
626 }
627 if (isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
628 if (m_currentcxx . . $ QTJSC/Lexer#m_current. >= '0' && m_currentcxx . . $ QTJSC/Lexer#m_current. <= '3' && isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.) && isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_next2cxx . . $ QTJSC/Lexer#m_next2.)) {
629 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).((m_currentcxx . . $ QTJSC/Lexer#m_current. - '0') * 64 + (m_next1cxx . . $ QTJSC/Lexer#m_next1. - '0') * 8 + m_next2cxx . . $ QTJSC/Lexer#m_next2. - '0');
630 shift3cxx . . $ QTJSC/Lexer#shift3(49f6e7a06ebc5aa8).();
631 goto inString;
632 }
633 if (isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.)) {
634 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).((m_currentcxx . . $ QTJSC/Lexer#m_current. - '0') * 8 + m_next1cxx . . $ QTJSC/Lexer#m_next1. - '0');
635 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
636 goto inString;
637 }
638 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current. - '0');
639 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
640 goto inString;
641 }
642 if (isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
643 shiftLineTerminatorcxx . . $ QTJSC/Lexer#shiftLineTerminator(49f6e7a06ebc5aa8).();
644 goto inString;
645 }
646 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == -1)
647 goto returnError;
648 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(singleEscapecxx . . $ QTJSC/singleEscape(7864480464b09eea).(m_currentcxx . . $ QTJSC/Lexer#m_current.));
649 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
650 goto inString;
651 }
652
653 startIdentifierWithBackslash:
654 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
655 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current != 'u'))
656 goto returnError;
657 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
658 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(!isASCIIHexDigit(m_current) || !isASCIIHexDigit(m_next1) || !isASCIIHexDigit(m_next2) || !isASCIIHexDigit(m_next3)))
659 goto returnError;
660 token = convertUnicodecxx . . $ QTJSC/Lexer#convertUnicode(9201b605cda5d4e5).(m_currentcxx . . $ QTJSC/Lexer#m_current., m_next1cxx . . $ QTJSC/Lexer#m_next1., m_next2cxx . . $ QTJSC/Lexer#m_next2., m_next3cxx . . $ QTJSC/Lexer#m_next3.);
661 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(!isIdentStart(token)))
662 goto returnError;
663 goto inIdentifierAfterCharacterCheck;
664
665 startIdentifierOrKeyword: {
666 const UCharcxx . . $ UChar#* identifierStart = currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).();
667 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
668 while (isIdentPartcxx . . $ QTJSC/isIdentPart(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
669 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
670 if (LIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:53:9`!(m_current != '\\')) {
671 lvalp->identcxx . . $ YYSTYPE#ident. = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(identifierStart, currentCharactercxx . . $ QTJSC/Lexer#currentCharacter(9865edf6270d80f8).() - identifierStart);
672 goto doneIdentifierOrKeyword;
673 }
674 m_buffer16.append(identifierStart, currentCharacter() - identifierStart);
675 }
676
677 do {
678 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
679 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current != 'u'))
680 goto returnError;
681 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
682 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(!isASCIIHexDigit(m_current) || !isASCIIHexDigit(m_next1) || !isASCIIHexDigit(m_next2) || !isASCIIHexDigit(m_next3)))
683 goto returnError;
684 token = convertUnicodecxx . . $ QTJSC/Lexer#convertUnicode(9201b605cda5d4e5).(m_currentcxx . . $ QTJSC/Lexer#m_current., m_next1cxx . . $ QTJSC/Lexer#m_next1., m_next2cxx . . $ QTJSC/Lexer#m_next2., m_next3cxx . . $ QTJSC/Lexer#m_next3.);
685 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(!isIdentPart(token)))
686 goto returnError;
687 inIdentifierAfterCharacterCheck:
688 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(token);
689 shift4cxx . . $ QTJSC/Lexer#shift4(49f6e7a06ebc5aa8).();
690
691 while (isIdentPartcxx . . $ QTJSC/isIdentPart(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
692 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
693 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
694 }
695 } while (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current == '\\'));
696 goto doneIdentifier;
697
698 inSingleLineComment:
699 while (!isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
700 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current == -1))
701 return 0;
702 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
703 }
704 shiftLineTerminatorcxx . . $ QTJSC/Lexer#shiftLineTerminator(49f6e7a06ebc5aa8).();
705 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = true;
706 m_terminatorcxx . . $ QTJSC/Lexer#m_terminator. = true;
707 if (lastTokenWasRestrKeywordcxx . . $ QTJSC/Lexer#lastTokenWasRestrKeyword(50ce9a9e25b4a850).())
708 goto doneSemicolon;
709 goto start;
710
711 inMultiLineComment:
712 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
713 while (m_currentcxx . . $ QTJSC/Lexer#m_current. != '*' || m_next1cxx . . $ QTJSC/Lexer#m_next1. != '/') {
714 if (isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
715 shiftLineTerminatorcxx . . $ QTJSC/Lexer#shiftLineTerminator(49f6e7a06ebc5aa8).();
716 else {
717 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
718 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(m_current == -1))
719 goto returnError;
720 }
721 }
722 shift2cxx . . $ QTJSC/Lexer#shift2(49f6e7a06ebc5aa8).();
723 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
724 goto start;
725
726 startNumberWithZeroDigit:
727 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
728 if ((m_currentcxx . . $ QTJSC/Lexer#m_current. | 0x20) == 'x' && isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_next1cxx . . $ QTJSC/Lexer#m_next1.)) {
729 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
730 goto inHex;
731 }
732 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == '.') {
733 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('0');
734 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('.');
735 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
736 goto inNumberAfterDecimalPoint;
737 }
738 if ((m_currentcxx . . $ QTJSC/Lexer#m_current. | 0x20) == 'e') {
739 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('0');
740 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('e');
741 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
742 goto inExponentIndicator;
743 }
744 if (isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
745 goto inOctal;
746 if (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
747 goto startNumber;
748 lvalp->doubleValuecxx . . $ YYSTYPE#doubleValue. = 0;
749 goto doneNumeric;
750
751 inNumberAfterDecimalPoint:
752 while (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
753 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
754 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
755 }
756 if ((m_currentcxx . . $ QTJSC/Lexer#m_current. | 0x20) == 'e') {
757 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('e');
758 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
759 goto inExponentIndicator;
760 }
761 goto doneNumber;
762
763 inExponentIndicator:
764 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == '+' || m_currentcxx . . $ QTJSC/Lexer#m_current. == '-') {
765 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
766 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
767 }
768 if (!isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
769 goto returnError;
770 do {
771 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
772 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
773 } while (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.));
774 goto doneNumber;
775
776 inOctal: {
777 do {
778 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
779 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
780 } while (isASCIIOctalDigitcxx . . $ isASCIIOctalDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.));
781 if (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
782 goto startNumber;
783
784 double dval = 0;
785
786 const char* end = m_buffer8.end();
787 for (const char* p = m_buffer8.data(); p < end; ++p) {
788 dval *= 8;
789 dval += *p - '0';
790 }
791 if (dval >= mantissaOverflowLowerBoundcxx . . $ QTJSC/mantissaOverflowLowerBound.)
792 dval = parseIntOverflowcxx . . $ QTJSC/parseIntOverflow(aac88a90e076343c).(m_buffer8.data(), end - m_buffer8.data(), 8);
793
794 m_buffer8.resize(0);
795
796 lvalp->doubleValuecxx . . $ YYSTYPE#doubleValue. = dval;
797 goto doneNumeric;
798 }
799
800 inHex: {
801 do {
802 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
803 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
804 } while (isASCIIHexDigitcxx . . $ isASCIIHexDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.));
805
806 double dval = 0;
807
808 const char* end = m_buffer8.end();
809 for (const char* p = m_buffer8.data(); p < end; ++p) {
810 dval *= 16;
811 dval += toASCIIHexValuecxx . . $ toASCIIHexValue(784f3405e7e545be).(*p);
812 }
813 if (dval >= mantissaOverflowLowerBoundcxx . . $ QTJSC/mantissaOverflowLowerBound.)
814 dval = parseIntOverflowcxx . . $ QTJSC/parseIntOverflow(aac88a90e076343c).(m_buffer8.data(), end - m_buffer8.data(), 16);
815
816 m_buffer8.resize(0);
817
818 lvalp->doubleValuecxx . . $ YYSTYPE#doubleValue. = dval;
819 goto doneNumeric;
820 }
821
822 startNumber:
823 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
824 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
825 while (isASCIIDigitcxx . . $ isASCIIDigit(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
826 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
827 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
828 }
829 if (m_currentcxx . . $ QTJSC/Lexer#m_current. == '.') {
830 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('.');
831 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
832 goto inNumberAfterDecimalPoint;
833 }
834 if ((m_currentcxx . . $ QTJSC/Lexer#m_current. | 0x20) == 'e') {
835 record8cxx . . $ QTJSC/Lexer#record8(d4f767463ce0a6b3).('e');
836 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
837 goto inExponentIndicator;
838 }
839
840 // Fall through into doneNumber.
841
842 doneNumber:
843 // Null-terminate string for strtod.
844 m_buffer8.append('\0');
845 lvalp->doubleValuecxx . . $ YYSTYPE#doubleValue. = WTFcxx . . $ `<built-in>:467:9`!::strtodcxx . . $ QTWTF/strtod(3dfe5620a0d3160e).(m_buffer8.data(), 0);
846 m_buffer8.resize(0);
847
848 // Fall through into doneNumeric.
849
850 doneNumeric:
851 // No identifiers allowed directly after numeric literal, e.g. "3in" is bad.
852 if (UNLIKELYcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:45:9`!(isIdentStart(m_current)))
853 goto returnError;
854
855 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
856 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
857 token = NUMBERcxx . . $ NUMBER.;
858 goto returnToken;
859
860 doneSemicolon:
861 token = ';';
862 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = true;
863 goto returnToken;
864
865 doneIdentifier:
866 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
867 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
868 lvalp->identcxx . . $ YYSTYPE#ident. = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(m_buffer16.data(), m_buffer16.size());
869 m_buffer16.resize(0);
870 token = IDENTcxx . . $ IDENT.;
871 goto returnToken;
872
873 doneIdentifierOrKeyword: {
874 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
875 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
876 m_buffer16.resize(0);
877 const HashEntrycxx . . $ QTJSC/HashEntry#* entry = m_keywordTablecxx . . $ QTJSC/Lexer#m_keywordTable..entrycxx . . $ QTJSC/HashTable#entry(1cda2242ccd6fb66).(m_globalDatacxx . . $ QTJSC/Lexer#m_globalData., *lvalp->identcxx . . $ YYSTYPE#ident.);
878 token = entry ? entry->lexerValuecxx . . $ QTJSC/HashEntry#lexerValue(57a65ae535d7db84).() : IDENTcxx . . $ IDENT.;
879 goto returnToken;
880 }
881
882 doneString:
883 // Atomize constant strings in case they're later used in property lookup.
884 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
885 m_atLineStartcxx . . $ QTJSC/Lexer#m_atLineStart. = false;
886 m_delimitedcxx . . $ QTJSC/Lexer#m_delimited. = false;
887 lvalp->identcxx . . $ YYSTYPE#ident. = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(m_buffer16.data(), m_buffer16.size());
888 m_buffer16.resize(0);
889 token = STRINGcxx . . $ STRING.;
890
891 // Fall through into returnToken.
892
893 returnToken: {
894 int lineNumber = m_lineNumbercxx . . $ QTJSC/Lexer#m_lineNumber.;
895 llocp->first_linecxx . . $ YYLTYPE#first_line. = lineNumber;
896 llocp->last_linecxx . . $ YYLTYPE#last_line. = lineNumber;
897 llocp->first_columncxx . . $ YYLTYPE#first_column. = startOffset;
898 llocp->last_columncxx . . $ YYLTYPE#last_column. = currentOffsetcxx . . $ QTJSC/Lexer#currentOffset(455f465bc33b4cdf).();
899
900 m_lastTokencxx . . $ QTJSC/Lexer#m_lastToken. = token;
901 return token;
902 }
903
904 returnError:
905 m_errorcxx . . $ QTJSC/Lexer#m_error. = true;
906 return -1;
907 }
908
909 bool Lexercxx . . $ QTJSC/Lexer#::scanRegExpcxx . . $ QTJSC/Lexer#scanRegExp(459e00499e8f3668).(const Identifiercxx . . $ QTJSC/Identifier#*& pattern, const Identifiercxx . . $ QTJSC/Identifier#*& flags, UCharcxx . . $ UChar# patternPrefix)
910 {
911 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_buffer16.isEmpty());
912
913 bool lastWasEscape = false;
914 bool inBrackets = false;
915
916 if (patternPrefix) {
917 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!isLineTerminator(patternPrefix));
918 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(patternPrefix != '/');
919 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(patternPrefix != '[');
920 record16cxx . . $ QTJSC/Lexer#record16(ed53e3bbd3fa2f69).(patternPrefix);
921 }
922
923 while (true) {
924 int current = m_currentcxx . . $ QTJSC/Lexer#m_current.;
925
926 if (isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(current) || current == -1) {
927 m_buffer16.resize(0);
928 return false;
929 }
930
931 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
932
933 if (current == '/' && !lastWasEscape && !inBrackets)
934 break;
935
936 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(current);
937
938 if (lastWasEscape) {
939 lastWasEscape = false;
940 continue;
941 }
942
943 switch (current) {
944 case '[':
945 inBrackets = true;
946 break;
947 case ']':
948 inBrackets = false;
949 break;
950 case '\\':
951 lastWasEscape = true;
952 break;
953 }
954 }
955
956 pattern = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(m_buffer16.data(), m_buffer16.size());
957 m_buffer16.resize(0);
958
959 while (isIdentPartcxx . . $ QTJSC/isIdentPart(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.)) {
960 record16cxx . . $ QTJSC/Lexer#record16(d4f767463ce0a6b3).(m_currentcxx . . $ QTJSC/Lexer#m_current.);
961 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
962 }
963
964 flags = makeIdentifiercxx . . $ QTJSC/Lexer#makeIdentifier(d48f18586cb793f7).(m_buffer16.data(), m_buffer16.size());
965 m_buffer16.resize(0);
966
967 return true;
968 }
969
970 bool Lexercxx . . $ QTJSC/Lexer#::skipRegExpcxx . . $ QTJSC/Lexer#skipRegExp(c9857a73d68e59ba).()
971 {
972 bool lastWasEscape = false;
973 bool inBrackets = false;
974
975 while (true) {
976 int current = m_currentcxx . . $ QTJSC/Lexer#m_current.;
977
978 if (isLineTerminatorcxx . . $ QTJSC/Lexer#isLineTerminator(83c267b20bac841a).(current) || current == -1)
979 return false;
980
981 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
982
983 if (current == '/' && !lastWasEscape && !inBrackets)
984 break;
985
986 if (lastWasEscape) {
987 lastWasEscape = false;
988 continue;
989 }
990
991 switch (current) {
992 case '[':
993 inBrackets = true;
994 break;
995 case ']':
996 inBrackets = false;
997 break;
998 case '\\':
999 lastWasEscape = true;
1000 break;
1001 }
1002 }
1003
1004 while (isIdentPartcxx . . $ QTJSC/isIdentPart(83c267b20bac841a).(m_currentcxx . . $ QTJSC/Lexer#m_current.))
1005 shift1cxx . . $ QTJSC/Lexer#shift1(49f6e7a06ebc5aa8).();
1006
1007 return true;
1008 }
1009
1010 void Lexercxx . . $ QTJSC/Lexer#::clearcxx . . $ QTJSC/Lexer#clear(49f6e7a06ebc5aa8).()
1011 {
1012 m_arenacxx . . $ QTJSC/Lexer#m_arena. = 0;
1013 m_codeWithoutBOMs.clear();
1014
1015 Vector<char> newBuffer8;
1016 newBuffer8.reserveInitialCapacity(initialReadBufferCapacitycxx . . $ QTJSC/Lexer#initialReadBufferCapacity.);
1017 m_buffer8.swap(newBuffer8);
1018
1019 Vector<UChar> newBuffer16;
1020 newBuffer16.reserveInitialCapacity(initialReadBufferCapacitycxx . . $ QTJSC/Lexer#initialReadBufferCapacity.);
1021 m_buffer16.swap(newBuffer16);
1022
1023 m_isReparsingcxx . . $ QTJSC/Lexer#m_isReparsing. = false;
1024 }
1025
1026 SourceCodecxx . . $ QTJSC/SourceCode# Lexercxx . . $ QTJSC/Lexer#::sourceCodecxx . . $ QTJSC/Lexer#sourceCode(96d171769b0f0fbc).(int openBrace, int closeBrace, int firstLine)
1027 {
1028 if (m_codeWithoutBOMs.isEmpty())
1029 return SourceCode(m_sourcecxx . . $ QTJSC/Lexer#m_source.->providercxx . . $ QTJSC/SourceCode#provider(387ae131163f03a7).(), openBrace, closeBrace + 1, firstLine);
1030
1031 const UCharcxx . . $ UChar#* data = m_sourcecxx . . $ QTJSC/Lexer#m_source.->providercxx . . $ QTJSC/SourceCode#provider(387ae131163f03a7).()->datacxx . . $ QTJSC/SourceProvider#data(9865edf6270d80f8).();
1032
1033 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(openBrace < closeBrace);
1034
1035 int numBOMsBeforeOpenBrace = 0;
1036 int numBOMsBetweenBraces = 0;
1037
1038 int i;
1039 for (i = m_sourcecxx . . $ QTJSC/Lexer#m_source.->startOffsetcxx . . $ QTJSC/SourceCode#startOffset(455f465bc33b4cdf).(); i < openBrace; ++i)
1040 numBOMsBeforeOpenBrace += data[i] == byteOrderMarkcxx . . $ QTJSC/byteOrderMark.;
1041 for (; i < closeBrace; ++i)
1042 numBOMsBetweenBraces += data[i] == byteOrderMarkcxx . . $ QTJSC/byteOrderMark.;
1043
1044 return SourceCode(m_sourcecxx . . $ QTJSC/Lexer#m_source.->providercxx . . $ QTJSC/SourceCode#provider(387ae131163f03a7).(), openBrace + numBOMsBeforeOpenBrace,
1045 closeBrace + numBOMsBeforeOpenBrace + numBOMsBetweenBraces + 1, firstLine);
1046 }
1047
1048 } // namespace JSC