| 1 | /* |
| 2 | * Copyright (C) 2008, 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 | * |
| 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 | #ifndef JSGlobalData_h |
| 30 | #define JSGlobalData_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:30:9`! |
| 31 | |
| 32 | #include "Collector.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.h`/ |
| 33 | #include "DateInstanceCache.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstanceCache.h`/ |
| 34 | #include "ExecutableAllocator.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h`/ |
| 35 | #include "JITStubs.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h`/ |
| 36 | #include "JSValue.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h`/ |
| 37 | #include "MarkStack.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/MarkStack.h`/ |
| 38 | #include "NumericStrings.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/NumericStrings.h`/ |
| 39 | #include "SmallStrings.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/SmallStrings.h`/ |
| 40 | #include "TimeoutChecker.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.h`/ |
| 41 | #include "WeakRandom.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/WeakRandom.h`/ |
| 42 | #include <wtf/DateMath.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/DateMath.h`/ |
| 43 | #include <wtf/Forward.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Forward.h`/ |
| 44 | #include <wtf/HashMap.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashMap.h`/ |
| 45 | #include <wtf/RefCounted.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RefCounted.h`/ |
| 46 | |
| 47 | struct OpaqueJSClasscxx . . $ OpaqueJSClass#; |
| 48 | struct OpaqueJSClassContextDatacxx . . $ OpaqueJSClassContextData#; |
| 49 | |
| 50 | namespace JSCcxx . . $ QTJSC/ { |
| 51 | |
| 52 | class CodeBlockcxx . . $ QTJSC/CodeBlock#; |
| 53 | class CommonIdentifierscxx . . $ QTJSC/CommonIdentifiers#; |
| 54 | class IdentifierTablecxx . . $ QTJSC/IdentifierTable#; |
| 55 | class Interpretercxx . . $ QTJSC/Interpreter#; |
| 56 | class JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#; |
| 57 | class JSObjectcxx . . $ QTJSC/JSObject#; |
| 58 | class Lexercxx . . $ QTJSC/Lexer#; |
| 59 | class Parsercxx . . $ QTJSC/Parser#; |
| 60 | class Stringifiercxx . . $ QTJSC/Stringifier#; |
| 61 | class Structurecxx . . $ QTJSC/Structure#; |
| 62 | class UStringcxx . . $ QTJSC/UString#; |
| 63 | |
| 64 | struct HashTablecxx . . $ QTJSC/HashTable#; |
| 65 | struct Instructioncxx . . $ QTJSC/Instruction#; |
| 66 | |
| 67 | struct LocalTimeOffsetCachecxx . . $ QTJSC/LocalTimeOffsetCache# { |
| 68 | LocalTimeOffsetCachecxx . . $ QTJSC/LocalTimeOffsetCache#LocalTimeOffsetCache(49f6e7a06ebc5aa8).() |
| 69 | : startcxx . . $ QTJSC/LocalTimeOffsetCache#start.(0.0) |
| 70 | , endcxx . . $ QTJSC/LocalTimeOffsetCache#end.(-1.0) |
| 71 | , incrementcxx . . $ QTJSC/LocalTimeOffsetCache#increment.(0.0) |
| 72 | { |
| 73 | } |
| 74 | |
| 75 | void resetcxx . . $ QTJSC/LocalTimeOffsetCache#reset(49f6e7a06ebc5aa8).() |
| 76 | { |
| 77 | offsetcxx . . $ QTJSC/LocalTimeOffsetCache#offset. =cxx . . $ QTWTF/LocalTimeOffset#`operator=`(570c03fa682bee86). LocalTimeOffsetcxx . . $ LocalTimeOffset#(); |
| 78 | startcxx . . $ QTJSC/LocalTimeOffsetCache#start. = 0.0; |
| 79 | endcxx . . $ QTJSC/LocalTimeOffsetCache#end. = -1.0; |
| 80 | incrementcxx . . $ QTJSC/LocalTimeOffsetCache#increment. = 0.0; |
| 81 | } |
| 82 | |
| 83 | LocalTimeOffsetcxx . . $ LocalTimeOffset# offsetcxx . . $ QTJSC/LocalTimeOffsetCache#offset.; |
| 84 | double startcxx . . $ QTJSC/LocalTimeOffsetCache#start.; |
| 85 | double endcxx . . $ QTJSC/LocalTimeOffsetCache#end.; |
| 86 | double incrementcxx . . $ QTJSC/LocalTimeOffsetCache#increment.; |
| 87 | }; |
| 88 | |
| 89 | class JSGlobalDatacxx . . $ QTJSC/JSGlobalData# : public RefCounted<JSGlobalData> { |
| 90 | public: |
| 91 | struct ClientDatacxx . . $ QTJSC/JSGlobalData#ClientData# { |
| 92 | virtual ~cxx . . $ QTJSC/JSGlobalData#ClientData#`~ClientData`(49f6e7a06ebc5aa8).ClientDatacxx . . $ QTJSC/JSGlobalData#ClientData#() = 0; |
| 93 | #ifdef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`! |
| 94 | virtual void markcxx . . $ QTJSC/JSGlobalData#ClientData#mark(bd9cae851d80a865).(MarkStackcxx . . $ QTJSC/MarkStack#&) {} |
| 95 | virtual void uncaughtExceptioncxx . . $ QTJSC/JSGlobalData#ClientData#uncaughtException(b1b60585cf3bb95).(ExecStatecxx . . $ QTJSC/ExecState#*, unsigned bytecodeOffset, JSValuecxx . . $ QTJSC/JSValue#) = 0; |
| 96 | #endif |
| 97 | }; |
| 98 | |
| 99 | static bool sharedInstanceExistscxx . . $ QTJSC/JSGlobalData#sharedInstanceExists(c9857a73d68e59ba).(); |
| 100 | static JSGlobalDatacxx . . $ QTJSC/JSGlobalData#& sharedInstancecxx . . $ QTJSC/JSGlobalData#sharedInstance(206080f6992ec97a).(); |
| 101 | |
| 102 | static PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> createcxx . . $ QTJSC/JSGlobalData#create(a01f03c419565429).(); |
| 103 | static PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> createLeakedcxx . . $ QTJSC/JSGlobalData#createLeaked(a01f03c419565429).(); |
| 104 | static PassRefPtrcxx . . $ PassRefPtr#<JSGlobalDatacxx . . $ QTJSC/JSGlobalData#> createNonDefaultcxx . . $ QTJSC/JSGlobalData#createNonDefault(a01f03c419565429).(); |
| 105 | ~cxx . . $ QTJSC/JSGlobalData#`~JSGlobalData`(49f6e7a06ebc5aa8).JSGlobalDatacxx . . $ QTJSC/JSGlobalData#(); |
| 106 | |
| 107 | #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JSC_MULTIPLE_THREADS) |
| 108 | // Will start tracking threads that use the heap, which is resource-heavy. |
| 109 | void makeUsableFromMultipleThreads() { heap.makeUsableFromMultipleThreads(); } |
| 110 | #endif |
| 111 | |
| 112 | bool isSharedInstancecxx . . $ QTJSC/JSGlobalData#isSharedInstance.; |
| 113 | ClientDatacxx . . $ QTJSC/JSGlobalData#ClientData#* clientDatacxx . . $ QTJSC/JSGlobalData#clientData.; |
| 114 | |
| 115 | const HashTablecxx . . $ QTJSC/HashTable#* arrayTablecxx . . $ QTJSC/JSGlobalData#arrayTable.; |
| 116 | const HashTablecxx . . $ QTJSC/HashTable#* dateTablecxx . . $ QTJSC/JSGlobalData#dateTable.; |
| 117 | const HashTablecxx . . $ QTJSC/HashTable#* jsonTablecxx . . $ QTJSC/JSGlobalData#jsonTable.; |
| 118 | const HashTablecxx . . $ QTJSC/HashTable#* mathTablecxx . . $ QTJSC/JSGlobalData#mathTable.; |
| 119 | const HashTablecxx . . $ QTJSC/HashTable#* numberTablecxx . . $ QTJSC/JSGlobalData#numberTable.; |
| 120 | const HashTablecxx . . $ QTJSC/HashTable#* regExpTablecxx . . $ QTJSC/JSGlobalData#regExpTable.; |
| 121 | const HashTablecxx . . $ QTJSC/HashTable#* regExpConstructorTablecxx . . $ QTJSC/JSGlobalData#regExpConstructorTable.; |
| 122 | const HashTablecxx . . $ QTJSC/HashTable#* stringTablecxx . . $ QTJSC/JSGlobalData#stringTable.; |
| 123 | |
| 124 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> activationStructurecxx . . $ QTJSC/JSGlobalData#activationStructure.; |
| 125 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> interruptedExecutionErrorStructurecxx . . $ QTJSC/JSGlobalData#interruptedExecutionErrorStructure.; |
| 126 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> staticScopeStructurecxx . . $ QTJSC/JSGlobalData#staticScopeStructure.; |
| 127 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> stringStructurecxx . . $ QTJSC/JSGlobalData#stringStructure.; |
| 128 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> notAnObjectErrorStubStructurecxx . . $ QTJSC/JSGlobalData#notAnObjectErrorStubStructure.; |
| 129 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> notAnObjectStructurecxx . . $ QTJSC/JSGlobalData#notAnObjectStructure.; |
| 130 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> propertyNameIteratorStructurecxx . . $ QTJSC/JSGlobalData#propertyNameIteratorStructure.; |
| 131 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> getterSetterStructurecxx . . $ QTJSC/JSGlobalData#getterSetterStructure.; |
| 132 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> apiWrapperStructurecxx . . $ QTJSC/JSGlobalData#apiWrapperStructure.; |
| 133 | RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> dummyMarkableCellStructurecxx . . $ QTJSC/JSGlobalData#dummyMarkableCellStructure.; |
| 134 | |
| 135 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE32) |
| 136 | RefPtr<Structure> numberStructure; |
| 137 | #endif |
| 138 | |
| 139 | static void storeVPtrscxx . . $ QTJSC/JSGlobalData#storeVPtrs(49f6e7a06ebc5aa8).(); |
| 140 | static JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! void* jsArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsArrayVPtr.; |
| 141 | static JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! void* jsByteArrayVPtrcxx . . $ QTJSC/JSGlobalData#jsByteArrayVPtr.; |
| 142 | static JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! void* jsStringVPtrcxx . . $ QTJSC/JSGlobalData#jsStringVPtr.; |
| 143 | static JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! void* jsFunctionVPtrcxx . . $ QTJSC/JSGlobalData#jsFunctionVPtr.; |
| 144 | |
| 145 | IdentifierTablecxx . . $ QTJSC/IdentifierTable#* identifierTablecxx . . $ QTJSC/JSGlobalData#identifierTable.; |
| 146 | CommonIdentifierscxx . . $ QTJSC/CommonIdentifiers#* propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.; |
| 147 | const MarkedArgumentBuffercxx . . $ QTJSC/MarkedArgumentBuffer#* emptyListcxx . . $ QTJSC/JSGlobalData#emptyList.; // Lists are supposed to be allocated on the stack to have their elements properly marked, which is not the case here - but this list has nothing to mark. |
| 148 | SmallStringscxx . . $ QTJSC/SmallStrings# smallStringscxx . . $ QTJSC/JSGlobalData#smallStrings.; |
| 149 | NumericStringscxx . . $ QTJSC/NumericStrings# numericStringscxx . . $ QTJSC/JSGlobalData#numericStrings.; |
| 150 | DateInstanceCachecxx . . $ QTJSC/DateInstanceCache# dateInstanceCachecxx . . $ QTJSC/JSGlobalData#dateInstanceCache.; |
| 151 | |
| 152 | #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(ASSEMBLER) |
| 153 | ExecutableAllocatorcxx . . $ QTJSC/ExecutableAllocator# executableAllocatorcxx . . $ QTJSC/JSGlobalData#executableAllocator.; |
| 154 | #endif |
| 155 | |
| 156 | Lexercxx . . $ QTJSC/Lexer#* lexercxx . . $ QTJSC/JSGlobalData#lexer.; |
| 157 | Parsercxx . . $ QTJSC/Parser#* parsercxx . . $ QTJSC/JSGlobalData#parser.; |
| 158 | Interpretercxx . . $ QTJSC/Interpreter#* interpretercxx . . $ QTJSC/JSGlobalData#interpreter.; |
| 159 | #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT) |
| 160 | JITThunkscxx . . $ QTJSC/JITThunks# jitStubscxx . . $ QTJSC/JSGlobalData#jitStubs.; |
| 161 | #endif |
| 162 | TimeoutCheckercxx . . $ QTJSC/TimeoutChecker#* timeoutCheckercxx . . $ QTJSC/JSGlobalData#timeoutChecker.; |
| 163 | Heapcxx . . $ QTJSC/Heap# heapcxx . . $ QTJSC/JSGlobalData#heap.; |
| 164 | |
| 165 | JSValuecxx . . $ QTJSC/JSValue# exceptioncxx . . $ QTJSC/JSGlobalData#exception.; |
| 166 | #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JIT) |
| 167 | ReturnAddressPtrcxx . . $ QTJSC/ReturnAddressPtr# exceptionLocationcxx . . $ QTJSC/JSGlobalData#exceptionLocation.; |
| 168 | #endif |
| 169 | |
| 170 | const Vector<Instruction>& numericCompareFunctioncxx . . $ QTJSC/JSGlobalData#numericCompareFunction(93ebcbb3b2ed71ba).(ExecStatecxx . . $ QTJSC/ExecState#*); |
| 171 | Vector<Instruction> lazyNumericCompareFunctioncxx . . $ QTJSC/JSGlobalData#lazyNumericCompareFunction.; |
| 172 | bool initializingLazyNumericCompareFunctioncxx . . $ QTJSC/JSGlobalData#initializingLazyNumericCompareFunction.; |
| 173 | |
| 174 | HashMap<OpaqueJSClass*, OpaqueJSClassContextData*> opaqueJSClassDatacxx . . $ QTJSC/JSGlobalData#opaqueJSClassData.; |
| 175 | |
| 176 | JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* headcxx . . $ QTJSC/JSGlobalData#head.; |
| 177 | JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#* dynamicGlobalObjectcxx . . $ QTJSC/JSGlobalData#dynamicGlobalObject.; |
| 178 | |
| 179 | HashSet<JSObject*> arrayVisitedElementscxx . . $ QTJSC/JSGlobalData#arrayVisitedElements.; |
| 180 | |
| 181 | CodeBlockcxx . . $ QTJSC/CodeBlock#* functionCodeBlockBeingReparsedcxx . . $ QTJSC/JSGlobalData#functionCodeBlockBeingReparsed.; |
| 182 | Stringifiercxx . . $ QTJSC/Stringifier#* firstStringifierToMarkcxx . . $ QTJSC/JSGlobalData#firstStringifierToMark.; |
| 183 | |
| 184 | MarkStackcxx . . $ QTJSC/MarkStack# markStackcxx . . $ QTJSC/JSGlobalData#markStack.; |
| 185 | |
| 186 | LocalTimeOffsetCachecxx . . $ QTJSC/LocalTimeOffsetCache# localTimeOffsetCachecxx . . $ QTJSC/JSGlobalData#localTimeOffsetCache.; |
| 187 | |
| 188 | UStringcxx . . $ QTJSC/UString# cachedDateStringcxx . . $ QTJSC/JSGlobalData#cachedDateString.; |
| 189 | double cachedDateStringValuecxx . . $ QTJSC/JSGlobalData#cachedDateStringValue.; |
| 190 | |
| 191 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 192 | bool mainThreadOnly; |
| 193 | #endif |
| 194 | |
| 195 | void resetDateCachecxx . . $ QTJSC/JSGlobalData#resetDateCache(49f6e7a06ebc5aa8).(); |
| 196 | |
| 197 | void startSamplingcxx . . $ QTJSC/JSGlobalData#startSampling(49f6e7a06ebc5aa8).(); |
| 198 | void stopSamplingcxx . . $ QTJSC/JSGlobalData#stopSampling(49f6e7a06ebc5aa8).(); |
| 199 | void dumpSampleDatacxx . . $ QTJSC/JSGlobalData#dumpSampleData(d2cb180e190a9680).(ExecStatecxx . . $ QTJSC/ExecState#* exec); |
| 200 | private: |
| 201 | JSGlobalDatacxx . . $ QTJSC/JSGlobalData#JSGlobalData(b45ddcbc8423892c).(bool isShared); |
| 202 | static JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*& sharedInstanceInternalcxx . . $ QTJSC/JSGlobalData#sharedInstanceInternal(84a0cfc7cf381e5).(); |
| 203 | void createNativeThunkcxx . . $ QTJSC/JSGlobalData#createNativeThunk(49f6e7a06ebc5aa8).(); |
| 204 | }; |
| 205 | |
| 206 | } // namespace JSC |
| 207 | |
| 208 | #endif // JSGlobalData_h |