Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Cameron Zwarich <[email protected]>
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
15 * its contributors may be used to endorse or promote products derived
16 * from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 #ifndef CodeBlock_h
31 #define CodeBlock_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h:31:9`!
32
33 #include "EvalCodeCache.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/EvalCodeCache.h`/
34 #include "Instruction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/Instruction.h`/
35 #include "JITCode.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h`/
36 #include "JSGlobalObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h`/
37 #include "JumpTable.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/JumpTable.h`/
38 #include "Nodes.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Nodes.h`/
39 #include "PtrAndFlags.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/PtrAndFlags.h`/
40 #include "RegExp.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/RegExp.h`/
41 #include "UString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h`/
42 #include <wtf/FastAllocBase.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h`/
43 #include <wtf/RefPtr.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RefPtr.h`/
44 #include <wtf/Vector.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h`/
45
46 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
47 #include "StructureStubInfo.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/StructureStubInfo.h`/
48 #endif
49
50 // Register numbers used in bytecode operations have different meaning accoring to their ranges:
51 // 0x80000000-0xFFFFFFFF Negative indicies from the CallFrame pointer are entries in the call frame, see RegisterFile.h.
52 // 0x00000000-0x3FFFFFFF Forwards indices from the CallFrame pointer are local vars and temporaries with the function's callframe.
53 // 0x40000000-0x7FFFFFFF Positive indices from 0x40000000 specify entries in the constant pool on the CodeBlock.
54 static const int FirstConstantRegisterIndexcxx . . $ FirstConstantRegisterIndex. = 0x40000000;
55
56 namespace JSCcxx . . $ QTJSC/ {
57
58 enum HasSeenShouldRepatchcxx . . $ QTJSC/HasSeenShouldRepatch# {
59 hasSeenShouldRepatchcxx . . $ QTJSC/hasSeenShouldRepatch.
60 };
61
62 class ExecStatecxx . . $ QTJSC/ExecState#;
63
64 enum CodeTypecxx . . $ QTJSC/CodeType# { GlobalCodecxx . . $ QTJSC/GlobalCode., EvalCodecxx . . $ QTJSC/EvalCode., FunctionCodecxx . . $ QTJSC/FunctionCode. };
65
66 static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! int missingThisObjectMarkercxx . . $ QTJSC/missingThisObjectMarker(b126dc7c1de90089).() { return stdcxx . . $ std/::numeric_limitscxx . . $ std/numeric_limits#<int>::maxcxx . . $ std/numeric_limits#max(b126dc7c1de90089).(); }
67
68 struct HandlerInfocxx . . $ QTJSC/HandlerInfo# {
69 uint32_tcxx . . $ uint32_t# startcxx . . $ QTJSC/HandlerInfo#start.;
70 uint32_tcxx . . $ uint32_t# endcxx . . $ QTJSC/HandlerInfo#end.;
71 uint32_tcxx . . $ uint32_t# targetcxx . . $ QTJSC/HandlerInfo#target.;
72 uint32_tcxx . . $ uint32_t# scopeDepthcxx . . $ QTJSC/HandlerInfo#scopeDepth.;
73 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
74 CodeLocationLabelcxx . . $ QTJSC/CodeLocationLabel# nativeCodecxx . . $ QTJSC/HandlerInfo#nativeCode.;
75 #endif
76 };
77
78 struct ExpressionRangeInfocxx . . $ QTJSC/ExpressionRangeInfo# {
79 enumcxx . . $ QTJSC/ExpressionRangeInfo#$anonymous_type_0# {
80 MaxOffsetcxx . . $ QTJSC/ExpressionRangeInfo#MaxOffset. = (1 << 7) - 1,
81 MaxDivotcxx . . $ QTJSC/ExpressionRangeInfo#MaxDivot. = (1 << 25) - 1
82 };
83 uint32_tcxx . . $ uint32_t# instructionOffsetcxx . . $ QTJSC/ExpressionRangeInfo#instructionOffset. : 25;
84 uint32_tcxx . . $ uint32_t# divotPointcxx . . $ QTJSC/ExpressionRangeInfo#divotPoint. : 25;
85 uint32_tcxx . . $ uint32_t# startOffsetcxx . . $ QTJSC/ExpressionRangeInfo#startOffset. : 7;
86 uint32_tcxx . . $ uint32_t# endOffsetcxx . . $ QTJSC/ExpressionRangeInfo#endOffset. : 7;
87 };
88
89 struct LineInfocxx . . $ QTJSC/LineInfo# {
90 uint32_tcxx . . $ uint32_t# instructionOffsetcxx . . $ QTJSC/LineInfo#instructionOffset.;
91 int32_tcxx . . $ int32_t# lineNumbercxx . . $ QTJSC/LineInfo#lineNumber.;
92 };
93
94 // Both op_construct and op_instanceof require a use of op_get_by_id to get
95 // the prototype property from an object. The exception messages for exceptions
96 // thrown by these instances op_get_by_id need to reflect this.
97 struct GetByIdExceptionInfocxx . . $ QTJSC/GetByIdExceptionInfo# {
98 unsigned bytecodeOffsetcxx . . $ QTJSC/GetByIdExceptionInfo#bytecodeOffset. : 31;
99 bool isOpConstructcxx . . $ QTJSC/GetByIdExceptionInfo#isOpConstruct. : 1;
100 };
101
102 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
103 struct CallLinkInfocxx . . $ QTJSC/CallLinkInfo# {
104 CallLinkInfocxx . . $ QTJSC/CallLinkInfo#CallLinkInfo(49f6e7a06ebc5aa8).()
105 : calleecxx . . $ QTJSC/CallLinkInfo#callee.(0)
106 {
107 }
108
109 unsigned bytecodeIndexcxx . . $ QTJSC/CallLinkInfo#bytecodeIndex.;
110 CodeLocationNearCallcxx . . $ QTJSC/CodeLocationNearCall# callReturnLocationcxx . . $ QTJSC/CallLinkInfo#callReturnLocation.;
111 CodeLocationDataLabelPtrcxx . . $ QTJSC/CodeLocationDataLabelPtr# hotPathBegincxx . . $ QTJSC/CallLinkInfo#hotPathBegin.;
112 CodeLocationNearCallcxx . . $ QTJSC/CodeLocationNearCall# hotPathOthercxx . . $ QTJSC/CallLinkInfo#hotPathOther.;
113 PtrAndFlagscxx . . $ PtrAndFlags#<CodeBlockcxx . . $ QTJSC/CodeBlock#, HasSeenShouldRepatchcxx . . $ QTJSC/HasSeenShouldRepatch#> ownerCodeBlockcxx . . $ QTJSC/CallLinkInfo#ownerCodeBlock.;
114 CodeBlockcxx . . $ QTJSC/CodeBlock#* calleecxx . . $ QTJSC/CallLinkInfo#callee.;
115 unsigned positioncxx . . $ QTJSC/CallLinkInfo#position.;
116
117 void setUnlinkedcxx . . $ QTJSC/CallLinkInfo#setUnlinked(49f6e7a06ebc5aa8).() { calleecxx . . $ QTJSC/CallLinkInfo#callee. = 0; }
118 bool isLinkedcxx . . $ QTJSC/CallLinkInfo#isLinked(c9857a73d68e59ba).() { return calleecxx . . $ QTJSC/CallLinkInfo#callee.; }
119
120 bool seenOncecxx . . $ QTJSC/CallLinkInfo#seenOnce(c9857a73d68e59ba).()
121 {
122 return ownerCodeBlock.isFlagSet(hasSeenShouldRepatch);
123 }
124
125 void setSeencxx . . $ QTJSC/CallLinkInfo#setSeen(49f6e7a06ebc5aa8).()
126 {
127 ownerCodeBlock.setFlag(hasSeenShouldRepatch);
128 }
129 };
130
131 struct MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo# {
132 MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo#MethodCallLinkInfo(49f6e7a06ebc5aa8).()
133 : cachedStructurecxx . . $ QTJSC/MethodCallLinkInfo#cachedStructure.(0)
134 {
135 }
136
137 bool seenOncecxx . . $ QTJSC/MethodCallLinkInfo#seenOnce(c9857a73d68e59ba).()
138 {
139 return cachedPrototypeStructure.isFlagSet(hasSeenShouldRepatch);
140 }
141
142 void setSeencxx . . $ QTJSC/MethodCallLinkInfo#setSeen(49f6e7a06ebc5aa8).()
143 {
144 cachedPrototypeStructure.setFlag(hasSeenShouldRepatch);
145 }
146
147 CodeLocationCallcxx . . $ QTJSC/CodeLocationCall# callReturnLocationcxx . . $ QTJSC/MethodCallLinkInfo#callReturnLocation.;
148 CodeLocationDataLabelPtrcxx . . $ QTJSC/CodeLocationDataLabelPtr# structureLabelcxx . . $ QTJSC/MethodCallLinkInfo#structureLabel.;
149 Structurecxx . . $ QTJSC/Structure#* cachedStructurecxx . . $ QTJSC/MethodCallLinkInfo#cachedStructure.;
150 PtrAndFlagscxx . . $ PtrAndFlags#<Structurecxx . . $ QTJSC/Structure#, HasSeenShouldRepatchcxx . . $ QTJSC/HasSeenShouldRepatch#> cachedPrototypeStructurecxx . . $ QTJSC/MethodCallLinkInfo#cachedPrototypeStructure.;
151 };
152
153 struct FunctionRegisterInfocxx . . $ QTJSC/FunctionRegisterInfo# {
154 FunctionRegisterInfocxx . . $ QTJSC/FunctionRegisterInfo#FunctionRegisterInfo(3d89109e85ced1be).(unsigned bytecodeOffset, int functionRegisterIndex)
155 : bytecodeOffsetcxx . . $ QTJSC/FunctionRegisterInfo#bytecodeOffset.(bytecodeOffset)
156 , functionRegisterIndexcxx . . $ QTJSC/FunctionRegisterInfo#functionRegisterIndex.(functionRegisterIndex)
157 {
158 }
159
160 unsigned bytecodeOffsetcxx . . $ QTJSC/FunctionRegisterInfo#bytecodeOffset.;
161 int functionRegisterIndexcxx . . $ QTJSC/FunctionRegisterInfo#functionRegisterIndex.;
162 };
163
164 struct GlobalResolveInfocxx . . $ QTJSC/GlobalResolveInfo# {
165 GlobalResolveInfocxx . . $ QTJSC/GlobalResolveInfo#GlobalResolveInfo(cb2f890c2fdad230).(unsigned bytecodeOffset)
166 : structurecxx . . $ QTJSC/GlobalResolveInfo#structure.(0)
167 , offsetcxx . . $ QTJSC/GlobalResolveInfo#offset.(0)
168 , bytecodeOffsetcxx . . $ QTJSC/GlobalResolveInfo#bytecodeOffset.(bytecodeOffset)
169 {
170 }
171
172 Structurecxx . . $ QTJSC/Structure#* structurecxx . . $ QTJSC/GlobalResolveInfo#structure.;
173 unsigned offsetcxx . . $ QTJSC/GlobalResolveInfo#offset.;
174 unsigned bytecodeOffsetcxx . . $ QTJSC/GlobalResolveInfo#bytecodeOffset.;
175 };
176
177 // This structure is used to map from a call return location
178 // (given as an offset in bytes into the JIT code) back to
179 // the bytecode index of the corresponding bytecode operation.
180 // This is then used to look up the corresponding handler.
181 struct CallReturnOffsetToBytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex# {
182 CallReturnOffsetToBytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#CallReturnOffsetToBytecodeIndex(b4d55b1286ff73e8).(unsigned callReturnOffset, unsigned bytecodeIndex)
183 : callReturnOffsetcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#callReturnOffset.(callReturnOffset)
184 , bytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#bytecodeIndex.(bytecodeIndex)
185 {
186 }
187
188 unsigned callReturnOffsetcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#callReturnOffset.;
189 unsigned bytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#bytecodeIndex.;
190 };
191
192 // valueAtPosition helpers for the binaryChop algorithm below.
193
194 inline void* getStructureStubInfoReturnLocationcxx . . $ QTJSC/getStructureStubInfoReturnLocation(95d62bf8dc0f2bf).(StructureStubInfocxx . . $ QTJSC/StructureStubInfo#* structureStubInfo)
195 {
196 return structureStubInfo->callReturnLocationcxx . . $ QTJSC/StructureStubInfo#callReturnLocation..executableAddresscxx . . $ QTJSC/MacroAssemblerCodePtr#executableAddress(45a5c5ac6be858a8).();
197 }
198
199 inline void* getCallLinkInfoReturnLocationcxx . . $ QTJSC/getCallLinkInfoReturnLocation(1981d7eb1f36cb3b).(CallLinkInfocxx . . $ QTJSC/CallLinkInfo#* callLinkInfo)
200 {
201 return callLinkInfo->callReturnLocationcxx . . $ QTJSC/CallLinkInfo#callReturnLocation..executableAddresscxx . . $ QTJSC/MacroAssemblerCodePtr#executableAddress(45a5c5ac6be858a8).();
202 }
203
204 inline void* getMethodCallLinkInfoReturnLocationcxx . . $ QTJSC/getMethodCallLinkInfoReturnLocation(138d6e3e3bc976e1).(MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo#* methodCallLinkInfo)
205 {
206 return methodCallLinkInfo->callReturnLocationcxx . . $ QTJSC/MethodCallLinkInfo#callReturnLocation..executableAddresscxx . . $ QTJSC/MacroAssemblerCodePtr#executableAddress(45a5c5ac6be858a8).();
207 }
208
209 inline unsigned getCallReturnOffsetcxx . . $ QTJSC/getCallReturnOffset(761fe0354705128d).(CallReturnOffsetToBytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#* pc)
210 {
211 return pc->callReturnOffsetcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#callReturnOffset.;
212 }
213
214 // Binary chop algorithm, calls valueAtPosition on pre-sorted elements in array,
215 // compares result with key (KeyTypes should be comparable with '--', '<', '>').
216 // Optimized for cases where the array contains the key, checked by assertions.
217 template<typename ArrayType, typename KeyType, KeyType(*valueAtPosition)(ArrayType*)>
218 inline ArrayType* binaryChopcxx . . $ QTJSC/binaryChop(3b4ba994a1b86f4c).(ArrayType* array, size_tcxx . . $ size_t# size, KeyType key)
219 {
220 // The array must contain at least one element (pre-condition, array does conatin key).
221 // If the array only contains one element, no need to do the comparison.
222 while (size > 1) {
223 // Pick an element to check, half way through the array, and read the value.
224 int pos = (size - 1) >> 1;
225 KeyType val = valueAtPosition(&array[pos]);
226
227 // If the key matches, success!
228 if (val ==cxx . . $ QTJSC/`operator==`(bc6534faf07112b1). key)
229 return &array[pos];
230 // The item we are looking for is smaller than the item being check; reduce the value of 'size',
231 // chopping off the right hand half of the array.
232 else if (key <cxx . . $ QTJSC/`operator<`(11610d830df66bbf). val)
233 size = pos;
234 // Discard all values in the left hand half of the array, up to and including the item at pos.
235 else {
236 size -= (pos + 1);
237 array +=cxx . . $ `operator+=`(393fa817bb5da60e). (pos + 1);
238 }
239
240 // 'size' should never reach zero.
241 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(size);
242 }
243
244 // If we reach this point we've chopped down to one element, no need to check it matches
245 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(size == 1);
246 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(key == valueAtPosition(&array[0]));
247 return &array[0];
248 }
249 #endif
250
251 struct ExceptionInfocxx . . $ QTJSC/ExceptionInfo# : FastAllocBasecxx . . $ FastAllocBase# {
252 Vector<ExpressionRangeInfo> m_expressionInfocxx . . $ QTJSC/ExceptionInfo#m_expressionInfo.;
253 Vector<LineInfo> m_lineInfocxx . . $ QTJSC/ExceptionInfo#m_lineInfo.;
254 Vector<GetByIdExceptionInfo> m_getByIdExceptionInfocxx . . $ QTJSC/ExceptionInfo#m_getByIdExceptionInfo.;
255
256 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
257 Vector<CallReturnOffsetToBytecodeIndex> m_callReturnIndexVectorcxx . . $ QTJSC/ExceptionInfo#m_callReturnIndexVector.;
258 #endif
259 };
260
261 class CodeBlockcxx . . $ QTJSC/CodeBlock# : public FastAllocBasecxx . . $ FastAllocBase# {
262 friend class JITcxx . . $ QTJSC/JIT#;
263 protected:
264 CodeBlockcxx . . $ QTJSC/CodeBlock#CodeBlock(aaa026cf8ade8bd0).(ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#* ownerExecutable, CodeTypecxx . . $ QTJSC/CodeType#, PassRefPtrcxx . . $ PassRefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#>, unsigned sourceOffset, SymbolTablecxx . . $ QTJSC/SymbolTable#* symbolTable);
265 public:
266 virtual ~cxx . . $ QTJSC/CodeBlock#`~CodeBlock`(49f6e7a06ebc5aa8).CodeBlockcxx . . $ QTJSC/CodeBlock#();
267
268 void markAggregatecxx . . $ QTJSC/CodeBlock#markAggregate(bd9cae851d80a865).(MarkStackcxx . . $ QTJSC/MarkStack#&);
269 void refStructurescxx . . $ QTJSC/CodeBlock#refStructures(7b80bb93a80353a0).(Instructioncxx . . $ QTJSC/Instruction#* vPC) const;
270 void derefStructurescxx . . $ QTJSC/CodeBlock#derefStructures(7b80bb93a80353a0).(Instructioncxx . . $ QTJSC/Instruction#* vPC) const;
271 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT_OPTIMIZE_CALL)
272 void unlinkCallerscxx . . $ QTJSC/CodeBlock#unlinkCallers(49f6e7a06ebc5aa8).();
273 #endif
274
275 static void dumpStatisticscxx . . $ QTJSC/CodeBlock#dumpStatistics(49f6e7a06ebc5aa8).();
276
277 #if !defined(NDEBUGcxx . . $ `<built-in>:472:9`!) || ENABLE_OPCODE_SAMPLINGcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:952:9`!
278 void dump(ExecState*) const;
279 void printStructures(const Instruction*) const;
280 void printStructure(const char* name, const Instruction*, int operand) const;
281 #endif
282
283 inline bool isKnownNotImmediatecxx . . $ QTJSC/CodeBlock#isKnownNotImmediate(83c267b20bac841a).(int index)
284 {
285 if (index == m_thisRegistercxx . . $ QTJSC/CodeBlock#m_thisRegister.)
286 return true;
287
288 if (isConstantRegisterIndexcxx . . $ QTJSC/CodeBlock#isConstantRegisterIndex(4a668f6de69bf818).(index))
289 return getConstantcxx . . $ QTJSC/CodeBlock#getConstant(5e7d83ea16c32ce7).(index).isCellcxx . . $ QTJSC/JSValue#isCell(50ce9a9e25b4a850).();
290
291 return false;
292 }
293
294 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isTemporaryRegisterIndexcxx . . $ QTJSC/CodeBlock#isTemporaryRegisterIndex(83c267b20bac841a).(int index)
295 {
296 return index >= m_numVarscxx . . $ QTJSC/CodeBlock#m_numVars.;
297 }
298
299 HandlerInfocxx . . $ QTJSC/HandlerInfo#* handlerForBytecodeOffsetcxx . . $ QTJSC/CodeBlock#handlerForBytecodeOffset(1443e7533dc458dd).(unsigned bytecodeOffset);
300 int lineNumberForBytecodeOffsetcxx . . $ QTJSC/CodeBlock#lineNumberForBytecodeOffset(c902a1333cc32b28).(CallFramecxx . . $ QTJSC/CallFrame#*, unsigned bytecodeOffset);
301 int expressionRangeForBytecodeOffsetcxx . . $ QTJSC/CodeBlock#expressionRangeForBytecodeOffset(285ee9e975c1f166).(CallFramecxx . . $ QTJSC/CallFrame#*, unsigned bytecodeOffset, int& divot, int& startOffset, int& endOffset);
302 bool getByIdExceptionInfoForBytecodeOffsetcxx . . $ QTJSC/CodeBlock#getByIdExceptionInfoForBytecodeOffset(13c3b0a2dd87a831).(CallFramecxx . . $ QTJSC/CallFrame#*, unsigned bytecodeOffset, OpcodeIDcxx . . $ QTJSC/OpcodeID#&);
303
304 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
305 void addCallercxx . . $ QTJSC/CodeBlock#addCaller(7f619b42aeb1e65d).(CallLinkInfocxx . . $ QTJSC/CallLinkInfo#* caller)
306 {
307 caller->calleecxx . . $ QTJSC/CallLinkInfo#callee. = this;
308 caller->position = m_linkedCallerList.size();
309 m_linkedCallerList.append(caller);
310 }
311
312 void removeCallercxx . . $ QTJSC/CodeBlock#removeCaller(7f619b42aeb1e65d).(CallLinkInfocxx . . $ QTJSC/CallLinkInfo#* caller)
313 {
314 unsigned pos = caller->positioncxx . . $ QTJSC/CallLinkInfo#position.;
315 unsigned lastPos = m_linkedCallerList.size() - 1;
316
317 if (pos != lastPos) {
318 m_linkedCallerList[pos] = m_linkedCallerList[lastPos];
319 m_linkedCallerList[pos]->position = pos;
320 }
321 m_linkedCallerList.shrink(lastPos);
322 }
323
324 StructureStubInfocxx . . $ QTJSC/StructureStubInfo#& getStubInfocxx . . $ QTJSC/CodeBlock#getStubInfo(bf27e98eaeb35054).(ReturnAddressPtrcxx . . $ QTJSC/ReturnAddressPtr# returnAddress)
325 {
326 return *(binaryChopcxx . . $ QTJSC/binaryChop(3b4ba994a1b86f4c).<StructureStubInfocxx . . $ QTJSC/StructureStubInfo#, void*, getStructureStubInfoReturnLocationcxx . . $ QTJSC/getStructureStubInfoReturnLocation(95d62bf8dc0f2bf).>(m_structureStubInfos.begin(), m_structureStubInfos.size(), returnAddress.valuecxx . . $ QTJSC/ReturnAddressPtr#value(45a5c5ac6be858a8).()));
327 }
328
329 CallLinkInfocxx . . $ QTJSC/CallLinkInfo#& getCallLinkInfocxx . . $ QTJSC/CodeBlock#getCallLinkInfo(38de16d8dbc0a6a2).(ReturnAddressPtrcxx . . $ QTJSC/ReturnAddressPtr# returnAddress)
330 {
331 return *(binaryChopcxx . . $ QTJSC/binaryChop(3b4ba994a1b86f4c).<CallLinkInfocxx . . $ QTJSC/CallLinkInfo#, void*, getCallLinkInfoReturnLocationcxx . . $ QTJSC/getCallLinkInfoReturnLocation(1981d7eb1f36cb3b).>(m_callLinkInfos.begin(), m_callLinkInfos.size(), returnAddress.valuecxx . . $ QTJSC/ReturnAddressPtr#value(45a5c5ac6be858a8).()));
332 }
333
334 MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo#& getMethodCallLinkInfocxx . . $ QTJSC/CodeBlock#getMethodCallLinkInfo(2e0b9758f24db0d2).(ReturnAddressPtrcxx . . $ QTJSC/ReturnAddressPtr# returnAddress)
335 {
336 return *(binaryChopcxx . . $ QTJSC/binaryChop(3b4ba994a1b86f4c).<MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo#, void*, getMethodCallLinkInfoReturnLocationcxx . . $ QTJSC/getMethodCallLinkInfoReturnLocation(138d6e3e3bc976e1).>(m_methodCallLinkInfos.begin(), m_methodCallLinkInfos.size(), returnAddress.valuecxx . . $ QTJSC/ReturnAddressPtr#value(45a5c5ac6be858a8).()));
337 }
338
339 unsigned getBytecodeIndexcxx . . $ QTJSC/CodeBlock#getBytecodeIndex(7207fba28b1ed540).(CallFramecxx . . $ QTJSC/CallFrame#* callFrame, ReturnAddressPtrcxx . . $ QTJSC/ReturnAddressPtr# returnAddress)
340 {
341 reparseForExceptionInfoIfNecessarycxx . . $ QTJSC/CodeBlock#reparseForExceptionInfoIfNecessary(d2cb180e190a9680).(callFrame);
342 return binaryChopcxx . . $ QTJSC/binaryChop(3b4ba994a1b86f4c).<CallReturnOffsetToBytecodeIndexcxx . . $ QTJSC/CallReturnOffsetToBytecodeIndex#, unsigned, getCallReturnOffsetcxx . . $ QTJSC/getCallReturnOffset(761fe0354705128d).>(callReturnIndexVector().begin(), callReturnIndexVector().size(), ownerExecutablecxx . . $ QTJSC/CodeBlock#ownerExecutable(536727ad2b3735a6).()->generatedJITCodecxx . . $ QTJSC/ExecutableBase#generatedJITCode(6fad7ba5423f99e7).().offsetOf(returnAddress.valuecxx . . $ QTJSC/ReturnAddressPtr#value(45a5c5ac6be858a8).()))->bytecodeIndex;
343 }
344
345 bool functionRegisterForBytecodeOffsetcxx . . $ QTJSC/CodeBlock#functionRegisterForBytecodeOffset(4a22c59effadac6e).(unsigned bytecodeOffset, int& functionRegisterIndex);
346 #endif
347
348 void setIsNumericCompareFunctioncxx . . $ QTJSC/CodeBlock#setIsNumericCompareFunction(b45ddcbc8423892c).(bool isNumericCompareFunction) { m_isNumericCompareFunctioncxx . . $ QTJSC/CodeBlock#m_isNumericCompareFunction. = isNumericCompareFunction; }
349 bool isNumericCompareFunctioncxx . . $ QTJSC/CodeBlock#isNumericCompareFunction(c9857a73d68e59ba).() { return m_isNumericCompareFunctioncxx . . $ QTJSC/CodeBlock#m_isNumericCompareFunction.; }
350
351 Vector<Instruction>& instructionscxx . . $ QTJSC/CodeBlock#instructions(ffa05e89dbf2c50f).() { return m_instructions; }
352 void discardBytecodecxx . . $ QTJSC/CodeBlock#discardBytecode(49f6e7a06ebc5aa8).() { m_instructions.clear(); }
353
354 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
355 unsigned instructionCount() { return m_instructionCount; }
356 void setInstructionCount(unsigned instructionCount) { m_instructionCount = instructionCount; }
357 #endif
358
359 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
360 JITCodecxx . . $ QTJSC/JITCode#& getJITCodecxx . . $ QTJSC/CodeBlock#getJITCode(6fad7ba5423f99e7).() { return ownerExecutablecxx . . $ QTJSC/CodeBlock#ownerExecutable(536727ad2b3735a6).()->generatedJITCodecxx . . $ QTJSC/ExecutableBase#generatedJITCode(6fad7ba5423f99e7).(); }
361 ExecutablePoolcxx . . $ QTJSC/ExecutablePool#* executablePoolcxx . . $ QTJSC/CodeBlock#executablePool(c0dd9d257c7f95bf).() { return ownerExecutablecxx . . $ QTJSC/CodeBlock#ownerExecutable(536727ad2b3735a6).()->getExecutablePoolcxx . . $ QTJSC/ExecutableBase#getExecutablePool(c0dd9d257c7f95bf).(); }
362 #endif
363
364 ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#* ownerExecutablecxx . . $ QTJSC/CodeBlock#ownerExecutable(536727ad2b3735a6).() const { return m_ownerExecutablecxx . . $ QTJSC/CodeBlock#m_ownerExecutable.; }
365
366 void setGlobalDatacxx . . $ QTJSC/CodeBlock#setGlobalData(71c44650a83bfd83).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData) { m_globalDatacxx . . $ QTJSC/CodeBlock#m_globalData. = globalData; }
367
368 void setThisRegistercxx . . $ QTJSC/CodeBlock#setThisRegister(d4f767463ce0a6b3).(int thisRegister) { m_thisRegistercxx . . $ QTJSC/CodeBlock#m_thisRegister. = thisRegister; }
369 int thisRegistercxx . . $ QTJSC/CodeBlock#thisRegister(455f465bc33b4cdf).() const { return m_thisRegistercxx . . $ QTJSC/CodeBlock#m_thisRegister.; }
370
371 void setNeedsFullScopeChaincxx . . $ QTJSC/CodeBlock#setNeedsFullScopeChain(b45ddcbc8423892c).(bool needsFullScopeChain) { m_needsFullScopeChaincxx . . $ QTJSC/CodeBlock#m_needsFullScopeChain. = needsFullScopeChain; }
372 bool needsFullScopeChaincxx . . $ QTJSC/CodeBlock#needsFullScopeChain(50ce9a9e25b4a850).() const { return m_needsFullScopeChaincxx . . $ QTJSC/CodeBlock#m_needsFullScopeChain.; }
373 void setUsesEvalcxx . . $ QTJSC/CodeBlock#setUsesEval(b45ddcbc8423892c).(bool usesEval) { m_usesEvalcxx . . $ QTJSC/CodeBlock#m_usesEval. = usesEval; }
374 bool usesEvalcxx . . $ QTJSC/CodeBlock#usesEval(50ce9a9e25b4a850).() const { return m_usesEvalcxx . . $ QTJSC/CodeBlock#m_usesEval.; }
375 void setUsesArgumentscxx . . $ QTJSC/CodeBlock#setUsesArguments(b45ddcbc8423892c).(bool usesArguments) { m_usesArgumentscxx . . $ QTJSC/CodeBlock#m_usesArguments. = usesArguments; }
376 bool usesArgumentscxx . . $ QTJSC/CodeBlock#usesArguments(50ce9a9e25b4a850).() const { return m_usesArgumentscxx . . $ QTJSC/CodeBlock#m_usesArguments.; }
377
378 CodeTypecxx . . $ QTJSC/CodeType# codeTypecxx . . $ QTJSC/CodeBlock#codeType(d2f6fb92a9344f2e).() const { return m_codeTypecxx . . $ QTJSC/CodeBlock#m_codeType.; }
379
380 SourceProvidercxx . . $ QTJSC/SourceProvider#* sourcecxx . . $ QTJSC/CodeBlock#source(387ae131163f03a7).() const { return m_source.get(); }
381 unsigned sourceOffsetcxx . . $ QTJSC/CodeBlock#sourceOffset(ddd8539a2fcdd4ce).() const { return m_sourceOffsetcxx . . $ QTJSC/CodeBlock#m_sourceOffset.; }
382
383 size_tcxx . . $ size_t# numberOfJumpTargetscxx . . $ QTJSC/CodeBlock#numberOfJumpTargets(fe4d2d262d4164a8).() const { return m_jumpTargets.size(); }
384 void addJumpTargetcxx . . $ QTJSC/CodeBlock#addJumpTarget(cb2f890c2fdad230).(unsigned jumpTarget) { m_jumpTargets.append(jumpTarget); }
385 unsigned jumpTargetcxx . . $ QTJSC/CodeBlock#jumpTarget(2de5caacea52532e).(int index) const { return m_jumpTargets[index]; }
386 unsigned lastJumpTargetcxx . . $ QTJSC/CodeBlock#lastJumpTarget(ddd8539a2fcdd4ce).() const { return m_jumpTargets.last(); }
387
388 #if !ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
389 void addPropertyAccessInstruction(unsigned propertyAccessInstruction) { m_propertyAccessInstructions.append(propertyAccessInstruction); }
390 void addGlobalResolveInstruction(unsigned globalResolveInstruction) { m_globalResolveInstructions.append(globalResolveInstruction); }
391 bool hasGlobalResolveInstructionAtBytecodeOffset(unsigned bytecodeOffset);
392 #else
393 size_tcxx . . $ size_t# numberOfStructureStubInfoscxx . . $ QTJSC/CodeBlock#numberOfStructureStubInfos(fe4d2d262d4164a8).() const { return m_structureStubInfos.size(); }
394 void addStructureStubInfocxx . . $ QTJSC/CodeBlock#addStructureStubInfo(bbd5a1a3a9d30d19).(const StructureStubInfocxx . . $ QTJSC/StructureStubInfo#& stubInfo) { m_structureStubInfos.append(stubInfo); }
395 StructureStubInfocxx . . $ QTJSC/StructureStubInfo#& structureStubInfocxx . . $ QTJSC/CodeBlock#structureStubInfo(51c3c3fac750758e).(int index) { return m_structureStubInfos[index]; }
396
397 void addGlobalResolveInfocxx . . $ QTJSC/CodeBlock#addGlobalResolveInfo(cb2f890c2fdad230).(unsigned globalResolveInstruction) { m_globalResolveInfos.append(GlobalResolveInfo(globalResolveInstruction)); }
398 GlobalResolveInfocxx . . $ QTJSC/GlobalResolveInfo#& globalResolveInfocxx . . $ QTJSC/CodeBlock#globalResolveInfo(9a4c2fd4128bff44).(int index) { return m_globalResolveInfos[index]; }
399 bool hasGlobalResolveInfoAtBytecodeOffsetcxx . . $ QTJSC/CodeBlock#hasGlobalResolveInfoAtBytecodeOffset(dfa6e707f7696010).(unsigned bytecodeOffset);
400
401 size_tcxx . . $ size_t# numberOfCallLinkInfoscxx . . $ QTJSC/CodeBlock#numberOfCallLinkInfos(fe4d2d262d4164a8).() const { return m_callLinkInfos.size(); }
402 void addCallLinkInfocxx . . $ QTJSC/CodeBlock#addCallLinkInfo(49f6e7a06ebc5aa8).() { m_callLinkInfos.append(CallLinkInfo()); }
403 CallLinkInfocxx . . $ QTJSC/CallLinkInfo#& callLinkInfocxx . . $ QTJSC/CodeBlock#callLinkInfo(552f9b7b7c8f13e8).(int index) { return m_callLinkInfos[index]; }
404
405 void addMethodCallLinkInfoscxx . . $ QTJSC/CodeBlock#addMethodCallLinkInfos(cb2f890c2fdad230).(unsigned n) { m_methodCallLinkInfos.grow(n); }
406 MethodCallLinkInfocxx . . $ QTJSC/MethodCallLinkInfo#& methodCallLinkInfocxx . . $ QTJSC/CodeBlock#methodCallLinkInfo(140c643affe45ae2).(int index) { return m_methodCallLinkInfos[index]; }
407
408 void addFunctionRegisterInfocxx . . $ QTJSC/CodeBlock#addFunctionRegisterInfo(3d89109e85ced1be).(unsigned bytecodeOffset, int functionIndex) { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); m_rareData->m_functionRegisterInfos.append(FunctionRegisterInfo(bytecodeOffset, functionIndex)); }
409 #endif
410
411 // Exception handling support
412
413 size_tcxx . . $ size_t# numberOfExceptionHandlerscxx . . $ QTJSC/CodeBlock#numberOfExceptionHandlers(fe4d2d262d4164a8).() const { return m_rareData ? m_rareData->m_exceptionHandlers.size() : 0; }
414 void addExceptionHandlercxx . . $ QTJSC/CodeBlock#addExceptionHandler(340eac4372f8ec56).(const HandlerInfocxx . . $ QTJSC/HandlerInfo#& hanler) { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); return m_rareData->m_exceptionHandlers.append(hanler); }
415 HandlerInfocxx . . $ QTJSC/HandlerInfo#& exceptionHandlercxx . . $ QTJSC/CodeBlock#exceptionHandler(7d21860288568ee2).(int index) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_rareData); return m_rareData->m_exceptionHandlers[index]; }
416
417 bool hasExceptionInfocxx . . $ QTJSC/CodeBlock#hasExceptionInfo(50ce9a9e25b4a850).() const { return m_exceptionInfo; }
418 void clearExceptionInfocxx . . $ QTJSC/CodeBlock#clearExceptionInfo(49f6e7a06ebc5aa8).() { m_exceptionInfo.clear(); }
419 ExceptionInfocxx . . $ QTJSC/ExceptionInfo#* extractExceptionInfocxx . . $ QTJSC/CodeBlock#extractExceptionInfo(52871446bc861cba).() { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); return m_exceptionInfo.release(); }
420
421 void addExpressionInfocxx . . $ QTJSC/CodeBlock#addExpressionInfo(25d2df7f76081bf2).(const ExpressionRangeInfocxx . . $ QTJSC/ExpressionRangeInfo#& expressionInfo) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); m_exceptionInfo->m_expressionInfo.append(expressionInfo); }
422 void addGetByIdExceptionInfocxx . . $ QTJSC/CodeBlock#addGetByIdExceptionInfo(6d49dbe8406d1f).(const GetByIdExceptionInfocxx . . $ QTJSC/GetByIdExceptionInfo#& info) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); m_exceptionInfo->m_getByIdExceptionInfo.append(info); }
423
424 size_tcxx . . $ size_t# numberOfLineInfoscxx . . $ QTJSC/CodeBlock#numberOfLineInfos(fe4d2d262d4164a8).() const { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); return m_exceptionInfo->m_lineInfo.size(); }
425 void addLineInfocxx . . $ QTJSC/CodeBlock#addLineInfo(ddf08f248d1b10cf).(const LineInfocxx . . $ QTJSC/LineInfo#& lineInfo) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); m_exceptionInfo->m_lineInfo.append(lineInfo); }
426 LineInfocxx . . $ QTJSC/LineInfo#& lastLineInfocxx . . $ QTJSC/CodeBlock#lastLineInfo(b4767345a0eac6a8).() { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); return m_exceptionInfo->m_lineInfo.last(); }
427
428 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
429 Vector<CallReturnOffsetToBytecodeIndex>& callReturnIndexVectorcxx . . $ QTJSC/CodeBlock#callReturnIndexVector(ffa05e89dbf2c50f).() { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_exceptionInfo); return m_exceptionInfo->m_callReturnIndexVector; }
430 #endif
431
432 // Constant Pool
433
434 size_tcxx . . $ size_t# numberOfIdentifierscxx . . $ QTJSC/CodeBlock#numberOfIdentifiers(fe4d2d262d4164a8).() const { return m_identifiers.size(); }
435 void addIdentifiercxx . . $ QTJSC/CodeBlock#addIdentifier(d7ed36c5537ed570).(const Identifiercxx . . $ QTJSC/Identifier#& i) { return m_identifiers.append(i); }
436 Identifiercxx . . $ QTJSC/Identifier#& identifiercxx . . $ QTJSC/CodeBlock#identifier(dd1f31ac67538611).(int index) { return m_identifiers[index]; }
437
438 size_tcxx . . $ size_t# numberOfConstantRegisterscxx . . $ QTJSC/CodeBlock#numberOfConstantRegisters(fe4d2d262d4164a8).() const { return m_constantRegisters.size(); }
439 void addConstantRegistercxx . . $ QTJSC/CodeBlock#addConstantRegister(79b3cd60467709a7).(const Registercxx . . $ QTJSC/Register#& r) { return m_constantRegisters.append(r); }
440 Registercxx . . $ QTJSC/Register#& constantRegistercxx . . $ QTJSC/CodeBlock#constantRegister(a4e11caf1b71f23c).(int index) { return m_constantRegisters[index - FirstConstantRegisterIndex]; }
441 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isConstantRegisterIndexcxx . . $ QTJSC/CodeBlock#isConstantRegisterIndex(4a668f6de69bf818).(int index) const { return index >= FirstConstantRegisterIndexcxx . . $ FirstConstantRegisterIndex.; }
442 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# getConstantcxx . . $ QTJSC/CodeBlock#getConstant(5e7d83ea16c32ce7).(int index) const { return m_constantRegisters[index - FirstConstantRegisterIndex].jsValue(); }
443
444 unsigned addFunctionDeclcxx . . $ QTJSC/CodeBlock#addFunctionDecl(bcc9abccc0c92c7c).(NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> n) { unsigned size = m_functionDecls.size(); m_functionDecls.append(n); return size; }
445 FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#* functionDeclcxx . . $ QTJSC/CodeBlock#functionDecl(a57ecca163d6c59).(int index) { return m_functionDecls[index].get(); }
446 int numberOfFunctionDeclscxx . . $ QTJSC/CodeBlock#numberOfFunctionDecls(b126dc7c1de90089).() { return m_functionDecls.size(); }
447 unsigned addFunctionExprcxx . . $ QTJSC/CodeBlock#addFunctionExpr(bcc9abccc0c92c7c).(NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> n) { unsigned size = m_functionExprs.size(); m_functionExprs.append(n); return size; }
448 FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#* functionExprcxx . . $ QTJSC/CodeBlock#functionExpr(a57ecca163d6c59).(int index) { return m_functionExprs[index].get(); }
449
450 unsigned addRegExpcxx . . $ QTJSC/CodeBlock#addRegExp(b4c188f77cba24e7).(RegExpcxx . . $ QTJSC/RegExp#* r) { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); unsigned size = m_rareData->m_regexps.size(); m_rareData->m_regexps.append(r); return size; }
451 RegExpcxx . . $ QTJSC/RegExp#* regexpcxx . . $ QTJSC/CodeBlock#regexp(5fc3fe6b69f911ac).(int index) const { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_rareData); return m_rareData->m_regexps[index].get(); }
452
453
454 // Jump Tables
455
456 size_tcxx . . $ size_t# numberOfImmediateSwitchJumpTablescxx . . $ QTJSC/CodeBlock#numberOfImmediateSwitchJumpTables(fe4d2d262d4164a8).() const { return m_rareData ? m_rareData->m_immediateSwitchJumpTables.size() : 0; }
457 SimpleJumpTablecxx . . $ QTJSC/SimpleJumpTable#& addImmediateSwitchJumpTablecxx . . $ QTJSC/CodeBlock#addImmediateSwitchJumpTable(afe3c0d590a037c).() { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); m_rareData->m_immediateSwitchJumpTables.append(SimpleJumpTable()); return m_rareData->m_immediateSwitchJumpTables.last(); }
458 SimpleJumpTablecxx . . $ QTJSC/SimpleJumpTable#& immediateSwitchJumpTablecxx . . $ QTJSC/CodeBlock#immediateSwitchJumpTable(42fc4228b2016216).(int tableIndex) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_rareData); return m_rareData->m_immediateSwitchJumpTables[tableIndex]; }
459
460 size_tcxx . . $ size_t# numberOfCharacterSwitchJumpTablescxx . . $ QTJSC/CodeBlock#numberOfCharacterSwitchJumpTables(fe4d2d262d4164a8).() const { return m_rareData ? m_rareData->m_characterSwitchJumpTables.size() : 0; }
461 SimpleJumpTablecxx . . $ QTJSC/SimpleJumpTable#& addCharacterSwitchJumpTablecxx . . $ QTJSC/CodeBlock#addCharacterSwitchJumpTable(afe3c0d590a037c).() { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); m_rareData->m_characterSwitchJumpTables.append(SimpleJumpTable()); return m_rareData->m_characterSwitchJumpTables.last(); }
462 SimpleJumpTablecxx . . $ QTJSC/SimpleJumpTable#& characterSwitchJumpTablecxx . . $ QTJSC/CodeBlock#characterSwitchJumpTable(42fc4228b2016216).(int tableIndex) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_rareData); return m_rareData->m_characterSwitchJumpTables[tableIndex]; }
463
464 size_tcxx . . $ size_t# numberOfStringSwitchJumpTablescxx . . $ QTJSC/CodeBlock#numberOfStringSwitchJumpTables(fe4d2d262d4164a8).() const { return m_rareData ? m_rareData->m_stringSwitchJumpTables.size() : 0; }
465 StringJumpTablecxx . . $ QTJSC/StringJumpTable#& addStringSwitchJumpTablecxx . . $ QTJSC/CodeBlock#addStringSwitchJumpTable(466c3f86ab86c457).() { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); m_rareData->m_stringSwitchJumpTables.append(StringJumpTable()); return m_rareData->m_stringSwitchJumpTables.last(); }
466 StringJumpTablecxx . . $ QTJSC/StringJumpTable#& stringSwitchJumpTablecxx . . $ QTJSC/CodeBlock#stringSwitchJumpTable(36bb9f11d112c315).(int tableIndex) { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_rareData); return m_rareData->m_stringSwitchJumpTables[tableIndex]; }
467
468
469 SymbolTablecxx . . $ QTJSC/SymbolTable#* symbolTablecxx . . $ QTJSC/CodeBlock#symbolTable(6567914238d789e4).() { return m_symbolTablecxx . . $ QTJSC/CodeBlock#m_symbolTable.; }
470 SharedSymbolTablecxx . . $ QTJSC/SharedSymbolTable#* sharedSymbolTablecxx . . $ QTJSC/CodeBlock#sharedSymbolTable(eb815dbc70270762).() { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_codeType == FunctionCode); return static_cast<SharedSymbolTable*>(m_symbolTable); }
471
472 EvalCodeCachecxx . . $ QTJSC/EvalCodeCache#& evalCodeCachecxx . . $ QTJSC/CodeBlock#evalCodeCache(e212fb0c990ed8e9).() { createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).(); return m_rareData->m_evalCodeCache; }
473
474 void shrinkToFitcxx . . $ QTJSC/CodeBlock#shrinkToFit(49f6e7a06ebc5aa8).();
475
476 // FIXME: Make these remaining members private.
477
478 int m_numCalleeRegisterscxx . . $ QTJSC/CodeBlock#m_numCalleeRegisters.;
479 int m_numVarscxx . . $ QTJSC/CodeBlock#m_numVars.;
480 int m_numParameterscxx . . $ QTJSC/CodeBlock#m_numParameters.;
481
482 private:
483 #if !defined(NDEBUGcxx . . $ `<built-in>:472:9`!) || ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(OPCODE_SAMPLING)
484 void dump(ExecState*, const Vector<Instruction>::const_iterator& begin, Vector<Instruction>::const_iterator&) const;
485
486 CString registerName(ExecState*, int r) const;
487 void printUnaryOp(ExecState*, int location, Vector<Instruction>::const_iterator&, const char* op) const;
488 void printBinaryOp(ExecState*, int location, Vector<Instruction>::const_iterator&, const char* op) const;
489 void printConditionalJump(ExecState*, const Vector<Instruction>::const_iterator&, Vector<Instruction>::const_iterator&, int location, const char* op) const;
490 void printGetByIdOp(ExecState*, int location, Vector<Instruction>::const_iterator&, const char* op) const;
491 void printPutByIdOp(ExecState*, int location, Vector<Instruction>::const_iterator&, const char* op) const;
492 #endif
493
494 void reparseForExceptionInfoIfNecessarycxx . . $ QTJSC/CodeBlock#reparseForExceptionInfoIfNecessary(d2cb180e190a9680).(CallFramecxx . . $ QTJSC/CallFrame#*);
495
496 void createRareDataIfNecessarycxx . . $ QTJSC/CodeBlock#createRareDataIfNecessary(49f6e7a06ebc5aa8).()
497 {
498 if (!m_rareData)
499 m_rareData.set(new RareData);
500 }
501
502 ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#* m_ownerExecutablecxx . . $ QTJSC/CodeBlock#m_ownerExecutable.;
503 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* m_globalDatacxx . . $ QTJSC/CodeBlock#m_globalData.;
504
505 Vector<Instruction> m_instructionscxx . . $ QTJSC/CodeBlock#m_instructions.;
506 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
507 unsigned m_instructionCount;
508 #endif
509
510 int m_thisRegistercxx . . $ QTJSC/CodeBlock#m_thisRegister.;
511
512 bool m_needsFullScopeChaincxx . . $ QTJSC/CodeBlock#m_needsFullScopeChain.;
513 bool m_usesEvalcxx . . $ QTJSC/CodeBlock#m_usesEval.;
514 bool m_usesArgumentscxx . . $ QTJSC/CodeBlock#m_usesArguments.;
515 bool m_isNumericCompareFunctioncxx . . $ QTJSC/CodeBlock#m_isNumericCompareFunction.;
516
517 CodeTypecxx . . $ QTJSC/CodeType# m_codeTypecxx . . $ QTJSC/CodeBlock#m_codeType.;
518
519 RefPtrcxx . . $ RefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#> m_sourcecxx . . $ QTJSC/CodeBlock#m_source.;
520 unsigned m_sourceOffsetcxx . . $ QTJSC/CodeBlock#m_sourceOffset.;
521
522 #if !ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
523 Vector<unsigned> m_propertyAccessInstructions;
524 Vector<unsigned> m_globalResolveInstructions;
525 #else
526 Vector<StructureStubInfo> m_structureStubInfoscxx . . $ QTJSC/CodeBlock#m_structureStubInfos.;
527 Vector<GlobalResolveInfo> m_globalResolveInfoscxx . . $ QTJSC/CodeBlock#m_globalResolveInfos.;
528 Vector<CallLinkInfo> m_callLinkInfoscxx . . $ QTJSC/CodeBlock#m_callLinkInfos.;
529 Vector<MethodCallLinkInfo> m_methodCallLinkInfoscxx . . $ QTJSC/CodeBlock#m_methodCallLinkInfos.;
530 Vector<CallLinkInfo*> m_linkedCallerListcxx . . $ QTJSC/CodeBlock#m_linkedCallerList.;
531 #endif
532
533 Vector<unsigned> m_jumpTargetscxx . . $ QTJSC/CodeBlock#m_jumpTargets.;
534
535 // Constant Pool
536 Vector<Identifier> m_identifierscxx . . $ QTJSC/CodeBlock#m_identifiers.;
537 Vector<Register> m_constantRegisterscxx . . $ QTJSC/CodeBlock#m_constantRegisters.;
538 Vector<RefPtr<FunctionExecutable> > m_functionDeclscxx . . $ QTJSC/CodeBlock#m_functionDecls.;
539 Vector<RefPtr<FunctionExecutable> > m_functionExprscxx . . $ QTJSC/CodeBlock#m_functionExprs.;
540
541 SymbolTablecxx . . $ QTJSC/SymbolTable#* m_symbolTablecxx . . $ QTJSC/CodeBlock#m_symbolTable.;
542
543 OwnPtrcxx . . $ OwnPtr#<ExceptionInfocxx . . $ QTJSC/ExceptionInfo#> m_exceptionInfocxx . . $ QTJSC/CodeBlock#m_exceptionInfo.;
544
545 struct RareDatacxx . . $ QTJSC/CodeBlock#RareData# : FastAllocBasecxx . . $ QTWTF/FastAllocBase# {
546 Vector<HandlerInfo> m_exceptionHandlerscxx . . $ QTJSC/CodeBlock#RareData#m_exceptionHandlers.;
547
548 // Rare Constants
549 Vector<RefPtr<RegExp> > m_regexpscxx . . $ QTJSC/CodeBlock#RareData#m_regexps.;
550
551 // Jump Tables
552 Vector<SimpleJumpTable> m_immediateSwitchJumpTablescxx . . $ QTJSC/CodeBlock#RareData#m_immediateSwitchJumpTables.;
553 Vector<SimpleJumpTable> m_characterSwitchJumpTablescxx . . $ QTJSC/CodeBlock#RareData#m_characterSwitchJumpTables.;
554 Vector<StringJumpTable> m_stringSwitchJumpTablescxx . . $ QTJSC/CodeBlock#RareData#m_stringSwitchJumpTables.;
555
556 EvalCodeCachecxx . . $ QTJSC/EvalCodeCache# m_evalCodeCachecxx . . $ QTJSC/CodeBlock#RareData#m_evalCodeCache.;
557
558 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
559 Vector<FunctionRegisterInfo> m_functionRegisterInfoscxx . . $ QTJSC/CodeBlock#RareData#m_functionRegisterInfos.;
560 #endif
561 };
562 OwnPtrcxx . . $ OwnPtr#<RareDatacxx . . $ QTJSC/CodeBlock#RareData#> m_rareDatacxx . . $ QTJSC/CodeBlock#m_rareData.;
563 };
564
565 // Program code is not marked by any function, so we make the global object
566 // responsible for marking it.
567
568 class GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock# : public CodeBlockcxx . . $ QTJSC/CodeBlock# {
569 public:
570 GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock#GlobalCodeBlock(331b368435ad9df4).(ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#* ownerExecutable, CodeTypecxx . . $ QTJSC/CodeType# codeType, PassRefPtrcxx . . $ PassRefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#> sourceProvider, unsigned sourceOffset, JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* globalObject)
571 : CodeBlock(ownerExecutable, codeType, sourceProvider, sourceOffset, &m_unsharedSymbolTable)
572 , m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject.(globalObject)
573 {
574 m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject.->codeBlocks().add(this);
575 }
576
577 ~cxx . . $ QTJSC/GlobalCodeBlock#`~GlobalCodeBlock`(49f6e7a06ebc5aa8).GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock#()
578 {
579 if (m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject.)
580 m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject.->codeBlocks().remove(this);
581 }
582
583 void clearGlobalObjectcxx . . $ QTJSC/GlobalCodeBlock#clearGlobalObject(49f6e7a06ebc5aa8).() { m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject. = 0; }
584
585 private:
586 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* m_globalObjectcxx . . $ QTJSC/GlobalCodeBlock#m_globalObject.; // For program and eval nodes, the global object that marks the constant pool.
587 SymbolTablecxx . . $ QTJSC/SymbolTable# m_unsharedSymbolTablecxx . . $ QTJSC/GlobalCodeBlock#m_unsharedSymbolTable.;
588 };
589
590 class ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock# : public GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock# {
591 public:
592 ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock#ProgramCodeBlock(d5ce0558c2712c11).(ProgramExecutablecxx . . $ QTJSC/ProgramExecutable#* ownerExecutable, CodeTypecxx . . $ QTJSC/CodeType# codeType, JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* globalObject, PassRefPtrcxx . . $ PassRefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#> sourceProvider)
593 : GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock#(ownerExecutable, codeType, sourceProvider, 0, globalObject)
594 {
595 }
596 };
597
598 class EvalCodeBlockcxx . . $ QTJSC/EvalCodeBlock# : public GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock# {
599 public:
600 EvalCodeBlockcxx . . $ QTJSC/EvalCodeBlock#EvalCodeBlock(2b416169b117ac).(EvalExecutablecxx . . $ QTJSC/EvalExecutable#* ownerExecutable, JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* globalObject, PassRefPtrcxx . . $ PassRefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#> sourceProvider, int baseScopeDepth)
601 : GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock#(ownerExecutable, EvalCodecxx . . $ QTJSC/EvalCode., sourceProvider, 0, globalObject)
602 , m_baseScopeDepthcxx . . $ QTJSC/EvalCodeBlock#m_baseScopeDepth.(baseScopeDepth)
603 {
604 }
605
606 int baseScopeDepthcxx . . $ QTJSC/EvalCodeBlock#baseScopeDepth(455f465bc33b4cdf).() const { return m_baseScopeDepthcxx . . $ QTJSC/EvalCodeBlock#m_baseScopeDepth.; }
607
608 const Identifiercxx . . $ QTJSC/Identifier#& variablecxx . . $ QTJSC/EvalCodeBlock#variable(350f51dd5657a4d6).(unsigned index) { return m_variables[index]; }
609 unsigned numVariablescxx . . $ QTJSC/EvalCodeBlock#numVariables(db52760e79bf9054).() { return m_variables.size(); }
610 void adoptVariablescxx . . $ QTJSC/EvalCodeBlock#adoptVariables(2afed6f74e8a6d90).(Vector<Identifier>& variables)
611 {
612 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_variables.isEmpty());
613 m_variables.swap(variables);
614 }
615
616 private:
617 int m_baseScopeDepthcxx . . $ QTJSC/EvalCodeBlock#m_baseScopeDepth.;
618 Vector<Identifier> m_variablescxx . . $ QTJSC/EvalCodeBlock#m_variables.;
619 };
620
621 class FunctionCodeBlockcxx . . $ QTJSC/FunctionCodeBlock# : public CodeBlockcxx . . $ QTJSC/CodeBlock# {
622 public:
623 // Rather than using the usual RefCounted::create idiom for SharedSymbolTable we just use new
624 // as we need to initialise the CodeBlock before we could initialise any RefPtr to hold the shared
625 // symbol table, so we just pass as a raw pointer with a ref count of 1. We then manually deref
626 // in the destructor.
627 FunctionCodeBlockcxx . . $ QTJSC/FunctionCodeBlock#FunctionCodeBlock(3e4fac34b4c29851).(FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#* ownerExecutable, CodeTypecxx . . $ QTJSC/CodeType# codeType, PassRefPtrcxx . . $ PassRefPtr#<SourceProvidercxx . . $ QTJSC/SourceProvider#> sourceProvider, unsigned sourceOffset)
628 : CodeBlockcxx . . $ QTJSC/CodeBlock#(ownerExecutable, codeType, sourceProvider, sourceOffset, new SharedSymbolTablecxx . . $ QTJSC/SharedSymbolTable#)
629 {
630 }
631 ~cxx . . $ QTJSC/FunctionCodeBlock#`~FunctionCodeBlock`(49f6e7a06ebc5aa8).FunctionCodeBlockcxx . . $ QTJSC/FunctionCodeBlock#()
632 {
633 sharedSymbolTablecxx . . $ QTJSC/CodeBlock#sharedSymbolTable(eb815dbc70270762).()->deref();
634 }
635 };
636
637 inline Registercxx . . $ QTJSC/Register#& ExecStatecxx . . $ QTJSC/ExecState#::rcxx . . $ QTJSC/ExecState#r(a4e11caf1b71f23c).(int index)
638 {
639 CodeBlockcxx . . $ QTJSC/CodeBlock#* codeBlock = this->codeBlockcxx . . $ QTJSC/ExecState#codeBlock(a218112474fb222a).();
640 if (codeBlock->isConstantRegisterIndexcxx . . $ QTJSC/CodeBlock#isConstantRegisterIndex(4a668f6de69bf818).(index))
641 return codeBlock->constantRegistercxx . . $ QTJSC/CodeBlock#constantRegister(a4e11caf1b71f23c).(index);
642 return this[index];
643 }
644
645 } // namespace JSC
646
647 #endif // CodeBlock_h