Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * Copyright (C) 2007 Eric Seidel <[email protected]>
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 */
21
22 #ifndef JSGlobalObject_h
23 #define JSGlobalObject_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:23:9`!
24
25 #include "JSArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h`/
26 #include "JSGlobalData.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h`/
27 #include "JSVariableObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h`/
28 #include "NativeFunctionWrapper.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/NativeFunctionWrapper.h`/
29 #include "NumberPrototype.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/NumberPrototype.h`/
30 #include "StringPrototype.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/StringPrototype.h`/
31 #include "StructureChain.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/StructureChain.h`/
32 #include <wtf/HashSet.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashSet.h`/
33 #include <wtf/OwnPtr.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/OwnPtr.h`/
34 #include <wtf/RandomNumber.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RandomNumber.h`/
35
36 namespace JSCcxx . . $ QTJSC/ {
37
38 class ArrayPrototypecxx . . $ QTJSC/ArrayPrototype#;
39 class BooleanPrototypecxx . . $ QTJSC/BooleanPrototype#;
40 class DatePrototypecxx . . $ QTJSC/DatePrototype#;
41 class Debuggercxx . . $ QTJSC/Debugger#;
42 class ErrorConstructorcxx . . $ QTJSC/ErrorConstructor#;
43 class FunctionPrototypecxx . . $ QTJSC/FunctionPrototype#;
44 class GlobalCodeBlockcxx . . $ QTJSC/GlobalCodeBlock#;
45 class GlobalEvalFunctioncxx . . $ QTJSC/GlobalEvalFunction#;
46 class NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#;
47 class ProgramCodeBlockcxx . . $ QTJSC/ProgramCodeBlock#;
48 class PrototypeFunctioncxx . . $ QTJSC/PrototypeFunction#;
49 class RegExpConstructorcxx . . $ QTJSC/RegExpConstructor#;
50 class RegExpPrototypecxx . . $ QTJSC/RegExpPrototype#;
51 class RegisterFilecxx . . $ QTJSC/RegisterFile#;
52
53 struct ActivationStackNodecxx . . $ QTJSC/ActivationStackNode#;
54 struct HashTablecxx . . $ QTJSC/HashTable#;
55
56 typedef Vectorcxx . . $ Vector#<ExecStatecxx . . $ QTJSC/ExecState#*, 16> ExecStateStackcxx . . $ QTJSC/ExecStateStack#;
57
58 class JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject# : public JSVariableObjectcxx . . $ QTJSC/JSVariableObject# {
59 protected:
60 struct JSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData# : public JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::JSVariableObjectDatacxx . . $ QTJSC/JSVariableObject#JSVariableObjectData# {
61 // We use an explicit destructor function pointer instead of a
62 // virtual destructor because we want to avoid adding a vtable
63 // pointer to this struct. Adding a vtable pointer would force the
64 // compiler to emit costly pointer fixup code when casting from
65 // JSVariableObjectData* to JSGlobalObjectData*.
66 typedef void (*Destructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#Destructor#)(void*);
67
68 JSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#JSGlobalObjectData(18d8443c04403583).(Destructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#Destructor# destructor)
69 : JSVariableObjectData(&symbolTable, 0)
70 , destructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#destructor.(destructor)
71 , registerArraySizecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#registerArraySize.(0)
72 , globalScopeChaincxx . . $ QTJSC/ScopeChain#ScopeChain(5f17479e0fa3a595).(NoScopeChaincxx . . $ QTJSC/NoScopeChain#())
73 , regExpConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpConstructor.(0)
74 , errorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#errorConstructor.(0)
75 , evalErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalErrorConstructor.(0)
76 , rangeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#rangeErrorConstructor.(0)
77 , referenceErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#referenceErrorConstructor.(0)
78 , syntaxErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#syntaxErrorConstructor.(0)
79 , typeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#typeErrorConstructor.(0)
80 , URIErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#URIErrorConstructor.(0)
81 , evalFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalFunction.(0)
82 , callFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#callFunction.(0)
83 , applyFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#applyFunction.(0)
84 , objectPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#objectPrototype.(0)
85 , functionPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#functionPrototype.(0)
86 , arrayPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#arrayPrototype.(0)
87 , booleanPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#booleanPrototype.(0)
88 , stringPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#stringPrototype.(0)
89 , numberPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#numberPrototype.(0)
90 , datePrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#datePrototype.(0)
91 , regExpPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpPrototype.(0)
92 , methodCallDummycxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#methodCallDummy.(0)
93 , weakRandomcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#weakRandom.(static_cast<unsigned>(randomNumbercxx . . $ randomNumber(31fa7155c10fdd13).() * (stdcxx . . $ std/::numeric_limitscxx . . $ std/numeric_limits#<unsigned>::maxcxx . . $ std/numeric_limits#max(db52760e79bf9054).() + 1.0)))
94 {
95 }
96
97 Destructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#Destructor# destructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#destructor.;
98
99 size_tcxx . . $ size_t# registerArraySizecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#registerArraySize.;
100
101 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* nextcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#next.;
102 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* prevcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#prev.;
103
104 Debuggercxx . . $ QTJSC/Debugger#* debuggercxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#debugger.;
105
106 ScopeChaincxx . . $ QTJSC/ScopeChain# globalScopeChaincxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#globalScopeChain.;
107 Registercxx . . $ QTJSC/Register# globalCallFramecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#globalCallFrame.[RegisterFilecxx . . $ QTJSC/RegisterFile#::CallFrameHeaderSizecxx . . $ QTJSC/RegisterFile#CallFrameHeaderSize.];
108
109 int recursioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#recursion.;
110
111 RegExpConstructorcxx . . $ QTJSC/RegExpConstructor#* regExpConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpConstructor.;
112 ErrorConstructorcxx . . $ QTJSC/ErrorConstructor#* errorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#errorConstructor.;
113 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* evalErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalErrorConstructor.;
114 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* rangeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#rangeErrorConstructor.;
115 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* referenceErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#referenceErrorConstructor.;
116 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* syntaxErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#syntaxErrorConstructor.;
117 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* typeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#typeErrorConstructor.;
118 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* URIErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#URIErrorConstructor.;
119
120 GlobalEvalFunctioncxx . . $ QTJSC/GlobalEvalFunction#* evalFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalFunction.;
121 NativeFunctionWrappercxx . . $ QTJSC/NativeFunctionWrapper#* callFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#callFunction.;
122 NativeFunctionWrappercxx . . $ QTJSC/NativeFunctionWrapper#* applyFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#applyFunction.;
123
124 ObjectPrototypecxx . . $ QTJSC/ObjectPrototype#* objectPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#objectPrototype.;
125 FunctionPrototypecxx . . $ QTJSC/FunctionPrototype#* functionPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#functionPrototype.;
126 ArrayPrototypecxx . . $ QTJSC/ArrayPrototype#* arrayPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#arrayPrototype.;
127 BooleanPrototypecxx . . $ QTJSC/BooleanPrototype#* booleanPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#booleanPrototype.;
128 StringPrototypecxx . . $ QTJSC/StringPrototype#* stringPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#stringPrototype.;
129 NumberPrototypecxx . . $ QTJSC/NumberPrototype#* numberPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#numberPrototype.;
130 DatePrototypecxx . . $ QTJSC/DatePrototype#* datePrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#datePrototype.;
131 RegExpPrototypecxx . . $ QTJSC/RegExpPrototype#* regExpPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpPrototype.;
132
133 JSObjectcxx . . $ QTJSC/JSObject#* methodCallDummycxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#methodCallDummy.;
134
135 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> argumentsStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#argumentsStructure.;
136 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> arrayStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#arrayStructure.;
137 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> booleanObjectStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#booleanObjectStructure.;
138 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> callbackConstructorStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#callbackConstructorStructure.;
139 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> callbackFunctionStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#callbackFunctionStructure.;
140 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> callbackObjectStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#callbackObjectStructure.;
141 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> dateStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#dateStructure.;
142 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> emptyObjectStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#emptyObjectStructure.;
143 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> errorStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#errorStructure.;
144 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> functionStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#functionStructure.;
145 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> numberObjectStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#numberObjectStructure.;
146 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> prototypeFunctionStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#prototypeFunctionStructure.;
147 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> regExpMatchesArrayStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpMatchesArrayStructure.;
148 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> regExpStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpStructure.;
149 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> stringObjectStructurecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#stringObjectStructure.;
150
151 SymbolTablecxx . . $ QTJSC/SymbolTable# symbolTablecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#symbolTable.;
152 unsigned profileGroupcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#profileGroup.;
153
154 RefPtrcxx . . $ RefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> globalDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#globalData.;
155
156 HashSet<GlobalCodeBlock*> codeBlockscxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#codeBlocks.;
157 WeakRandomcxx . . $ QTJSC/WeakRandom# weakRandomcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#weakRandom.;
158 };
159
160 public:
161 void* operatorcxx . . $ QTJSC/JSGlobalObject#`operator new`(d67e494932e2c596). new(size_tcxx . . $ size_t#, JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*);
162
163 explicit JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#JSGlobalObject(49f6e7a06ebc5aa8).()
164 : JSVariableObjectcxx . . $ QTJSC/JSVariableObject#(JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::createStructurecxx . . $ QTJSC/JSGlobalObject#createStructure(da75fbe5e97e240f).(jsNullcxx . . $ QTJSC/jsNull(ad9afe69d7bf6378).()), new JSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#(destroyJSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#destroyJSGlobalObjectData(5d22bdacc48458e8).))
165 {
166 initcxx . . $ QTJSC/JSGlobalObject#init(aa1c69ebc68b9201).(this);
167 }
168
169 protected:
170 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#JSGlobalObject(7bc830bc756d0b92).(NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#> structure, JSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#* data, JSObjectcxx . . $ QTJSC/JSObject#* thisValue)
171 : JSVariableObjectcxx . . $ QTJSC/JSVariableObject#(structure, data)
172 {
173 initcxx . . $ QTJSC/JSGlobalObject#init(aa1c69ebc68b9201).(thisValue);
174 }
175
176 public:
177 virtual ~cxx . . $ QTJSC/JSGlobalObject#`~JSGlobalObject`(49f6e7a06ebc5aa8).JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#();
178
179 virtual void markChildrencxx . . $ QTJSC/JSGlobalObject#markChildren(bd9cae851d80a865).(MarkStackcxx . . $ QTJSC/MarkStack#&);
180
181 virtual bool getOwnPropertySlotcxx . . $ QTJSC/JSGlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#&, PropertySlotcxx . . $ QTJSC/PropertySlot#&);
182 virtual bool getOwnPropertyDescriptorcxx . . $ QTJSC/JSGlobalObject#getOwnPropertyDescriptor(dce4ef7012294c32).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#&, PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#&);
183 virtual bool hasOwnPropertyForWritecxx . . $ QTJSC/JSGlobalObject#hasOwnPropertyForWrite(13154ef9bddc9416).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#&);
184 virtual void putcxx . . $ QTJSC/JSGlobalObject#put(dfb3133dafbe9ff4).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#&, JSValuecxx . . $ QTJSC/JSValue#, PutPropertySlotcxx . . $ QTJSC/PutPropertySlot#&);
185 virtual void putWithAttributescxx . . $ QTJSC/JSGlobalObject#putWithAttributes(3dd2e6313723688d).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSValuecxx . . $ QTJSC/JSValue# value, unsigned attributes);
186
187 virtual void defineGettercxx . . $ QTJSC/JSGlobalObject#defineGetter(413481394bc380b4).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSObjectcxx . . $ QTJSC/JSObject#* getterFunc, unsigned attributes);
188 virtual void defineSettercxx . . $ QTJSC/JSGlobalObject#defineSetter(413481394bc380b4).(ExecStatecxx . . $ QTJSC/ExecState#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSObjectcxx . . $ QTJSC/JSObject#* setterFunc, unsigned attributes);
189
190 // Linked list of all global objects that use the same JSGlobalData.
191 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#*& headcxx . . $ QTJSC/JSGlobalObject#head(8779cf17d395caf7).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->globalData->head; }
192 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* nextcxx . . $ QTJSC/JSGlobalObject#next(4418983463e2bc6a).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->nextcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#next.; }
193
194 // The following accessors return pristine values, even if a script
195 // replaces the global object's associated property.
196
197 RegExpConstructorcxx . . $ QTJSC/RegExpConstructor#* regExpConstructorcxx . . $ QTJSC/JSGlobalObject#regExpConstructor(a3203704c8a72071).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->regExpConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpConstructor.; }
198
199 ErrorConstructorcxx . . $ QTJSC/ErrorConstructor#* errorConstructorcxx . . $ QTJSC/JSGlobalObject#errorConstructor(92366672aa518b28).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->errorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#errorConstructor.; }
200 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* evalErrorConstructorcxx . . $ QTJSC/JSGlobalObject#evalErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->evalErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalErrorConstructor.; }
201 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* rangeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#rangeErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->rangeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#rangeErrorConstructor.; }
202 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* referenceErrorConstructorcxx . . $ QTJSC/JSGlobalObject#referenceErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->referenceErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#referenceErrorConstructor.; }
203 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* syntaxErrorConstructorcxx . . $ QTJSC/JSGlobalObject#syntaxErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->syntaxErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#syntaxErrorConstructor.; }
204 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* typeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#typeErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->typeErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#typeErrorConstructor.; }
205 NativeErrorConstructorcxx . . $ QTJSC/NativeErrorConstructor#* URIErrorConstructorcxx . . $ QTJSC/JSGlobalObject#URIErrorConstructor(199f78cbecdae54b).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->URIErrorConstructorcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#URIErrorConstructor.; }
206
207 GlobalEvalFunctioncxx . . $ QTJSC/GlobalEvalFunction#* evalFunctioncxx . . $ QTJSC/JSGlobalObject#evalFunction(e562b6bc9bf122fb).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->evalFunctioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#evalFunction.; }
208
209 ObjectPrototypecxx . . $ QTJSC/ObjectPrototype#* objectPrototypecxx . . $ QTJSC/JSGlobalObject#objectPrototype(9a76308418b45a37).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->objectPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#objectPrototype.; }
210 FunctionPrototypecxx . . $ QTJSC/FunctionPrototype#* functionPrototypecxx . . $ QTJSC/JSGlobalObject#functionPrototype(bd8f2b66a61ace57).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->functionPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#functionPrototype.; }
211 ArrayPrototypecxx . . $ QTJSC/ArrayPrototype#* arrayPrototypecxx . . $ QTJSC/JSGlobalObject#arrayPrototype(63f1e76dc3d865a3).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->arrayPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#arrayPrototype.; }
212 BooleanPrototypecxx . . $ QTJSC/BooleanPrototype#* booleanPrototypecxx . . $ QTJSC/JSGlobalObject#booleanPrototype(f1f627b0957482eb).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->booleanPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#booleanPrototype.; }
213 StringPrototypecxx . . $ QTJSC/StringPrototype#* stringPrototypecxx . . $ QTJSC/JSGlobalObject#stringPrototype(c4eaef10a1984443).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->stringPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#stringPrototype.; }
214 NumberPrototypecxx . . $ QTJSC/NumberPrototype#* numberPrototypecxx . . $ QTJSC/JSGlobalObject#numberPrototype(4c03e88d2d97b2f).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->numberPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#numberPrototype.; }
215 DatePrototypecxx . . $ QTJSC/DatePrototype#* datePrototypecxx . . $ QTJSC/JSGlobalObject#datePrototype(67c5d8adc7c52485).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->datePrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#datePrototype.; }
216 RegExpPrototypecxx . . $ QTJSC/RegExpPrototype#* regExpPrototypecxx . . $ QTJSC/JSGlobalObject#regExpPrototype(67dde512bba4f030).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->regExpPrototypecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#regExpPrototype.; }
217
218 JSObjectcxx . . $ QTJSC/JSObject#* methodCallDummycxx . . $ QTJSC/JSGlobalObject#methodCallDummy(8ac23ea934d7a115).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->methodCallDummycxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#methodCallDummy.; }
219
220 Structurecxx . . $ QTJSC/Structure#* argumentsStructurecxx . . $ QTJSC/JSGlobalObject#argumentsStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->argumentsStructure.get(); }
221 Structurecxx . . $ QTJSC/Structure#* arrayStructurecxx . . $ QTJSC/JSGlobalObject#arrayStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->arrayStructure.get(); }
222 Structurecxx . . $ QTJSC/Structure#* booleanObjectStructurecxx . . $ QTJSC/JSGlobalObject#booleanObjectStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->booleanObjectStructure.get(); }
223 Structurecxx . . $ QTJSC/Structure#* callbackConstructorStructurecxx . . $ QTJSC/JSGlobalObject#callbackConstructorStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->callbackConstructorStructure.get(); }
224 Structurecxx . . $ QTJSC/Structure#* callbackFunctionStructurecxx . . $ QTJSC/JSGlobalObject#callbackFunctionStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->callbackFunctionStructure.get(); }
225 Structurecxx . . $ QTJSC/Structure#* callbackObjectStructurecxx . . $ QTJSC/JSGlobalObject#callbackObjectStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->callbackObjectStructure.get(); }
226 Structurecxx . . $ QTJSC/Structure#* dateStructurecxx . . $ QTJSC/JSGlobalObject#dateStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->dateStructure.get(); }
227 Structurecxx . . $ QTJSC/Structure#* emptyObjectStructurecxx . . $ QTJSC/JSGlobalObject#emptyObjectStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->emptyObjectStructure.get(); }
228 Structurecxx . . $ QTJSC/Structure#* errorStructurecxx . . $ QTJSC/JSGlobalObject#errorStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->errorStructure.get(); }
229 Structurecxx . . $ QTJSC/Structure#* functionStructurecxx . . $ QTJSC/JSGlobalObject#functionStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->functionStructure.get(); }
230 Structurecxx . . $ QTJSC/Structure#* numberObjectStructurecxx . . $ QTJSC/JSGlobalObject#numberObjectStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->numberObjectStructure.get(); }
231 Structurecxx . . $ QTJSC/Structure#* prototypeFunctionStructurecxx . . $ QTJSC/JSGlobalObject#prototypeFunctionStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->prototypeFunctionStructure.get(); }
232 Structurecxx . . $ QTJSC/Structure#* regExpMatchesArrayStructurecxx . . $ QTJSC/JSGlobalObject#regExpMatchesArrayStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->regExpMatchesArrayStructure.get(); }
233 Structurecxx . . $ QTJSC/Structure#* regExpStructurecxx . . $ QTJSC/JSGlobalObject#regExpStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->regExpStructure.get(); }
234 Structurecxx . . $ QTJSC/Structure#* stringObjectStructurecxx . . $ QTJSC/JSGlobalObject#stringObjectStructure(a25848528202c7a).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->stringObjectStructure.get(); }
235
236 void setProfileGroupcxx . . $ QTJSC/JSGlobalObject#setProfileGroup(cb2f890c2fdad230).(unsigned value) { dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->profileGroupcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#profileGroup. = value; }
237 unsigned profileGroupcxx . . $ QTJSC/JSGlobalObject#profileGroup(ddd8539a2fcdd4ce).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->profileGroupcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#profileGroup.; }
238
239 Debuggercxx . . $ QTJSC/Debugger#* debuggercxx . . $ QTJSC/JSGlobalObject#debugger(1a524ff7b31d81c).() const { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->debuggercxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#debugger.; }
240 void setDebuggercxx . . $ QTJSC/JSGlobalObject#setDebugger(68c3e460158fd0cf).(Debuggercxx . . $ QTJSC/Debugger#* debugger) { dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->debuggercxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#debugger. = debugger; }
241
242 virtual bool supportsProfilingcxx . . $ QTJSC/JSGlobalObject#supportsProfiling(50ce9a9e25b4a850).() const { return false; }
243
244 int recursioncxx . . $ QTJSC/JSGlobalObject#recursion(b126dc7c1de90089).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->recursioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#recursion.; }
245 void incRecursioncxx . . $ QTJSC/JSGlobalObject#incRecursion(49f6e7a06ebc5aa8).() { ++dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->recursioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#recursion.; }
246 void decRecursioncxx . . $ QTJSC/JSGlobalObject#decRecursion(49f6e7a06ebc5aa8).() { --dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->recursioncxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#recursion.; }
247
248 ScopeChaincxx . . $ QTJSC/ScopeChain#& globalScopeChaincxx . . $ QTJSC/JSGlobalObject#globalScopeChain(b239d380c31bc982).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->globalScopeChaincxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#globalScopeChain.; }
249
250 virtual bool isGlobalObjectcxx . . $ QTJSC/JSGlobalObject#isGlobalObject(50ce9a9e25b4a850).() const { return true; }
251
252 virtual ExecStatecxx . . $ QTJSC/ExecState#* globalExeccxx . . $ QTJSC/JSGlobalObject#globalExec(27c3d7386a195136).();
253
254 virtual bool shouldInterruptScriptcxx . . $ QTJSC/JSGlobalObject#shouldInterruptScript(50ce9a9e25b4a850).() const { return true; }
255
256 virtual bool allowsAccessFromcxx . . $ QTJSC/JSGlobalObject#allowsAccessFrom(d2aa02be318143ea).(const JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#*) const { return true; }
257
258 virtual bool isDynamicScopecxx . . $ QTJSC/JSGlobalObject#isDynamicScope(50ce9a9e25b4a850).() const;
259
260 HashSet<GlobalCodeBlock*>& codeBlockscxx . . $ QTJSC/JSGlobalObject#codeBlocks(ffa05e89dbf2c50f).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->codeBlocks; }
261
262 void copyGlobalsFromcxx . . $ QTJSC/JSGlobalObject#copyGlobalsFrom(95adc9a98330715f).(RegisterFilecxx . . $ QTJSC/RegisterFile#&);
263 void copyGlobalsTocxx . . $ QTJSC/JSGlobalObject#copyGlobalsTo(95adc9a98330715f).(RegisterFilecxx . . $ QTJSC/RegisterFile#&);
264
265 void resetPrototypecxx . . $ QTJSC/JSGlobalObject#resetPrototype(5c2ac18db087b3e6).(JSValuecxx . . $ QTJSC/JSValue# prototype);
266
267 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalDatacxx . . $ QTJSC/JSGlobalObject#globalData(a2bcd21f8a8ecac2).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->globalData.get(); }
268 JSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#* dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).() const { return static_cast<JSGlobalObjectData*>(JSVariableObject::d); }
269
270 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> createStructurecxx . . $ QTJSC/JSGlobalObject#createStructure(da75fbe5e97e240f).(JSValuecxx . . $ QTJSC/JSValue# prototype)
271 {
272 return Structure::create(prototype, TypeInfocxx . . $ QTJSC/TypeInfo#(ObjectTypecxx . . $ QTJSC/ObjectType., StructureFlagscxx . . $ QTJSC/JSGlobalObject#StructureFlags.));
273 }
274
275 double weakRandomNumbercxx . . $ QTJSC/JSGlobalObject#weakRandomNumber(31fa7155c10fdd13).() { return dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->weakRandomcxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#weakRandom..getcxx . . $ QTJSC/WeakRandom#get(31fa7155c10fdd13).(); }
276 protected:
277
278 static const unsigned StructureFlagscxx . . $ QTJSC/JSGlobalObject#StructureFlags. = OverridesGetOwnPropertySlotcxx . . $ QTJSC/OverridesGetOwnPropertySlot. | OverridesMarkChildrencxx . . $ QTJSC/OverridesMarkChildren. | OverridesGetPropertyNamescxx . . $ QTJSC/OverridesGetPropertyNames. | JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::StructureFlagscxx . . $ QTJSC/JSVariableObject#StructureFlags.;
279
280 struct GlobalPropertyInfocxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo# {
281 GlobalPropertyInfocxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#GlobalPropertyInfo(10adf5710ac333de).(const Identifiercxx . . $ QTJSC/Identifier#& i, JSValuecxx . . $ QTJSC/JSValue# v, unsigned a)
282 : identifier(i)
283 , valuecxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#value.(v)
284 , attributescxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#attributes.(a)
285 {
286 }
287
288 const Identifiercxx . . $ QTJSC/Identifier# identifiercxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#identifier.;
289 JSValuecxx . . $ QTJSC/JSValue# valuecxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#value.;
290 unsigned attributescxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#attributes.;
291 };
292 void addStaticGlobalscxx . . $ QTJSC/JSGlobalObject#addStaticGlobals(2902b6ee39e381b).(GlobalPropertyInfocxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#*, int count);
293
294 private:
295 static void destroyJSGlobalObjectDatacxx . . $ QTJSC/JSGlobalObject#destroyJSGlobalObjectData(5d22bdacc48458e8).(void*);
296
297 // FIXME: Fold reset into init.
298 void initcxx . . $ QTJSC/JSGlobalObject#init(aa1c69ebc68b9201).(JSObjectcxx . . $ QTJSC/JSObject#* thisValue);
299 void resetcxx . . $ QTJSC/JSGlobalObject#reset(5c2ac18db087b3e6).(JSValuecxx . . $ QTJSC/JSValue# prototype);
300
301 void setRegisterscxx . . $ QTJSC/JSGlobalObject#setRegisters(3f742f0ef23e53d4).(Registercxx . . $ QTJSC/Register#* registers, Registercxx . . $ QTJSC/Register#* registerArray, size_tcxx . . $ size_t# count);
302
303 void* operatorcxx . . $ QTJSC/JSGlobalObject#`operator new`(bfcfa4d6b7f7ef64). new(size_tcxx . . $ size_t#); // can only be allocated with JSGlobalData
304 };
305
306 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* asGlobalObjectcxx . . $ QTJSC/asGlobalObject(da74ea762f2b2596).(JSValuecxx . . $ QTJSC/JSValue#);
307
308 inline JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* asGlobalObjectcxx . . $ QTJSC/asGlobalObject(da74ea762f2b2596).(JSValuecxx . . $ QTJSC/JSValue# value)
309 {
310 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(asObject(value)->isGlobalObject());
311 return static_cast<JSGlobalObject*>(asObject(value));
312 }
313
314 inline void JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::setRegisterscxx . . $ QTJSC/JSGlobalObject#setRegisters(3f742f0ef23e53d4).(Registercxx . . $ QTJSC/Register#* registers, Registercxx . . $ QTJSC/Register#* registerArray, size_tcxx . . $ size_t# count)
315 {
316 JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::setRegisterscxx . . $ QTJSC/JSVariableObject#setRegisters(db765aed4a7dcca8).(registers, registerArray);
317 dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->registerArraySizecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#registerArraySize. = count;
318 }
319
320 inline void JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::addStaticGlobalscxx . . $ QTJSC/JSGlobalObject#addStaticGlobals(2902b6ee39e381b).(GlobalPropertyInfocxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#* globals, int count)
321 {
322 size_tcxx . . $ size_t# oldSize = dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->registerArraySizecxx . . $ QTJSC/JSGlobalObject#JSGlobalObjectData#registerArraySize.;
323 size_tcxx . . $ size_t# newSize = oldSize + count;
324 Registercxx . . $ QTJSC/Register#* registerArray = new Registercxx . . $ QTJSC/Register#[newSize];
325 if (dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->registerArray)
326 memcpy(registerArray + count, dcxx . . $ QTJSC/JSGlobalObject#d(52d46a1ce1a66a94).()->registerArray.get(), oldSize * sizeof(Registercxx . . $ QTJSC/Register#));
327 setRegisterscxx . . $ QTJSC/JSGlobalObject#setRegisters(3f742f0ef23e53d4).(registerArray + newSize, registerArray, newSize);
328
329 for (int i = 0, index = -static_cast<int>(oldSize) - 1; i < count; ++i, --index) {
330 GlobalPropertyInfocxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#& global = globals[i];
331 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(global.attributes & DontDelete);
332 SymbolTableEntrycxx . . $ QTJSC/SymbolTableEntry# newEntrycxx . . $ QTJSC/SymbolTableEntry#SymbolTableEntry(c8dafc4a64bf4a1c).(index, global.attributescxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#attributes.);
333 symbolTablecxx . . $ QTJSC/JSVariableObject#symbolTable(322f943048330fa4).().add(global.identifier.ustring().rep(), newEntry);
334 registerAtcxx . . $ QTJSC/JSVariableObject#registerAt(a26ae29072816692).(index) = global.valuecxx . . $ QTJSC/JSGlobalObject#GlobalPropertyInfo#value.;
335 }
336 }
337
338 inline bool JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::getOwnPropertySlotcxx . . $ QTJSC/JSGlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, PropertySlotcxx . . $ QTJSC/PropertySlot#& slot)
339 {
340 if (JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::getOwnPropertySlotcxx . . $ QTJSC/JSGlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(exec, propertyName, slot))
341 return true;
342 return symbolTableGetcxx . . $ QTJSC/JSVariableObject#symbolTableGet(2e9eebcaebd87d2b).(propertyName, slot);
343 }
344
345 inline bool JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::getOwnPropertyDescriptorcxx . . $ QTJSC/JSGlobalObject#getOwnPropertyDescriptor(dce4ef7012294c32).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#& descriptor)
346 {
347 if (symbolTableGetcxx . . $ QTJSC/JSVariableObject#symbolTableGet(2e9eebcaebd87d2b).(propertyName, descriptor))
348 return true;
349 return JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::getOwnPropertyDescriptorcxx . . $ QTJSC/JSObject#getOwnPropertyDescriptor(dce4ef7012294c32).(exec, propertyName, descriptor);
350 }
351
352 inline bool JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::hasOwnPropertyForWritecxx . . $ QTJSC/JSGlobalObject#hasOwnPropertyForWrite(13154ef9bddc9416).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName)
353 {
354 PropertySlotcxx . . $ QTJSC/PropertySlot# slotcxx . . $ QTJSC/PropertySlot#PropertySlot(49f6e7a06ebc5aa8).;
355 if (JSVariableObjectcxx . . $ QTJSC/JSVariableObject#::getOwnPropertySlotcxx . . $ QTJSC/JSGlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(exec, propertyName, slot))
356 return true;
357 bool slotIsWriteable;
358 return symbolTableGetcxx . . $ QTJSC/JSVariableObject#symbolTableGet(2e9eebcaebd87d2b).(propertyName, slot, slotIsWriteable);
359 }
360
361 inline JSValuecxx . . $ QTJSC/JSValue# Structurecxx . . $ QTJSC/Structure#::prototypeForLookupcxx . . $ QTJSC/Structure#prototypeForLookup(3edd4bd77d4e7240).(ExecStatecxx . . $ QTJSC/ExecState#* exec) const
362 {
363 if (typeInfocxx . . $ QTJSC/Structure#typeInfo(2e356ef879c79f0c).().typecxx . . $ QTJSC/TypeInfo#type(81c355aa0b104834).() == ObjectTypecxx . . $ QTJSC/ObjectType.)
364 return m_prototypecxx . . $ QTJSC/Structure#m_prototype.;
365
366 #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE32)
367 if (typeInfo().type() == StringType)
368 return exec->lexicalGlobalObject()->stringPrototype();
369
370 ASSERT(typeInfo().type() == NumberType);
371 return exec->lexicalGlobalObject()->numberPrototype();
372 #else
373 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(typeInfo().type() == StringType);
374 return exec->lexicalGlobalObjectcxx . . $ QTJSC/ExecState#lexicalGlobalObject(3d50c730b5e26899).()->stringPrototypecxx . . $ QTJSC/JSGlobalObject#stringPrototype(c4eaef10a1984443).();
375 #endif
376 }
377
378 inline StructureChaincxx . . $ QTJSC/StructureChain#* Structurecxx . . $ QTJSC/Structure#::prototypeChaincxx . . $ QTJSC/Structure#prototypeChain(92d47f80ba87ca5).(ExecStatecxx . . $ QTJSC/ExecState#* exec) const
379 {
380 // We cache our prototype chain so our clients can share it.
381 if (!isValidcxx . . $ QTJSC/Structure#isValid(2d14ee1d14b9554c).(exec, m_cachedPrototypeChain.get())) {
382 JSValuecxx . . $ QTJSC/JSValue# prototype = prototypeForLookupcxx . . $ QTJSC/Structure#prototypeForLookup(3edd4bd77d4e7240).(exec);
383 m_cachedPrototypeChain = StructureChain::create(prototype.isNull() ? 0 : asObject(prototype)->structure());
384 }
385 return m_cachedPrototypeChain.get();
386 }
387
388 inline bool Structurecxx . . $ QTJSC/Structure#::isValidcxx . . $ QTJSC/Structure#isValid(2d14ee1d14b9554c).(ExecStatecxx . . $ QTJSC/ExecState#* exec, StructureChaincxx . . $ QTJSC/StructureChain#* cachedPrototypeChain) const
389 {
390 if (!cachedPrototypeChain)
391 return false;
392
393 JSValuecxx . . $ QTJSC/JSValue# prototype = prototypeForLookupcxx . . $ QTJSC/Structure#prototypeForLookup(3edd4bd77d4e7240).(exec);
394 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#>* cachedStructure = cachedPrototypeChain->headcxx . . $ QTJSC/StructureChain#head(f47b224c09a68d3a).();
395 while(*cachedStructure && !prototype.isNullcxx . . $ QTJSC/JSValue#isNull(50ce9a9e25b4a850).()) {
396 if (asObjectcxx . . $ QTJSC/asObject(107e81180f8dd622).(prototype)->structurecxx . . $ QTJSC/JSCell#structure(a25848528202c7a).() !=cxx . . $ QTJSC/`operator!=`(38b530dfd324fb30). *cachedStructure)
397 return false;
398 ++cachedStructure;
399 prototype =cxx . . $ QTJSC/JSValue#`operator=`(5dfb8b6405afb35f). asObjectcxx . . $ QTJSC/asObject(107e81180f8dd622).(prototype)->prototypecxx . . $ QTJSC/JSObject#prototype(888c053acf364da1).();
400 }
401 return prototype.isNullcxx . . $ QTJSC/JSValue#isNull(50ce9a9e25b4a850).() && !*cachedStructure;
402 }
403
404 inline JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* ExecStatecxx . . $ QTJSC/ExecState#::dynamicGlobalObjectcxx . . $ QTJSC/ExecState#dynamicGlobalObject(4418983463e2bc6a).()
405 {
406 if (this == lexicalGlobalObjectcxx . . $ QTJSC/ExecState#lexicalGlobalObject(3d50c730b5e26899).()->globalExeccxx . . $ QTJSC/JSGlobalObject#globalExec(27c3d7386a195136).())
407 return lexicalGlobalObjectcxx . . $ QTJSC/ExecState#lexicalGlobalObject(3d50c730b5e26899).();
408
409 // For any ExecState that's not a globalExec, the
410 // dynamic global object must be set since code is running
411 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(globalData().dynamicGlobalObject);
412 return globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).().dynamicGlobalObjectcxx . . $ QTJSC/JSGlobalData#dynamicGlobalObject.;
413 }
414
415 inline JSObjectcxx . . $ QTJSC/JSObject#* constructEmptyObjectcxx . . $ QTJSC/constructEmptyObject(dc025d143f56633c).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
416 {
417 return new (exec) JSObject(exec->lexicalGlobalObject()->emptyObjectStructure());
418 }
419
420 inline JSArraycxx . . $ QTJSC/JSArray#* constructEmptyArraycxx . . $ QTJSC/constructEmptyArray(90c94948c9750944).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
421 {
422 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure());
423 }
424
425 inline JSArraycxx . . $ QTJSC/JSArray#* constructEmptyArraycxx . . $ QTJSC/constructEmptyArray(ee9748ca228842e9).(ExecStatecxx . . $ QTJSC/ExecState#* exec, unsigned initialLength)
426 {
427 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), initialLength);
428 }
429
430 inline JSArraycxx . . $ QTJSC/JSArray#* constructArraycxx . . $ QTJSC/constructArray(26dfac2b16a9902f).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSValuecxx . . $ QTJSC/JSValue# singleItemValue)
431 {
432 MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer# valuescxx . . $ QTJSC/MarkedArgumentBuffer#MarkedArgumentBuffer(49f6e7a06ebc5aa8).;
433 values.appendcxx . . $ QTJSC/MarkedArgumentBuffer#append(5c2ac18db087b3e6).(singleItemValue);
434 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), values);
435 }
436
437 inline JSArraycxx . . $ QTJSC/JSArray#* constructArraycxx . . $ QTJSC/constructArray(9e370d15c7fde85d).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const ArgListcxx . . $ QTJSC/ArgList#& values)
438 {
439 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), values);
440 }
441
442 class DynamicGlobalObjectScopecxx . . $ QTJSC/DynamicGlobalObjectScope# : public Noncopyablecxx . . $ Noncopyable# {
443 public:
444 DynamicGlobalObjectScopecxx . . $ QTJSC/DynamicGlobalObjectScope#DynamicGlobalObjectScope(9d5795483a2927e0).(CallFramecxx . . $ QTJSC/CallFrame#* callFrame, JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* dynamicGlobalObject)
445 : m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot.(callFrame->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).().dynamicGlobalObjectcxx . . $ QTJSC/JSGlobalData#dynamicGlobalObject.)
446 , m_savedDynamicGlobalObjectcxx . . $ QTJSC/DynamicGlobalObjectScope#m_savedDynamicGlobalObject.(m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot.)
447 {
448 if (!m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot.) {
449 m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot. = dynamicGlobalObject;
450
451 // Reset the date cache between JS invocations to force the VM
452 // to observe time zone changes.
453 callFrame->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).().resetDateCachecxx . . $ QTJSC/JSGlobalData#resetDateCache(49f6e7a06ebc5aa8).();
454 }
455 }
456
457 ~cxx . . $ QTJSC/DynamicGlobalObjectScope#`~DynamicGlobalObjectScope`(49f6e7a06ebc5aa8).DynamicGlobalObjectScopecxx . . $ QTJSC/DynamicGlobalObjectScope#()
458 {
459 m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot. = m_savedDynamicGlobalObjectcxx . . $ QTJSC/DynamicGlobalObjectScope#m_savedDynamicGlobalObject.;
460 }
461
462 private:
463 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#*& m_dynamicGlobalObjectSlotcxx . . $ QTJSC/DynamicGlobalObjectScope#m_dynamicGlobalObjectSlot.;
464 JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* m_savedDynamicGlobalObjectcxx . . $ QTJSC/DynamicGlobalObjectScope#m_savedDynamicGlobalObject.;
465 };
466
467 } // namespace JSC
468
469 #endif // JSGlobalObject_h