Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #ifndef Executable_h
27 #define Executable_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h:27:9`!
28
29 #include "JSFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h`/
30 #include "Interpreter.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.h`/
31 #include "Nodes.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Nodes.h`/
32 #include "SamplingTool.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/bytecode/SamplingTool.h`/
33
34 namespace JSCcxx . . $ QTJSC/ {
35
36 class CodeBlockcxx . . $ QTJSC/CodeBlock#;
37 class Debuggercxx . . $ QTJSC/Debugger#;
38 class EvalCodeBlockcxx . . $ QTJSC/EvalCodeBlock#;
39 class ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock#;
40 class ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#;
41
42 struct ExceptionInfocxx . . $ QTJSC/ExceptionInfo#;
43
44 class ExecutableBasecxx . . $ QTJSC/ExecutableBase# : public RefCounted<ExecutableBase> {
45 friend class JITcxx . . $ QTJSC/JIT#;
46
47 protected:
48 static const int NUM_PARAMETERS_IS_HOSTcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_IS_HOST. = 0;
49 static const int NUM_PARAMETERS_NOT_COMPILEDcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_NOT_COMPILED. = -1;
50
51 public:
52 ExecutableBasecxx . . $ QTJSC/ExecutableBase#ExecutableBase(d4f767463ce0a6b3).(int numParameters)
53 : m_numParameterscxx . . $ QTJSC/ExecutableBase#m_numParameters.(numParameters)
54 {
55 }
56
57 virtual ~cxx . . $ QTJSC/ExecutableBase#`~ExecutableBase`(49f6e7a06ebc5aa8).ExecutableBasecxx . . $ QTJSC/ExecutableBase#() {}
58
59 bool isHostFunctioncxx . . $ QTJSC/ExecutableBase#isHostFunction(50ce9a9e25b4a850).() const { return m_numParameterscxx . . $ QTJSC/ExecutableBase#m_numParameters. == NUM_PARAMETERS_IS_HOSTcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_IS_HOST.; }
60
61 protected:
62 int m_numParameterscxx . . $ QTJSC/ExecutableBase#m_numParameters.;
63
64 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
65 public:
66 JITCodecxx . . $ QTJSC/JITCode#& generatedJITCodecxx . . $ QTJSC/ExecutableBase#generatedJITCode(6fad7ba5423f99e7).()
67 {
68 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_jitCode);
69 return m_jitCode;
70 }
71
72 ExecutablePoolcxx . . $ QTJSC/ExecutablePool#* getExecutablePoolcxx . . $ QTJSC/ExecutableBase#getExecutablePool(c0dd9d257c7f95bf).()
73 {
74 return m_jitCode.getExecutablePool();
75 }
76
77 protected:
78 JITCodecxx . . $ QTJSC/JITCode# m_jitCodecxx . . $ QTJSC/ExecutableBase#m_jitCode.;
79 #endif
80 };
81
82 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
83 class NativeExecutablecxx . . $ QTJSC/NativeExecutable# : public ExecutableBasecxx . . $ QTJSC/ExecutableBase# {
84 public:
85 NativeExecutablecxx . . $ QTJSC/NativeExecutable#NativeExecutable(d2cb180e190a9680).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
86 : ExecutableBasecxx . . $ QTJSC/ExecutableBase#ExecutableBase(d4f767463ce0a6b3).(NUM_PARAMETERS_IS_HOSTcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_IS_HOST.)
87 {
88 m_jitCode = JITCode(JITCode::HostFunction(exec->globalData().jitStubs.ctiNativeCallThunk()));
89 }
90
91 ~cxx . . $ QTJSC/NativeExecutable#`~NativeExecutable`(49f6e7a06ebc5aa8).NativeExecutablecxx . . $ QTJSC/NativeExecutable#();
92 };
93 #endif
94
95 class VPtrHackExecutablecxx . . $ QTJSC/VPtrHackExecutable# : public ExecutableBasecxx . . $ QTJSC/ExecutableBase# {
96 public:
97 VPtrHackExecutablecxx . . $ QTJSC/VPtrHackExecutable#VPtrHackExecutable(49f6e7a06ebc5aa8).()
98 : ExecutableBasecxx . . $ QTJSC/ExecutableBase#ExecutableBase(d4f767463ce0a6b3).(NUM_PARAMETERS_IS_HOSTcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_IS_HOST.)
99 {
100 }
101
102 ~cxx . . $ QTJSC/VPtrHackExecutable#`~VPtrHackExecutable`(49f6e7a06ebc5aa8).VPtrHackExecutablecxx . . $ QTJSC/VPtrHackExecutable#();
103 };
104
105 class ScriptExecutablecxx . . $ QTJSC/ScriptExecutable# : public ExecutableBasecxx . . $ QTJSC/ExecutableBase# {
106 public:
107 ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(793ebb5666afec04).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const SourceCodecxx . . $ QTJSC/SourceCode#& source)
108 : ExecutableBasecxx . . $ QTJSC/ExecutableBase#ExecutableBase(d4f767463ce0a6b3).(NUM_PARAMETERS_NOT_COMPILEDcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_NOT_COMPILED.)
109 , m_source(source)
110 , m_featurescxx . . $ QTJSC/ScriptExecutable#m_features.(0)
111 {
112 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(CODEBLOCK_SAMPLING)
113 if (SamplingTool* sampler = globalData->interpreter->sampler())
114 sampler->notifyOfScope(this);
115 #else
116 UNUSED_PARAMcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/UnusedParam.h:27:9`!(globalData);
117 #endif
118 }
119
120 ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(1a6b88cd71052fdb).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const SourceCodecxx . . $ QTJSC/SourceCode#& source)
121 : ExecutableBasecxx . . $ QTJSC/ExecutableBase#ExecutableBase(d4f767463ce0a6b3).(NUM_PARAMETERS_NOT_COMPILEDcxx . . $ QTJSC/ExecutableBase#NUM_PARAMETERS_NOT_COMPILED.)
122 , m_source(source)
123 , m_featurescxx . . $ QTJSC/ScriptExecutable#m_features.(0)
124 {
125 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(CODEBLOCK_SAMPLING)
126 if (SamplingTool* sampler = exec->globalData().interpreter->sampler())
127 sampler->notifyOfScope(this);
128 #else
129 UNUSED_PARAMcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/UnusedParam.h:27:9`!(exec);
130 #endif
131 }
132
133 const SourceCodecxx . . $ QTJSC/SourceCode#& sourcecxx . . $ QTJSC/ScriptExecutable#source(95f0f088d0751f0c).() { return m_source; }
134 intptr_tcxx . . $ intptr_t# sourceIDcxx . . $ QTJSC/ScriptExecutable#sourceID(57a65ae535d7db84).() const { return m_source.provider()->asID(); }
135 const UStringcxx . . $ QTJSC/UString#& sourceURLcxx . . $ QTJSC/ScriptExecutable#sourceURL(de21ee9ecbd506fd).() const { return m_source.provider()->url(); }
136 int lineNocxx . . $ QTJSC/ScriptExecutable#lineNo(455f465bc33b4cdf).() const { return m_firstLinecxx . . $ QTJSC/ScriptExecutable#m_firstLine.; }
137 int lastLinecxx . . $ QTJSC/ScriptExecutable#lastLine(455f465bc33b4cdf).() const { return m_lastLinecxx . . $ QTJSC/ScriptExecutable#m_lastLine.; }
138
139 bool usesEvalcxx . . $ QTJSC/ScriptExecutable#usesEval(50ce9a9e25b4a850).() const { return m_featurescxx . . $ QTJSC/ScriptExecutable#m_features. & EvalFeaturecxx . . $ QTJSC/EvalFeature.; }
140 bool usesArgumentscxx . . $ QTJSC/ScriptExecutable#usesArguments(50ce9a9e25b4a850).() const { return m_featurescxx . . $ QTJSC/ScriptExecutable#m_features. & ArgumentsFeaturecxx . . $ QTJSC/ArgumentsFeature.; }
141 bool needsActivationcxx . . $ QTJSC/ScriptExecutable#needsActivation(50ce9a9e25b4a850).() const { return m_featurescxx . . $ QTJSC/ScriptExecutable#m_features. & (EvalFeaturecxx . . $ QTJSC/EvalFeature. | ClosureFeaturecxx . . $ QTJSC/ClosureFeature. | WithFeaturecxx . . $ QTJSC/WithFeature. | CatchFeaturecxx . . $ QTJSC/CatchFeature.); }
142
143 virtual ExceptionInfocxx . . $ QTJSC/ExceptionInfo#* reparseExceptionInfocxx . . $ QTJSC/ScriptExecutable#reparseExceptionInfo(5ff41b887c87ff7b).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*, CodeBlockcxx . . $ QTJSC/CodeBlock#*) = 0;
144
145 protected:
146 void recordParsecxx . . $ QTJSC/ScriptExecutable#recordParse(8c880916ccadf15d).(CodeFeaturescxx . . $ QTJSC/CodeFeatures# features, int firstLine, int lastLine)
147 {
148 m_featurescxx . . $ QTJSC/ScriptExecutable#m_features. = features;
149 m_firstLinecxx . . $ QTJSC/ScriptExecutable#m_firstLine. = firstLine;
150 m_lastLinecxx . . $ QTJSC/ScriptExecutable#m_lastLine. = lastLine;
151 }
152
153 SourceCodecxx . . $ QTJSC/SourceCode# m_sourcecxx . . $ QTJSC/ScriptExecutable#m_source.;
154 CodeFeaturescxx . . $ QTJSC/CodeFeatures# m_featurescxx . . $ QTJSC/ScriptExecutable#m_features.;
155 int m_firstLinecxx . . $ QTJSC/ScriptExecutable#m_firstLine.;
156 int m_lastLinecxx . . $ QTJSC/ScriptExecutable#m_lastLine.;
157 };
158
159 class EvalExecutablecxx . . $ QTJSC/EvalExecutable# : public ScriptExecutablecxx . . $ QTJSC/ScriptExecutable# {
160 public:
161
162 ~cxx . . $ QTJSC/EvalExecutable#`~EvalExecutable`(49f6e7a06ebc5aa8).EvalExecutablecxx . . $ QTJSC/EvalExecutable#();
163
164 EvalCodeBlockcxx . . $ QTJSC/EvalCodeBlock#& bytecodecxx . . $ QTJSC/EvalExecutable#bytecode(6ed5b0bf59e6bf03).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
165 {
166 if (!m_evalCodeBlockcxx . . $ QTJSC/EvalExecutable#m_evalCodeBlock.) {
167 JSObjectcxx . . $ QTJSC/JSObject#* error = compilecxx . . $ QTJSC/EvalExecutable#compile(ed372d110a4a94ac).(exec, scopeChainNode);
168 ASSERT_UNUSEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:186:9`!(!error, error);
169 }
170 return *m_evalCodeBlockcxx . . $ QTJSC/EvalExecutable#m_evalCodeBlock.;
171 }
172
173 JSObjectcxx . . $ QTJSC/JSObject#* compilecxx . . $ QTJSC/EvalExecutable#compile(ed372d110a4a94ac).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
174
175 bool isCompiledcxx . . $ QTJSC/EvalExecutable#isCompiled(50ce9a9e25b4a850).() const { return m_evalCodeBlockcxx . . $ QTJSC/EvalExecutable#m_evalCodeBlock.; }
176
177 ExceptionInfocxx . . $ QTJSC/ExceptionInfo#* reparseExceptionInfocxx . . $ QTJSC/EvalExecutable#reparseExceptionInfo(5ff41b887c87ff7b).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*, CodeBlockcxx . . $ QTJSC/CodeBlock#*);
178 static PassRefPtrcxx . . $ PassRefPtr#<EvalExecutablecxx . . $ QTJSC/EvalExecutable#> createcxx . . $ QTJSC/EvalExecutable#create(fd48922297ae12e5).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const SourceCodecxx . . $ QTJSC/SourceCode#& source) { return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new EvalExecutablecxx . . $ QTJSC/EvalExecutable#EvalExecutable(1a6b88cd71052fdb).(exec, source)); }
179
180 private:
181 EvalExecutablecxx . . $ QTJSC/EvalExecutable#EvalExecutable(1a6b88cd71052fdb).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const SourceCodecxx . . $ QTJSC/SourceCode#& source)
182 : ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(1a6b88cd71052fdb).(exec, source)
183 , m_evalCodeBlockcxx . . $ QTJSC/EvalExecutable#m_evalCodeBlock.(0)
184 {
185 }
186 EvalCodeBlockcxx . . $ QTJSC/EvalCodeBlock#* m_evalCodeBlockcxx . . $ QTJSC/EvalExecutable#m_evalCodeBlock.;
187
188 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
189 public:
190 JITCodecxx . . $ QTJSC/JITCode#& jitCodecxx . . $ QTJSC/EvalExecutable#jitCode(8f1b409da76bc763).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
191 {
192 if (!m_jitCode)
193 generateJITCodecxx . . $ QTJSC/EvalExecutable#generateJITCode(98b727ac5f0d3552).(exec, scopeChainNode);
194 return m_jitCode;
195 }
196
197 private:
198 void generateJITCodecxx . . $ QTJSC/EvalExecutable#generateJITCode(98b727ac5f0d3552).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
199 #endif
200 };
201
202 class ProgramExecutablecxx . . $ QTJSC/ProgramExecutable# : public ScriptExecutablecxx . . $ QTJSC/ScriptExecutable# {
203 public:
204 static PassRefPtrcxx . . $ PassRefPtr#<ProgramExecutablecxx . . $ QTJSC/ProgramExecutable#> createcxx . . $ QTJSC/ProgramExecutable#create(82f6e418d7bb6624).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const SourceCodecxx . . $ QTJSC/SourceCode#& source)
205 {
206 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new ProgramExecutablecxx . . $ QTJSC/ProgramExecutable#ProgramExecutable(1a6b88cd71052fdb).(exec, source));
207 }
208
209 ~cxx . . $ QTJSC/ProgramExecutable#`~ProgramExecutable`(49f6e7a06ebc5aa8).ProgramExecutablecxx . . $ QTJSC/ProgramExecutable#();
210
211 ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock#& bytecodecxx . . $ QTJSC/ProgramExecutable#bytecode(6df5c99e71252eac).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
212 {
213 if (!m_programCodeBlockcxx . . $ QTJSC/ProgramExecutable#m_programCodeBlock.) {
214 JSObjectcxx . . $ QTJSC/JSObject#* error = compilecxx . . $ QTJSC/ProgramExecutable#compile(ed372d110a4a94ac).(exec, scopeChainNode);
215 ASSERT_UNUSEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:186:9`!(!error, error);
216 }
217 return *m_programCodeBlockcxx . . $ QTJSC/ProgramExecutable#m_programCodeBlock.;
218 }
219
220 JSObjectcxx . . $ QTJSC/JSObject#* checkSyntaxcxx . . $ QTJSC/ProgramExecutable#checkSyntax(dc025d143f56633c).(ExecStatecxx . . $ QTJSC/ExecState#*);
221 JSObjectcxx . . $ QTJSC/JSObject#* compilecxx . . $ QTJSC/ProgramExecutable#compile(ed372d110a4a94ac).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
222
223 // CodeBlocks for program code are transient and therefore do not gain from from throwing out there exception information.
224 ExceptionInfocxx . . $ QTJSC/ExceptionInfo#* reparseExceptionInfocxx . . $ QTJSC/ProgramExecutable#reparseExceptionInfo(5ff41b887c87ff7b).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*, CodeBlockcxx . . $ QTJSC/CodeBlock#*) { ASSERT_NOT_REACHEDcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:185:9`!(); return 0; }
225
226 private:
227 ProgramExecutablecxx . . $ QTJSC/ProgramExecutable#ProgramExecutable(1a6b88cd71052fdb).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const SourceCodecxx . . $ QTJSC/SourceCode#& source)
228 : ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(1a6b88cd71052fdb).(exec, source)
229 , m_programCodeBlockcxx . . $ QTJSC/ProgramExecutable#m_programCodeBlock.(0)
230 {
231 }
232 ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock#* m_programCodeBlockcxx . . $ QTJSC/ProgramExecutable#m_programCodeBlock.;
233
234 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
235 public:
236 JITCodecxx . . $ QTJSC/JITCode#& jitCodecxx . . $ QTJSC/ProgramExecutable#jitCode(8f1b409da76bc763).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
237 {
238 if (!m_jitCode)
239 generateJITCodecxx . . $ QTJSC/ProgramExecutable#generateJITCode(98b727ac5f0d3552).(exec, scopeChainNode);
240 return m_jitCode;
241 }
242
243 private:
244 void generateJITCodecxx . . $ QTJSC/ProgramExecutable#generateJITCode(98b727ac5f0d3552).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
245 #endif
246 };
247
248 class FunctionExecutablecxx . . $ QTJSC/FunctionExecutable# : public ScriptExecutablecxx . . $ QTJSC/ScriptExecutable# {
249 friend class JITcxx . . $ QTJSC/JIT#;
250 public:
251 static PassRefPtrcxx . . $ PassRefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> createcxx . . $ QTJSC/FunctionExecutable#create(576ac4fdea05e65f).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& name, const SourceCodecxx . . $ QTJSC/SourceCode#& source, bool forceUsesArguments, FunctionParameterscxx . . $ QTJSC/FunctionParameters#* parameters, int firstLine, int lastLine)
252 {
253 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#FunctionExecutable(9c0d078ba235b350).(exec, name, source, forceUsesArguments, parameters, firstLine, lastLine));
254 }
255
256 static PassRefPtrcxx . . $ PassRefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> createcxx . . $ QTJSC/FunctionExecutable#create(da6098436161b29).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const Identifiercxx . . $ QTJSC/Identifier#& name, const SourceCodecxx . . $ QTJSC/SourceCode#& source, bool forceUsesArguments, FunctionParameterscxx . . $ QTJSC/FunctionParameters#* parameters, int firstLine, int lastLine)
257 {
258 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#FunctionExecutable(40304a87de6ca05c).(globalData, name, source, forceUsesArguments, parameters, firstLine, lastLine));
259 }
260
261 ~cxx . . $ QTJSC/FunctionExecutable#`~FunctionExecutable`(49f6e7a06ebc5aa8).FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#();
262
263 JSFunctioncxx . . $ QTJSC/JSFunction#* makecxx . . $ QTJSC/FunctionExecutable#make(e776e03fd848bcd9).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChain)
264 {
265 return new (exec) JSFunction(exec, this, scopeChain);
266 }
267
268 CodeBlockcxx . . $ QTJSC/CodeBlock#& bytecodecxx . . $ QTJSC/FunctionExecutable#bytecode(f6188d605a8fbc4b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
269 {
270 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(scopeChainNode);
271 if (!m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.)
272 compilecxx . . $ QTJSC/FunctionExecutable#compile(98b727ac5f0d3552).(exec, scopeChainNode);
273 return *m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.;
274 }
275
276 bool isGeneratedcxx . . $ QTJSC/FunctionExecutable#isGenerated(50ce9a9e25b4a850).() const
277 {
278 return m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.;
279 }
280
281 CodeBlockcxx . . $ QTJSC/CodeBlock#& generatedBytecodecxx . . $ QTJSC/FunctionExecutable#generatedBytecode(bed47da3f3a565bc).()
282 {
283 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_codeBlock);
284 return *m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.;
285 }
286
287 const Identifiercxx . . $ QTJSC/Identifier#& namecxx . . $ QTJSC/FunctionExecutable#name(d09261135e261cb4).() { return m_name; }
288 size_tcxx . . $ size_t# parameterCountcxx . . $ QTJSC/FunctionExecutable#parameterCount(fe4d2d262d4164a8).() const { return m_parameters->size(); }
289 size_tcxx . . $ size_t# variableCountcxx . . $ QTJSC/FunctionExecutable#variableCount(fe4d2d262d4164a8).() const { return m_numVariablescxx . . $ QTJSC/FunctionExecutable#m_numVariables.; }
290 UStringcxx . . $ QTJSC/UString# paramStringcxx . . $ QTJSC/FunctionExecutable#paramString(ba9ec689f7dd9231).() const;
291 #ifdef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`!
292 UStringcxx . . $ QTJSC/UString# parameterNamecxx . . $ QTJSC/FunctionExecutable#parameterName(1279e54261cd9957).(int i) const { return (*m_parameters)[i].ustring(); }
293 #endif
294
295 void recompilecxx . . $ QTJSC/FunctionExecutable#recompile(d2cb180e190a9680).(ExecStatecxx . . $ QTJSC/ExecState#*);
296 ExceptionInfocxx . . $ QTJSC/ExceptionInfo#* reparseExceptionInfocxx . . $ QTJSC/FunctionExecutable#reparseExceptionInfo(5ff41b887c87ff7b).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*, CodeBlockcxx . . $ QTJSC/CodeBlock#*);
297 void markAggregatecxx . . $ QTJSC/FunctionExecutable#markAggregate(bd9cae851d80a865).(MarkStackcxx . . $ QTJSC/MarkStack#& markStack);
298 static PassRefPtrcxx . . $ PassRefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> fromGlobalCodecxx . . $ QTJSC/FunctionExecutable#fromGlobalCode(c88f72e13037c1b6).(const Identifiercxx . . $ QTJSC/Identifier#&, ExecStatecxx . . $ QTJSC/ExecState#*, Debuggercxx . . $ QTJSC/Debugger#*, const SourceCodecxx . . $ QTJSC/SourceCode#&, int* errLine = 0, UStringcxx . . $ QTJSC/UString#* errMsg = 0);
299
300 private:
301 FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#FunctionExecutable(40304a87de6ca05c).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const Identifiercxx . . $ QTJSC/Identifier#& name, const SourceCodecxx . . $ QTJSC/SourceCode#& source, bool forceUsesArguments, FunctionParameterscxx . . $ QTJSC/FunctionParameters#* parameters, int firstLine, int lastLine)
302 : ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(793ebb5666afec04).(globalData, source)
303 , m_forceUsesArgumentscxx . . $ QTJSC/FunctionExecutable#m_forceUsesArguments.(forceUsesArguments)
304 , m_parameters(parameters)
305 , m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.(0)
306 , m_name(name)
307 , m_numVariablescxx . . $ QTJSC/FunctionExecutable#m_numVariables.(0)
308 {
309 m_firstLine = firstLine;
310 m_lastLine = lastLine;
311 }
312
313 FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#FunctionExecutable(9c0d078ba235b350).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& name, const SourceCodecxx . . $ QTJSC/SourceCode#& source, bool forceUsesArguments, FunctionParameterscxx . . $ QTJSC/FunctionParameters#* parameters, int firstLine, int lastLine)
314 : ScriptExecutablecxx . . $ QTJSC/ScriptExecutable#ScriptExecutable(1a6b88cd71052fdb).(exec, source)
315 , m_forceUsesArgumentscxx . . $ QTJSC/FunctionExecutable#m_forceUsesArguments.(forceUsesArguments)
316 , m_parameters(parameters)
317 , m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.(0)
318 , m_name(name)
319 , m_numVariablescxx . . $ QTJSC/FunctionExecutable#m_numVariables.(0)
320 {
321 m_firstLine = firstLine;
322 m_lastLine = lastLine;
323 }
324
325 void compilecxx . . $ QTJSC/FunctionExecutable#compile(98b727ac5f0d3552).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
326
327 bool m_forceUsesArgumentscxx . . $ QTJSC/FunctionExecutable#m_forceUsesArguments.;
328 RefPtrcxx . . $ RefPtr#<FunctionParameterscxx . . $ QTJSC/FunctionParameters#> m_parameterscxx . . $ QTJSC/FunctionExecutable#m_parameters.;
329 CodeBlockcxx . . $ QTJSC/CodeBlock#* m_codeBlockcxx . . $ QTJSC/FunctionExecutable#m_codeBlock.;
330 Identifiercxx . . $ QTJSC/Identifier# m_namecxx . . $ QTJSC/FunctionExecutable#m_name.;
331 size_tcxx . . $ size_t# m_numVariablescxx . . $ QTJSC/FunctionExecutable#m_numVariables.;
332
333 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
334 public:
335 JITCodecxx . . $ QTJSC/JITCode#& jitCodecxx . . $ QTJSC/FunctionExecutable#jitCode(8f1b409da76bc763).(ExecStatecxx . . $ QTJSC/ExecState#* exec, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChainNode)
336 {
337 if (!m_jitCode)
338 generateJITCodecxx . . $ QTJSC/FunctionExecutable#generateJITCode(98b727ac5f0d3552).(exec, scopeChainNode);
339 return m_jitCode;
340 }
341
342 private:
343 void generateJITCodecxx . . $ QTJSC/FunctionExecutable#generateJITCode(98b727ac5f0d3552).(ExecStatecxx . . $ QTJSC/ExecState#*, ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
344 #endif
345 };
346
347 inline FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#* JSFunctioncxx . . $ QTJSC/JSFunction#::jsExecutablecxx . . $ QTJSC/JSFunction#jsExecutable(41a6d61c9ef790ed).() const
348 {
349 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!isHostFunctionNonInline());
350 return static_cast<FunctionExecutable*>(m_executable.get());
351 }
352
353 inline bool JSFunctioncxx . . $ QTJSC/JSFunction#::isHostFunctioncxx . . $ QTJSC/JSFunction#isHostFunction(50ce9a9e25b4a850).() const
354 {
355 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_executable);
356 return m_executable->isHostFunction();
357 }
358
359 }
360
361 #endif