Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2008 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 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
14 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
30 #include "JSGlobalData.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h`/
31
32 #include "ArgList.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/ArgList.h`/
33 #include "Collector.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.h`/
34 #include "CommonIdentifiers.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/CommonIdentifiers.h`/
35 #include "FunctionConstructor.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/FunctionConstructor.h`/
36 #include "GetterSetter.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/GetterSetter.h`/
37 #include "Interpreter.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.h`/
38 #include "JSActivation.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSActivation.h`/
39 #include "JSAPIValueWrapper.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h`/
40 #include "JSArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h`/
41 #include "JSByteArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSByteArray.h`/
42 #include "JSClassRef.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/API/JSClassRef.h`/
43 #include "JSFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h`/
44 #include "JSLock.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSLock.h`/
45 #include "JSNotAnObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSNotAnObject.h`/
46 #include "JSPropertyNameIterator.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSPropertyNameIterator.h`/
47 #include "JSStaticScopeObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h`/
48 #include "Lexer.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Lexer.h`/
49 #include "Lookup.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h`/
50 #include "Nodes.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Nodes.h`/
51 #include "Parser.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/Parser.h`/
52
53 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JSC_MULTIPLE_THREADS)
54 #include <wtf/Threading.h>
55 #endif
56
57 #if PLATFORMcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:33:9`!(MAC)
58 #include "ProfilerServer.h"
59 #endif
60
61 using namespace WTFcxx . . $ `<built-in>:467:9`!;
62
63 namespace JSCcxx . . $ `<built-in>:463:9`! {
64
65 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# arrayTablecxx . . $ QTJSC/arrayTable.;
66 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# jsonTablecxx . . $ QTJSC/jsonTable.;
67 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# dateTablecxx . . $ QTJSC/dateTable.;
68 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# mathTablecxx . . $ QTJSC/mathTable.;
69 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# numberTablecxx . . $ QTJSC/numberTable.;
70 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# regExpTablecxx . . $ QTJSC/regExpTable.;
71 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# regExpConstructorTablecxx . . $ QTJSC/regExpConstructorTable.;
72 extern JSC_CONST_HASHTABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Lookup.h:36:9`! HashTablecxx . . $ QTJSC/HashTable# stringTablecxx . . $ QTJSC/stringTable.;
73
74 void* JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsArrayVPtr.;
75 void* JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsByteArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsByteArrayVPtr.;
76 void* JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsStringVPtrcxx . . $ QTJSC/JSGlobalData#jsStringVPtr.;
77 void* JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsFunctionVPtrcxx . . $ QTJSC/JSGlobalData#jsFunctionVPtr.;
78
79 void JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::storeVPtrscxx . . $ QTJSC/JSGlobalData#storeVPtrs(49f6e7a06ebc5aa8).()
80 {
81 CollectorCellcxx . . $ QTJSC/CollectorCell# cell;
82 void* storage = &cell;
83
84 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(JSArray) <= sizeof(CollectorCell), sizeof_JSArray_must_be_less_than_CollectorCell);
85 JSCellcxx . . $ QTJSC/JSCell#* jsArray = new (storage) JSArraycxx . . $ QTJSC/JSArray#(JSArray::createStructure(jsNullcxx . . $ QTJSC/jsNull(ad9afe69d7bf6378).()));
86 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsArrayVPtr. = jsArray->vptrcxx . . $ QTJSC/JSCell#vptr(50c7df7de5344ebb).();
87 jsArray->~JSCellcxx . . $ QTJSC/JSCell#();
88
89 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(JSByteArray) <= sizeof(CollectorCell), sizeof_JSByteArray_must_be_less_than_CollectorCell);
90 JSCellcxx . . $ QTJSC/JSCell#* jsByteArray = new (storage) JSByteArraycxx . . $ QTJSC/JSByteArray#(JSByteArraycxx . . $ QTJSC/JSByteArray#::VPtrStealingHackcxx . . $ QTJSC/JSByteArray#VPtrStealingHack.);
91 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsByteArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsByteArrayVPtr. = jsByteArray->vptrcxx . . $ QTJSC/JSCell#vptr(50c7df7de5344ebb).();
92 jsByteArray->~JSCellcxx . . $ QTJSC/JSCell#();
93
94 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(JSString) <= sizeof(CollectorCell), sizeof_JSString_must_be_less_than_CollectorCell);
95 JSCellcxx . . $ QTJSC/JSCell#* jsString = new (storage) JSStringcxx . . $ QTJSC/JSString#JSString(f1be69e8a5b28139).(JSStringcxx . . $ QTJSC/JSString#::VPtrStealingHackcxx . . $ QTJSC/JSString#VPtrStealingHack.);
96 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsStringVPtrcxx . . $ QTJSC/JSGlobalData#jsStringVPtr. = jsString->vptrcxx . . $ QTJSC/JSCell#vptr(50c7df7de5344ebb).();
97 jsString->~JSCellcxx . . $ QTJSC/JSCell#();
98
99 COMPILE_ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:247:9`!(sizeof(JSFunction) <= sizeof(CollectorCell), sizeof_JSFunction_must_be_less_than_CollectorCell);
100 JSCellcxx . . $ QTJSC/JSCell#* jsFunction = new (storage) JSFunctioncxx . . $ QTJSC/JSFunction#(JSFunction::createStructure(jsNullcxx . . $ QTJSC/jsNull(ad9afe69d7bf6378).()));
101 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::jsFunctionVPtrcxx . . $ QTJSC/JSGlobalData#jsFunctionVPtr. = jsFunction->vptrcxx . . $ QTJSC/JSCell#vptr(50c7df7de5344ebb).();
102 jsFunction->~JSCellcxx . . $ QTJSC/JSCell#();
103 }
104
105 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::JSGlobalDatacxx . . $ QTJSC/JSGlobalData#JSGlobalData(b45ddcbc8423892c).(bool isShared)
106 : isSharedInstancecxx . . $ QTJSC/JSGlobalData#isSharedInstance.(isShared)
107 , clientDatacxx . . $ QTJSC/JSGlobalData#clientData.(0)
108 , arrayTablecxx . . $ QTJSC/JSGlobalData#arrayTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::arrayTablecxx . . $ QTJSC/arrayTable.))
109 , dateTablecxx . . $ QTJSC/JSGlobalData#dateTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::dateTablecxx . . $ QTJSC/dateTable.))
110 , jsonTablecxx . . $ QTJSC/JSGlobalData#jsonTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::jsonTablecxx . . $ QTJSC/jsonTable.))
111 , mathTablecxx . . $ QTJSC/JSGlobalData#mathTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::mathTablecxx . . $ QTJSC/mathTable.))
112 , numberTablecxx . . $ QTJSC/JSGlobalData#numberTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::numberTablecxx . . $ QTJSC/numberTable.))
113 , regExpTablecxx . . $ QTJSC/JSGlobalData#regExpTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::regExpTablecxx . . $ QTJSC/regExpTable.))
114 , regExpConstructorTablecxx . . $ QTJSC/JSGlobalData#regExpConstructorTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::regExpConstructorTablecxx . . $ QTJSC/regExpConstructorTable.))
115 , stringTablecxx . . $ QTJSC/JSGlobalData#stringTable.(fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).<HashTablecxx . . $ QTJSC/HashTable#>(JSCcxx . . $ `<built-in>:463:9`!::stringTablecxx . . $ QTJSC/stringTable.))
116 , activationStructure(JSActivation::createStructure(jsNull()))
117 , interruptedExecutionErrorStructure(JSObject::createStructure(jsNull()))
118 , staticScopeStructure(JSStaticScopeObject::createStructure(jsNull()))
119 , stringStructure(JSString::createStructure(jsNull()))
120 , notAnObjectErrorStubStructure(JSNotAnObjectErrorStub::createStructure(jsNull()))
121 , notAnObjectStructure(JSNotAnObject::createStructure(jsNull()))
122 , propertyNameIteratorStructure(JSPropertyNameIterator::createStructure(jsNull()))
123 , getterSetterStructure(GetterSetter::createStructure(jsNull()))
124 , apiWrapperStructure(JSAPIValueWrapper::createStructure(jsNull()))
125 , dummyMarkableCellStructure(JSCell::createDummyStructure())
126 #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE32)
127 , numberStructure(JSNumberCell::createStructure(jsNull()))
128 #endif
129 , identifierTablecxx . . $ QTJSC/JSGlobalData#identifierTable.(createIdentifierTablecxx . . $ QTJSC/createIdentifierTable(a321ca86ef1b282a).())
130 , propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.(new CommonIdentifierscxx . . $ QTJSC/CommonIdentifiers#CommonIdentifiers(71c44650a83bfd83).(this))
131 , emptyList(new MarkedArgumentBuffer)
132 , lexercxx . . $ QTJSC/JSGlobalData#lexer.(new Lexercxx . . $ QTJSC/Lexer#Lexer(71c44650a83bfd83).(this))
133 , parsercxx . . $ QTJSC/JSGlobalData#parser.(new Parsercxx . . $ QTJSC/Parser#)
134 , interpretercxx . . $ QTJSC/JSGlobalData#interpreter.(new Interpretercxx . . $ QTJSC/Interpreter#Interpreter(49f6e7a06ebc5aa8).)
135 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT)
136 , jitStubs(this)
137 #endif
138 , timeoutCheckercxx . . $ QTJSC/JSGlobalData#timeoutChecker.(new TimeoutCheckercxx . . $ QTJSC/TimeoutChecker#)
139 , heap(this)
140 , initializingLazyNumericCompareFunctioncxx . . $ QTJSC/JSGlobalData#initializingLazyNumericCompareFunction.(false)
141 , headcxx . . $ QTJSC/JSGlobalData#head.(0)
142 , dynamicGlobalObjectcxx . . $ QTJSC/JSGlobalData#dynamicGlobalObject.(0)
143 , functionCodeBlockBeingReparsedcxx . . $ QTJSC/JSGlobalData#functionCodeBlockBeingReparsed.(0)
144 , firstStringifierToMarkcxx . . $ QTJSC/JSGlobalData#firstStringifierToMark.(0)
145 , markStack(jsArrayVPtr)
146 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
147 , mainThreadOnly(false)
148 #endif
149 {
150 #if PLATFORMcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:33:9`!(MAC)
151 startProfilerServerIfNeeded();
152 #endif
153 }
154
155 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::~cxx . . $ QTJSC/JSGlobalData#`~JSGlobalData`(49f6e7a06ebc5aa8).JSGlobalDatacxx . . $ QTJSC/JSGlobalData#()
156 {
157 // By the time this is destroyed, heap.destroy() must already have been called.
158
159 delete interpretercxx . . $ QTJSC/JSGlobalData#interpreter.;
160 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
161 // Zeroing out to make the behavior more predictable when someone attempts to use a deleted instance.
162 interpreter = 0;
163 #endif
164
165 arrayTablecxx . . $ QTJSC/JSGlobalData#arrayTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
166 dateTablecxx . . $ QTJSC/JSGlobalData#dateTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
167 jsonTablecxx . . $ QTJSC/JSGlobalData#jsonTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
168 mathTablecxx . . $ QTJSC/JSGlobalData#mathTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
169 numberTablecxx . . $ QTJSC/JSGlobalData#numberTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
170 regExpTablecxx . . $ QTJSC/JSGlobalData#regExpTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
171 regExpConstructorTablecxx . . $ QTJSC/JSGlobalData#regExpConstructorTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
172 stringTablecxx . . $ QTJSC/JSGlobalData#stringTable.->deleteTablecxx . . $ QTJSC/HashTable#deleteTable(83f5f38750778ac8).();
173
174 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(arrayTablecxx . . $ QTJSC/JSGlobalData#arrayTable.));
175 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(dateTablecxx . . $ QTJSC/JSGlobalData#dateTable.));
176 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(jsonTablecxx . . $ QTJSC/JSGlobalData#jsonTable.));
177 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(mathTablecxx . . $ QTJSC/JSGlobalData#mathTable.));
178 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(numberTablecxx . . $ QTJSC/JSGlobalData#numberTable.));
179 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(regExpTablecxx . . $ QTJSC/JSGlobalData#regExpTable.));
180 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(regExpConstructorTablecxx . . $ QTJSC/JSGlobalData#regExpConstructorTable.));
181 fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(const_cast<HashTablecxx . . $ QTJSC/HashTable#*>(stringTablecxx . . $ QTJSC/JSGlobalData#stringTable.));
182
183 delete parsercxx . . $ QTJSC/JSGlobalData#parser.;
184 delete lexercxx . . $ QTJSC/JSGlobalData#lexer.;
185 delete timeoutCheckercxx . . $ QTJSC/JSGlobalData#timeoutChecker.;
186
187 deleteAllValuescxx . . $ QTWTF/deleteAllValues(235734144632e3c0).(opaqueJSClassData);
188
189 delete emptyList;
190
191 delete propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.;
192 deleteIdentifierTablecxx . . $ QTJSC/deleteIdentifierTable(1628e5553183b104).(identifierTablecxx . . $ QTJSC/JSGlobalData#identifierTable.);
193
194 delete clientDatacxx . . $ QTJSC/JSGlobalData#clientData.;
195 }
196
197 PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::createNonDefaultcxx . . $ QTJSC/JSGlobalData#createNonDefault(a01f03c419565429).()
198 {
199 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new JSGlobalDatacxx . . $ QTJSC/JSGlobalData#JSGlobalData(b45ddcbc8423892c).(false));
200 }
201
202 PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::createcxx . . $ QTJSC/JSGlobalData#create(a01f03c419565429).()
203 {
204 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData = new JSGlobalDatacxx . . $ QTJSC/JSGlobalData#JSGlobalData(b45ddcbc8423892c).(false);
205 setDefaultIdentifierTablecxx . . $ QTJSC/setDefaultIdentifierTable(1628e5553183b104).(globalData->identifierTablecxx . . $ QTJSC/JSGlobalData#identifierTable.);
206 setCurrentIdentifierTablecxx . . $ QTJSC/setCurrentIdentifierTable(ea78c35e65f5567b).(globalData->identifierTablecxx . . $ QTJSC/JSGlobalData#identifierTable.);
207 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(globalData);
208 }
209
210 PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::createLeakedcxx . . $ QTJSC/JSGlobalData#createLeaked(a01f03c419565429).()
211 {
212 Structurecxx . . $ QTJSC/Structure#::startIgnoringLeakscxx . . $ QTJSC/Structure#startIgnoringLeaks(49f6e7a06ebc5aa8).();
213 RefPtrcxx . . $ RefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> data = create();
214 Structurecxx . . $ QTJSC/Structure#::stopIgnoringLeakscxx . . $ QTJSC/Structure#stopIgnoringLeaks(49f6e7a06ebc5aa8).();
215 return data.release();
216 }
217
218 bool JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::sharedInstanceExistscxx . . $ QTJSC/JSGlobalData#sharedInstanceExists(c9857a73d68e59ba).()
219 {
220 return sharedInstanceInternalcxx . . $ QTJSC/JSGlobalData#sharedInstanceInternal(84a0cfc7cf381e5).();
221 }
222
223 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#& JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::sharedInstancecxx . . $ QTJSC/JSGlobalData#sharedInstance(206080f6992ec97a).()
224 {
225 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*& instance = sharedInstanceInternalcxx . . $ QTJSC/JSGlobalData#sharedInstanceInternal(84a0cfc7cf381e5).();
226 if (!instance) {
227 instance = new JSGlobalDatacxx . . $ QTJSC/JSGlobalData#JSGlobalData(b45ddcbc8423892c).(true);
228 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JSC_MULTIPLE_THREADS)
229 instance->makeUsableFromMultipleThreads();
230 #endif
231 }
232 return *instance;
233 }
234
235 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*& JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::sharedInstanceInternalcxx . . $ QTJSC/JSGlobalData#sharedInstanceInternal(84a0cfc7cf381e5).()
236 {
237 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(JSLock::currentThreadIsHoldingLock());
238 static JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* sharedInstance;
239 return sharedInstance;
240 }
241
242 // FIXME: We can also detect forms like v1 < v2 ? -1 : 0, reverse comparison, etc.
243 const Vector<Instruction>& JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::numericCompareFunctioncxx . . $ QTJSC/JSGlobalData#numericCompareFunction(93ebcbb3b2ed71ba).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
244 {
245 if (!lazyNumericCompareFunction.size() && !initializingLazyNumericCompareFunction) {
246 initializingLazyNumericCompareFunctioncxx . . $ QTJSC/JSGlobalData#initializingLazyNumericCompareFunction. = true;
247 RefPtrcxx . . $ RefPtr#<FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#> function = FunctionExecutable::fromGlobalCode(Identifier(exec, "numericCompare"), exec, 0, makeSource(UString("(function (v1, v2) { return v1 - v2; })")), 0, 0);
248 lazyNumericCompareFunction = function->bytecode(exec, exec->scopeChain()).instructions();
249 initializingLazyNumericCompareFunctioncxx . . $ QTJSC/JSGlobalData#initializingLazyNumericCompareFunction. = false;
250 }
251
252 return lazyNumericCompareFunction;
253 }
254
255 JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::ClientDatacxx . . $ QTJSC/JSGlobalData#ClientData#::~cxx . . $ QTJSC/JSGlobalData#ClientData#`~ClientData`(49f6e7a06ebc5aa8).ClientDatacxx . . $ QTJSC/JSGlobalData#ClientData#()
256 {
257 }
258
259 void JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::resetDateCachecxx . . $ QTJSC/JSGlobalData#resetDateCache(49f6e7a06ebc5aa8).()
260 {
261 localTimeOffsetCachecxx . . $ QTJSC/JSGlobalData#localTimeOffsetCache..resetcxx . . $ QTJSC/LocalTimeOffsetCache#reset(49f6e7a06ebc5aa8).();
262 cachedDateString = UString();
263 dateInstanceCache.reset();
264 }
265
266 void JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::startSamplingcxx . . $ QTJSC/JSGlobalData#startSampling(49f6e7a06ebc5aa8).()
267 {
268 interpretercxx . . $ QTJSC/JSGlobalData#interpreter.->startSamplingcxx . . $ QTJSC/Interpreter#startSampling(49f6e7a06ebc5aa8).();
269 }
270
271 void JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::stopSamplingcxx . . $ QTJSC/JSGlobalData#stopSampling(49f6e7a06ebc5aa8).()
272 {
273 interpretercxx . . $ QTJSC/JSGlobalData#interpreter.->stopSamplingcxx . . $ QTJSC/Interpreter#stopSampling(49f6e7a06ebc5aa8).();
274 }
275
276 void JSGlobalDatacxx . . $ QTJSC/JSGlobalData#::dumpSampleDatacxx . . $ QTJSC/JSGlobalData#dumpSampleData(d2cb180e190a9680).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
277 {
278 interpretercxx . . $ QTJSC/JSGlobalData#interpreter.->dumpSampleDatacxx . . $ QTJSC/Interpreter#dumpSampleData(d2cb180e190a9680).(exec);
279 }
280
281 } // namespace JSC