Debian Codegraph @

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

raw symbols SCIP
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 * 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 COMPUTER, 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 COMPUTER, 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 Structure_h
27 #define Structure_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:27:9`!
28
29 #include "Identifier.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h`/
30 #include "JSType.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSType.h`/
31 #include "JSValue.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h`/
32 #include "PropertyMapHashTable.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/PropertyMapHashTable.h`/
33 #include "PropertyNameArray.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/PropertyNameArray.h`/
34 #include "Protect.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Protect.h`/
35 #include "StructureTransitionTable.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/StructureTransitionTable.h`/
36 #include "JSTypeInfo.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSTypeInfo.h`/
37 #include "UString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h`/
38 #include <wtf/PassRefPtr.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/PassRefPtr.h`/
39 #include <wtf/RefCounted.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RefCounted.h`/
40
41 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
42 #define DUMP_PROPERTYMAP_STATS 0
43 #else
44 #define DUMP_PROPERTYMAP_STATScxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:44:9`! 0
45 #endif
46
47 namespace JSCcxx . . $ QTJSC/ {
48
49 class MarkStackcxx . . $ QTJSC/MarkStack#;
50 class PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#;
51 class PropertyNameArrayDatacxx . . $ QTJSC/PropertyNameArrayData#;
52 class StructureChaincxx . . $ QTJSC/StructureChain#;
53
54 enum EnumerationModecxx . . $ QTJSC/EnumerationMode# {
55 ExcludeDontEnumPropertiescxx . . $ QTJSC/ExcludeDontEnumProperties.,
56 IncludeDontEnumPropertiescxx . . $ QTJSC/IncludeDontEnumProperties.
57 };
58
59 class Structurecxx . . $ QTJSC/Structure# : public RefCounted<Structure> {
60 public:
61 friend class JITcxx . . $ QTJSC/JIT#;
62 friend class StructureTransitionTable;
63 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> createcxx . . $ QTJSC/Structure#create(974a2dfa13397b5).(JSValuecxx . . $ QTJSC/JSValue# prototype, const TypeInfocxx . . $ QTJSC/TypeInfo#& typeInfo)
64 {
65 return adoptRefcxx . . $ adoptRef(e761da608bb8c29c).(new Structurecxx . . $ QTJSC/Structure#Structure(1d44a51be903f81a).(prototype, typeInfo));
66 }
67
68 static void startIgnoringLeakscxx . . $ QTJSC/Structure#startIgnoringLeaks(49f6e7a06ebc5aa8).();
69 static void stopIgnoringLeakscxx . . $ QTJSC/Structure#stopIgnoringLeaks(49f6e7a06ebc5aa8).();
70
71 static void dumpStatisticscxx . . $ QTJSC/Structure#dumpStatistics(49f6e7a06ebc5aa8).();
72
73 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> addPropertyTransitioncxx . . $ QTJSC/Structure#addPropertyTransition(19ad4c8c24dcc83e).(Structurecxx . . $ QTJSC/Structure#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned attributes, JSCellcxx . . $ QTJSC/JSCell#* specificValue, size_t& offset);
74 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> addPropertyTransitionToExistingStructurecxx . . $ QTJSC/Structure#addPropertyTransitionToExistingStructure(19ad4c8c24dcc83e).(Structurecxx . . $ QTJSC/Structure#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned attributes, JSCellcxx . . $ QTJSC/JSCell#* specificValue, size_t& offset);
75 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> removePropertyTransitioncxx . . $ QTJSC/Structure#removePropertyTransition(da3846f25ff07923).(Structurecxx . . $ QTJSC/Structure#*, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, size_t& offset);
76 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> changePrototypeTransitioncxx . . $ QTJSC/Structure#changePrototypeTransition(8aa264da460ed3b0).(Structurecxx . . $ QTJSC/Structure#*, JSValuecxx . . $ QTJSC/JSValue# prototype);
77 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> despecifyFunctionTransitioncxx . . $ QTJSC/Structure#despecifyFunctionTransition(ec50b0781d1a4215).(Structurecxx . . $ QTJSC/Structure#*, const Identifiercxx . . $ QTJSC/Identifier#&);
78 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> addAnonymousSlotsTransitioncxx . . $ QTJSC/Structure#addAnonymousSlotsTransition(751f9511696b41d1).(Structurecxx . . $ QTJSC/Structure#*, unsigned count);
79 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> getterSetterTransitioncxx . . $ QTJSC/Structure#getterSetterTransition(a778feb3ce88ec9c).(Structurecxx . . $ QTJSC/Structure#*);
80 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> toCacheableDictionaryTransitioncxx . . $ QTJSC/Structure#toCacheableDictionaryTransition(a778feb3ce88ec9c).(Structurecxx . . $ QTJSC/Structure#*);
81 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> toUncacheableDictionaryTransitioncxx . . $ QTJSC/Structure#toUncacheableDictionaryTransition(a778feb3ce88ec9c).(Structurecxx . . $ QTJSC/Structure#*);
82
83 PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> flattenDictionaryStructurecxx . . $ QTJSC/Structure#flattenDictionaryStructure(1afadfc984d37344).(JSObjectcxx . . $ QTJSC/JSObject#*);
84
85 ~cxx . . $ QTJSC/Structure#`~Structure`(49f6e7a06ebc5aa8).Structurecxx . . $ QTJSC/Structure#();
86
87 // These should be used with caution.
88 size_t addPropertyWithoutTransitioncxx . . $ QTJSC/Structure#addPropertyWithoutTransition(b2a1ca9f57524f01).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned attributes, JSCellcxx . . $ QTJSC/JSCell#* specificValue);
89 size_t removePropertyWithoutTransitioncxx . . $ QTJSC/Structure#removePropertyWithoutTransition(308a741d5d193e69).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName);
90 void setPrototypeWithoutTransitioncxx . . $ QTJSC/Structure#setPrototypeWithoutTransition(5c2ac18db087b3e6).(JSValuecxx . . $ QTJSC/JSValue# prototype) { m_prototypecxx . . $ QTJSC/Structure#m_prototype. =cxx . . $ QTJSC/JSValue#`operator=`(af0e8a528f82a1b5). prototype; }
91
92 bool isDictionarycxx . . $ QTJSC/Structure#isDictionary(50ce9a9e25b4a850).() const { return m_dictionaryKindcxx . . $ QTJSC/Structure#m_dictionaryKind. != NoneDictionaryKindcxx . . $ QTJSC/Structure#NoneDictionaryKind.; }
93 bool isUncacheableDictionarycxx . . $ QTJSC/Structure#isUncacheableDictionary(50ce9a9e25b4a850).() const { return m_dictionaryKindcxx . . $ QTJSC/Structure#m_dictionaryKind. == UncachedDictionaryKindcxx . . $ QTJSC/Structure#UncachedDictionaryKind.; }
94
95 const TypeInfocxx . . $ QTJSC/TypeInfo#& typeInfocxx . . $ QTJSC/Structure#typeInfo(2e356ef879c79f0c).() const { return m_typeInfocxx . . $ QTJSC/Structure#m_typeInfo.; }
96
97 JSValuecxx . . $ QTJSC/JSValue# storedPrototypecxx . . $ QTJSC/Structure#storedPrototype(888c053acf364da1).() const { return m_prototypecxx . . $ QTJSC/Structure#m_prototype.; }
98 JSValuecxx . . $ QTJSC/JSValue# prototypeForLookupcxx . . $ QTJSC/Structure#prototypeForLookup(3edd4bd77d4e7240).(ExecStatecxx . . $ QTJSC/ExecState#*) const;
99 StructureChaincxx . . $ QTJSC/StructureChain#* prototypeChaincxx . . $ QTJSC/Structure#prototypeChain(92d47f80ba87ca5).(ExecStatecxx . . $ QTJSC/ExecState#*) const;
100
101 Structurecxx . . $ QTJSC/Structure#* previousIDcxx . . $ QTJSC/Structure#previousID(a25848528202c7a).() const { return m_previous.get(); }
102
103 void growPropertyStorageCapacitycxx . . $ QTJSC/Structure#growPropertyStorageCapacity(49f6e7a06ebc5aa8).();
104 unsigned propertyStorageCapacitycxx . . $ QTJSC/Structure#propertyStorageCapacity(ddd8539a2fcdd4ce).() const { return m_propertyStorageCapacitycxx . . $ QTJSC/Structure#m_propertyStorageCapacity.; }
105 unsigned propertyStorageSizecxx . . $ QTJSC/Structure#propertyStorageSize(ddd8539a2fcdd4ce).() const { return m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable. ? m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->keyCountcxx . . $ QTJSC/PropertyMapHashTable#keyCount. + m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->anonymousSlotCountcxx . . $ QTJSC/PropertyMapHashTable#anonymousSlotCount. +cxx . . $ operator+(f3789794639247d3). (m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->deletedOffsets ? m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->deletedOffsets->size() : 0) : m_offsetcxx . . $ QTJSC/Structure#m_offset. + 1; }
106 bool isUsingInlineStoragecxx . . $ QTJSC/Structure#isUsingInlineStorage(50ce9a9e25b4a850).() const;
107
108 size_t getcxx . . $ QTJSC/Structure#get(308a741d5d193e69).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName);
109 size_t getcxx . . $ QTJSC/Structure#get(fef5c6c00deec754).(const UStringcxx . . $ QTJSC/UString#::Repcxx . . $ QTJSC/UString#Rep#* rep, unsigned& attributes, JSCellcxx . . $ QTJSC/JSCell#*& specificValue);
110 size_t getcxx . . $ QTJSC/Structure#get(673d3ee973512ff9).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned& attributes, JSCellcxx . . $ QTJSC/JSCell#*& specificValue)
111 {
112 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!propertyName.isNull());
113 return getcxx . . $ QTJSC/Structure#get(fef5c6c00deec754).(propertyName.ustringcxx . . $ QTJSC/Identifier#ustring(de21ee9ecbd506fd).().repcxx . . $ QTJSC/UString#rep(eff8ac5d0836371c).(), attributes, specificValue);
114 }
115 bool transitionedForcxx . . $ QTJSC/Structure#transitionedFor(991f49f25290885c).(const JSCellcxx . . $ QTJSC/JSCell#* specificValue)
116 {
117 return m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious. == specificValue;
118 }
119 bool hasTransitioncxx . . $ QTJSC/Structure#hasTransition(26b4d1c86e42eebb).(UStringcxx . . $ QTJSC/UString#::Repcxx . . $ QTJSC/UString#Rep#*, unsigned attributes);
120 bool hasTransitioncxx . . $ QTJSC/Structure#hasTransition(a73807d667bcc3c8).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned attributes)
121 {
122 return hasTransitioncxx . . $ QTJSC/Structure#hasTransition(a73807d667bcc3c8).(propertyName._ustring.rep(), attributes);
123 }
124
125 bool hasGetterSetterPropertiescxx . . $ QTJSC/Structure#hasGetterSetterProperties(50ce9a9e25b4a850).() const { return m_hasGetterSetterPropertiescxx . . $ QTJSC/Structure#m_hasGetterSetterProperties.; }
126 void setHasGetterSetterPropertiescxx . . $ QTJSC/Structure#setHasGetterSetterProperties(b45ddcbc8423892c).(bool hasGetterSetterProperties) { m_hasGetterSetterPropertiescxx . . $ QTJSC/Structure#m_hasGetterSetterProperties. = hasGetterSetterProperties; }
127
128 bool hasNonEnumerablePropertiescxx . . $ QTJSC/Structure#hasNonEnumerableProperties(50ce9a9e25b4a850).() const { return m_hasNonEnumerablePropertiescxx . . $ QTJSC/Structure#m_hasNonEnumerableProperties.; }
129
130 bool hasAnonymousSlotscxx . . $ QTJSC/Structure#hasAnonymousSlots(50ce9a9e25b4a850).() const { return m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable. && m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->anonymousSlotCountcxx . . $ QTJSC/PropertyMapHashTable#anonymousSlotCount.; }
131
132 bool isEmptycxx . . $ QTJSC/Structure#isEmpty(50ce9a9e25b4a850).() const { return m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable. ? !m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->keyCountcxx . . $ QTJSC/PropertyMapHashTable#keyCount. : m_offsetcxx . . $ QTJSC/Structure#m_offset. == noOffsetcxx . . $ QTJSC/Structure#noOffset.; }
133
134 void despecifyDictionaryFunctioncxx . . $ QTJSC/Structure#despecifyDictionaryFunction(d7ed36c5537ed570).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName);
135 void disableSpecificFunctionTrackingcxx . . $ QTJSC/Structure#disableSpecificFunctionTracking(49f6e7a06ebc5aa8).() { m_specificFunctionThrashCountcxx . . $ QTJSC/Structure#m_specificFunctionThrashCount. = maxSpecificFunctionThrashCountcxx . . $ QTJSC/Structure#maxSpecificFunctionThrashCount.; }
136
137 void setEnumerationCachecxx . . $ QTJSC/Structure#setEnumerationCache(bc31613059c70bc0).(JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* enumerationCache); // Defined in JSPropertyNameIterator.h.
138 JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* enumerationCachecxx . . $ QTJSC/Structure#enumerationCache(b992a09cd5c80e0b).() { return m_enumerationCache.get(); }
139 void getPropertyNamescxx . . $ QTJSC/Structure#getPropertyNames(e313ad74d8bfac2f).(PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#&, EnumerationModecxx . . $ QTJSC/EnumerationMode# mode);
140
141 private:
142 Structurecxx . . $ QTJSC/Structure#Structure(1d44a51be903f81a).(JSValuecxx . . $ QTJSC/JSValue# prototype, const TypeInfocxx . . $ QTJSC/TypeInfo#&);
143
144 typedef enumcxx . . $ QTJSC/Structure#$anonymous_type_0# {
145 NoneDictionaryKindcxx . . $ QTJSC/Structure#NoneDictionaryKind. = 0,
146 CachedDictionaryKindcxx . . $ QTJSC/Structure#CachedDictionaryKind. = 1,
147 UncachedDictionaryKindcxx . . $ QTJSC/Structure#UncachedDictionaryKind. = 2
148 } DictionaryKindcxx . . $ QTJSC/Structure#DictionaryKind#;
149 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> toDictionaryTransitioncxx . . $ QTJSC/Structure#toDictionaryTransition(4cad7cbafafd13c4).(Structurecxx . . $ QTJSC/Structure#*, DictionaryKindcxx . . $ QTJSC/Structure#DictionaryKind#);
150
151 size_t putcxx . . $ QTJSC/Structure#put(b2a1ca9f57524f01).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName, unsigned attributes, JSCellcxx . . $ QTJSC/JSCell#* specificValue);
152 size_t removecxx . . $ QTJSC/Structure#remove(308a741d5d193e69).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName);
153 void addAnonymousSlotscxx . . $ QTJSC/Structure#addAnonymousSlots(cb2f890c2fdad230).(unsigned slotCount);
154
155 void expandPropertyMapHashTablecxx . . $ QTJSC/Structure#expandPropertyMapHashTable(49f6e7a06ebc5aa8).();
156 void rehashPropertyMapHashTablecxx . . $ QTJSC/Structure#rehashPropertyMapHashTable(49f6e7a06ebc5aa8).();
157 void rehashPropertyMapHashTablecxx . . $ QTJSC/Structure#rehashPropertyMapHashTable(cb2f890c2fdad230).(unsigned newTableSize);
158 void createPropertyMapHashTablecxx . . $ QTJSC/Structure#createPropertyMapHashTable(49f6e7a06ebc5aa8).();
159 void createPropertyMapHashTablecxx . . $ QTJSC/Structure#createPropertyMapHashTable(cb2f890c2fdad230).(unsigned newTableSize);
160 void insertIntoPropertyMapHashTablecxx . . $ QTJSC/Structure#insertIntoPropertyMapHashTable(f1f56f76eb063039).(const PropertyMapEntrycxx . . $ QTJSC/PropertyMapEntry#&);
161 void checkConsistencycxx . . $ QTJSC/Structure#checkConsistency(49f6e7a06ebc5aa8).();
162
163 bool despecifyFunctioncxx . . $ QTJSC/Structure#despecifyFunction(2df46756334b417a).(const Identifiercxx . . $ QTJSC/Identifier#&);
164 void despecifyAllFunctionscxx . . $ QTJSC/Structure#despecifyAllFunctions(49f6e7a06ebc5aa8).();
165
166 PropertyMapHashTablecxx . . $ QTJSC/PropertyMapHashTable#* copyPropertyTablecxx . . $ QTJSC/Structure#copyPropertyTable(cf49f541019b76b).();
167 void materializePropertyMapcxx . . $ QTJSC/Structure#materializePropertyMap(49f6e7a06ebc5aa8).();
168 void materializePropertyMapIfNecessarycxx . . $ QTJSC/Structure#materializePropertyMapIfNecessary(49f6e7a06ebc5aa8).()
169 {
170 if (m_propertyTable || !m_previous)
171 return;
172 materializePropertyMapcxx . . $ QTJSC/Structure#materializePropertyMap(49f6e7a06ebc5aa8).();
173 }
174
175 signed char transitionCountcxx . . $ QTJSC/Structure#transitionCount(4f2304c4a29b870b).() const
176 {
177 // Since the number of transitions is always the same as m_offset, we keep the size of Structure down by not storing both.
178 return m_offsetcxx . . $ QTJSC/Structure#m_offset. == noOffsetcxx . . $ QTJSC/Structure#noOffset. ? 0 : m_offsetcxx . . $ QTJSC/Structure#m_offset. + 1;
179 }
180
181 bool isValidcxx . . $ QTJSC/Structure#isValid(2d14ee1d14b9554c).(ExecStatecxx . . $ QTJSC/ExecState#*, StructureChaincxx . . $ QTJSC/StructureChain#* cachedPrototypeChain) const;
182
183 static const unsigned emptyEntryIndexcxx . . $ QTJSC/Structure#emptyEntryIndex. = 0;
184
185 static const signed char s_maxTransitionLengthcxx . . $ QTJSC/Structure#s_maxTransitionLength. = 64;
186
187 static const signed char noOffsetcxx . . $ QTJSC/Structure#noOffset. = -1;
188
189 static const unsigned maxSpecificFunctionThrashCountcxx . . $ QTJSC/Structure#maxSpecificFunctionThrashCount. = 3;
190
191 TypeInfocxx . . $ QTJSC/TypeInfo# m_typeInfocxx . . $ QTJSC/Structure#m_typeInfo.;
192
193 JSValuecxx . . $ QTJSC/JSValue# m_prototypecxx . . $ QTJSC/Structure#m_prototype.;
194 mutable RefPtrcxx . . $ RefPtr#<StructureChaincxx . . $ QTJSC/StructureChain#> m_cachedPrototypeChaincxx . . $ QTJSC/Structure#m_cachedPrototypeChain.;
195
196 RefPtrcxx . . $ RefPtr#<Structurecxx . . $ QTJSC/Structure#> m_previouscxx . . $ QTJSC/Structure#m_previous.;
197 RefPtrcxx . . $ RefPtr#<UStringcxx . . $ QTJSC/UString#::Repcxx . . $ QTJSC/UString#Rep#> m_nameInPreviouscxx . . $ QTJSC/Structure#m_nameInPrevious.;
198 JSCellcxx . . $ QTJSC/JSCell#* m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious.;
199
200 StructureTransitionTablecxx . . $ QTJSC/StructureTransitionTable# tablecxx . . $ QTJSC/Structure#table.;
201
202 ProtectedPtrcxx . . $ QTJSC/ProtectedPtr#<JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#> m_enumerationCachecxx . . $ QTJSC/Structure#m_enumerationCache.;
203
204 PropertyMapHashTablecxx . . $ QTJSC/PropertyMapHashTable#* m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.;
205
206 uint32_tcxx . . $ uint32_t# m_propertyStorageCapacitycxx . . $ QTJSC/Structure#m_propertyStorageCapacity.;
207 signed char m_offsetcxx . . $ QTJSC/Structure#m_offset.;
208
209 unsigned m_dictionaryKindcxx . . $ QTJSC/Structure#m_dictionaryKind. : 2;
210 bool m_isPinnedPropertyTablecxx . . $ QTJSC/Structure#m_isPinnedPropertyTable. : 1;
211 bool m_hasGetterSetterPropertiescxx . . $ QTJSC/Structure#m_hasGetterSetterProperties. : 1;
212 bool m_hasNonEnumerablePropertiescxx . . $ QTJSC/Structure#m_hasNonEnumerableProperties. : 1;
213 #if COMPILERcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:39:9`!(WINSCW)
214 // Workaround for Symbian WINSCW compiler that cannot resolve unsigned type of the declared
215 // bitfield, when used as argument in make_pair() function calls in structure.ccp.
216 // This bitfield optimization is insignificant for the Symbian emulator target.
217 unsigned m_attributesInPrevious;
218 #else
219 unsigned m_attributesInPreviouscxx . . $ QTJSC/Structure#m_attributesInPrevious. : 7;
220 #endif
221 unsigned m_anonymousSlotsInPreviouscxx . . $ QTJSC/Structure#m_anonymousSlotsInPrevious. : 6;
222 unsigned m_specificFunctionThrashCountcxx . . $ QTJSC/Structure#m_specificFunctionThrashCount. : 2;
223 // 4 free bits
224 };
225
226 inline size_t Structurecxx . . $ QTJSC/Structure#::getcxx . . $ QTJSC/Structure#get(308a741d5d193e69).(const Identifiercxx . . $ QTJSC/Identifier#& propertyName)
227 {
228 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!propertyName.isNull());
229
230 materializePropertyMapIfNecessarycxx . . $ QTJSC/Structure#materializePropertyMapIfNecessary(49f6e7a06ebc5aa8).();
231 if (!m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.)
232 return WTFcxx . . $ QTWTF/::notFoundcxx . . $ QTWTF/notFound.;
233
234 UStringcxx . . $ QTJSC/UString#::Repcxx . . $ QTJSC/UString#Rep#* rep = propertyName._ustring.rep();
235
236 unsigned i = rep->existingHashcxx . . $ QTJSC/UStringImpl#existingHash(ddd8539a2fcdd4ce).();
237
238 #if DUMP_PROPERTYMAP_STATScxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:44:9`!
239 ++numProbes;
240 #endif
241
242 unsigned entryIndex = m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entryIndicescxx . . $ QTJSC/PropertyMapHashTable#entryIndices.[i & m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->sizeMaskcxx . . $ QTJSC/PropertyMapHashTable#sizeMask.];
243 if (entryIndex == emptyEntryIndexcxx . . $ QTJSC/Structure#emptyEntryIndex.)
244 return WTFcxx . . $ QTWTF/::notFoundcxx . . $ QTWTF/notFound.;
245
246 if (rep == m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entriescxx . . $ QTJSC/PropertyMapHashTable#entries(c756222fc8ee585c).()[entryIndex - 1].keycxx . . $ QTJSC/PropertyMapEntry#key.)
247 return m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entriescxx . . $ QTJSC/PropertyMapHashTable#entries(c756222fc8ee585c).()[entryIndex - 1].offsetcxx . . $ QTJSC/PropertyMapEntry#offset.;
248
249 #if DUMP_PROPERTYMAP_STATScxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:44:9`!
250 ++numCollisions;
251 #endif
252
253 unsigned k = 1 | WTFcxx . . $ QTWTF/::doubleHashcxx . . $ QTWTF/doubleHash(2141b656ce2cc063).(rep->existingHashcxx . . $ QTJSC/UStringImpl#existingHash(ddd8539a2fcdd4ce).());
254
255 while (1) {
256 i += k;
257
258 #if DUMP_PROPERTYMAP_STATScxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:44:9`!
259 ++numRehashes;
260 #endif
261
262 entryIndex = m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entryIndicescxx . . $ QTJSC/PropertyMapHashTable#entryIndices.[i & m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->sizeMaskcxx . . $ QTJSC/PropertyMapHashTable#sizeMask.];
263 if (entryIndex == emptyEntryIndexcxx . . $ QTJSC/Structure#emptyEntryIndex.)
264 return WTFcxx . . $ `<built-in>:467:9`!::notFoundcxx . . $ QTWTF/notFound.;
265
266 if (rep == m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entriescxx . . $ QTJSC/PropertyMapHashTable#entries(c756222fc8ee585c).()[entryIndex - 1].keycxx . . $ QTJSC/PropertyMapEntry#key.)
267 return m_propertyTablecxx . . $ QTJSC/Structure#m_propertyTable.->entriescxx . . $ QTJSC/PropertyMapHashTable#entries(c756222fc8ee585c).()[entryIndex - 1].offsetcxx . . $ QTJSC/PropertyMapEntry#offset.;
268 }
269 }
270
271 bool StructureTransitionTablecxx . . $ QTJSC/StructureTransitionTable#::containscxx . . $ QTJSC/StructureTransitionTable#contains(28fb81b8400d08cf).(const StructureTransitionTableHashcxx . . $ QTJSC/StructureTransitionTableHash#::Keycxx . . $ QTJSC/StructureTransitionTableHash#Key#& key, JSCellcxx . . $ QTJSC/JSCell#* specificValue)
272 {
273 if (usingSingleTransitionSlotcxx . . $ QTJSC/StructureTransitionTable#usingSingleTransitionSlot(50ce9a9e25b4a850).()) {
274 Structurecxx . . $ QTJSC/Structure#* existingTransition = singleTransitioncxx . . $ QTJSC/StructureTransitionTable#singleTransition(a25848528202c7a).();
275 return existingTransition && existingTransition->m_nameInPrevious.get() ==cxx . . $ QTJSC/`operator==`(2d6402f246dcc5e5). key.first
276 && existingTransition->m_attributesInPreviouscxx . . $ QTJSC/Structure#m_attributesInPrevious. ==cxx . . $ QTJSC/`operator==`(5e10d8f38fa82016). key.second
277 && (existingTransition->m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious. == specificValue || existingTransition->m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious. == 0);
278 }
279 TransitionTable::iterator find = tablecxx . . $ QTJSC/StructureTransitionTable#table(70498b8359be8eab).()->find(key);
280 if (find ==cxx . . $ QTJSC/`operator==`(5e10d8f38fa82016). tablecxx . . $ QTJSC/StructureTransitionTable#table(70498b8359be8eab).()->end())
281 return false;
282
283 return find->second.first || find->second.second->transitionedFor(specificValue);
284 }
285
286 Structurecxx . . $ QTJSC/Structure#* StructureTransitionTablecxx . . $ QTJSC/StructureTransitionTable#::getcxx . . $ QTJSC/StructureTransitionTable#get(841f6fa3fa5a75a7).(const StructureTransitionTableHashcxx . . $ QTJSC/StructureTransitionTableHash#::Keycxx . . $ QTJSC/StructureTransitionTableHash#Key#& key, JSCellcxx . . $ QTJSC/JSCell#* specificValue) const
287 {
288 if (usingSingleTransitionSlotcxx . . $ QTJSC/StructureTransitionTable#usingSingleTransitionSlot(50ce9a9e25b4a850).()) {
289 Structurecxx . . $ QTJSC/Structure#* existingTransition = singleTransitioncxx . . $ QTJSC/StructureTransitionTable#singleTransition(a25848528202c7a).();
290 if (existingTransition && existingTransition->m_nameInPrevious.get() ==cxx . . $ QTJSC/`operator==`(c70f183144c5bb7d). key.first
291 && existingTransition->m_attributesInPreviouscxx . . $ QTJSC/Structure#m_attributesInPrevious. ==cxx . . $ QTJSC/`operator==`(8208a731c2dadbc2). key.second
292 && (existingTransition->m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious. == specificValue || existingTransition->m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious. == 0))
293 return existingTransition;
294 return 0;
295 }
296
297 Transitioncxx . . $ QTJSC/StructureTransitionTable#Transition# transition = table()->get(key);
298 if (transition.second && transition.second->transitionedFor(specificValue))
299 return transition.second;
300 return transition.first;
301 }
302
303 bool StructureTransitionTablecxx . . $ QTJSC/StructureTransitionTable#::hasTransitioncxx . . $ QTJSC/StructureTransitionTable#hasTransition(8e558fd698e879cf).(const StructureTransitionTableHashcxx . . $ QTJSC/StructureTransitionTableHash#::Keycxx . . $ QTJSC/StructureTransitionTableHash#Key#& key) const
304 {
305 if (usingSingleTransitionSlotcxx . . $ QTJSC/StructureTransitionTable#usingSingleTransitionSlot(50ce9a9e25b4a850).()) {
306 Structurecxx . . $ QTJSC/Structure#* transition = singleTransitioncxx . . $ QTJSC/StructureTransitionTable#singleTransition(a25848528202c7a).();
307 return transition && transition->m_nameInPrevious ==cxx . . $ QTJSC/`operator==`(2a94f8346549a239). key.first
308 && transition->m_attributesInPreviouscxx . . $ QTJSC/Structure#m_attributesInPrevious. ==cxx . . $ QTJSC/`operator==`(bc6534faf07112b1). key.second;
309 }
310 return tablecxx . . $ QTJSC/StructureTransitionTable#table(70498b8359be8eab).()->contains(key);
311 }
312
313 void StructureTransitionTablecxx . . $ QTJSC/StructureTransitionTable#::reifySingleTransitioncxx . . $ QTJSC/StructureTransitionTable#reifySingleTransition(49f6e7a06ebc5aa8).()
314 {
315 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(usingSingleTransitionSlot());
316 Structurecxx . . $ QTJSC/Structure#* existingTransition = singleTransitioncxx . . $ QTJSC/StructureTransitionTable#singleTransition(a25848528202c7a).();
317 TransitionTablecxx . . $ QTJSC/StructureTransitionTable#TransitionTable#* transitionTable = new TransitionTablecxx . . $ QTJSC/StructureTransitionTable#TransitionTable#;
318 setTransitionTablecxx . . $ QTJSC/StructureTransitionTable#setTransitionTable(708aed56fe9ed265).(transitionTable);
319 if (existingTransition) {
320 const unsigned attrsInPrev = existingTransition->m_attributesInPreviouscxx . . $ QTJSC/Structure#m_attributesInPrevious.;
321 addcxx . . $ QTJSC/StructureTransitionTable#add(bc078e7f184dd085).(StructureTransitionTableHash::Key(RefPtrcxx . . $ RefPtr#<UStringcxx . . $ QTJSC/UString#::Repcxx . . $ QTJSC/UString#Rep#>(existingTransition->m_nameInPrevious.get()), attrsInPrev), existingTransition, existingTransition->m_specificValueInPreviouscxx . . $ QTJSC/Structure#m_specificValueInPrevious.);
322 }
323 }
324 } // namespace JSC
325
326 #endif // Structure_h