Changeset 87316 in webkit
- Timestamp:
- May 25, 2011 12:37:18 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r87308 r87316 1 2011-05-24 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Geoffrey Garen. 4 5 Removed MarkSetProperties because it was unused 6 https://bugs.webkit.org/show_bug.cgi?id=61418 7 8 * heap/MarkStack.h: 9 (JSC::MarkSet::MarkSet): 10 (JSC::MarkStack::append): 11 * runtime/JSActivation.cpp: 12 (JSC::JSActivation::visitChildren): 13 * runtime/JSArray.h: 14 (JSC::JSArray::visitChildrenDirect): 15 * runtime/JSPropertyNameIterator.cpp: 16 (JSC::JSPropertyNameIterator::visitChildren): 17 * runtime/WriteBarrier.h: 18 (JSC::MarkStack::appendValues): 19 1 20 2011-05-25 Oliver Hunt <oliver@apple.com> 2 21 -
trunk/Source/JavaScriptCore/heap/MarkStack.h
r87230 r87316 44 44 template<typename T> class WriteBarrierBase; 45 45 46 enum MarkSetProperties { MayContainNullValues, NoNullValues };47 48 46 struct MarkSet { 49 MarkSet(JSValue* values, JSValue* end , MarkSetProperties);47 MarkSet(JSValue* values, JSValue* end); 50 48 51 49 JSValue* m_values; 52 50 JSValue* m_end; 53 MarkSetProperties m_properties;54 51 }; 55 52 … … 91 88 92 89 template<typename T> inline void append(WriteBarrierBase<T>*); 93 inline void appendValues(WriteBarrierBase<Unknown>*, size_t count , MarkSetProperties = NoNullValues);90 inline void appendValues(WriteBarrierBase<Unknown>*, size_t count); 94 91 95 92 bool addOpaqueRoot(void*); … … 156 153 } 157 154 158 inline MarkSet::MarkSet(JSValue* values, JSValue* end , MarkSetProperties properties)155 inline MarkSet::MarkSet(JSValue* values, JSValue* end) 159 156 : m_values(values) 160 157 , m_end(end) 161 , m_properties(properties)162 158 { 163 159 ASSERT(values); … … 252 248 validateSet(slot, count); 253 249 #endif 254 m_markSets.append(MarkSet(slot, slot + count , NoNullValues));250 m_markSets.append(MarkSet(slot, slot + count)); 255 251 } 256 252 -
trunk/Source/JavaScriptCore/runtime/JSActivation.cpp
r86499 r87316 74 74 75 75 // Skip the call frame, which sits between the parameters and vars. 76 visitor.appendValues(registerArray + m_numParametersMinusThis + RegisterFile::CallFrameHeaderSize, m_numCapturedVars , MayContainNullValues);76 visitor.appendValues(registerArray + m_numParametersMinusThis + RegisterFile::CallFrameHeaderSize, m_numCapturedVars); 77 77 } 78 78 -
trunk/Source/JavaScriptCore/runtime/JSArray.h
r84556 r87316 193 193 194 194 unsigned usedVectorLength = std::min(storage->m_length, m_vectorLength); 195 visitor.appendValues(storage->m_vector, usedVectorLength , MayContainNullValues);195 visitor.appendValues(storage->m_vector, usedVectorLength); 196 196 197 197 if (SparseArrayValueMap* map = storage->m_sparseValueMap) { -
trunk/Source/JavaScriptCore/runtime/JSPropertyNameIterator.cpp
r86499 r87316 100 100 ASSERT_GC_OBJECT_INHERITS(this, &s_info); 101 101 ASSERT(structure()->typeInfo().overridesVisitChildren()); 102 visitor.appendValues(m_jsStrings.get(), m_jsStringsSize , MayContainNullValues);102 visitor.appendValues(m_jsStrings.get(), m_jsStringsSize); 103 103 if (m_cachedPrototypeChain) 104 104 visitor.append(&m_cachedPrototypeChain); -
trunk/Source/JavaScriptCore/runtime/WriteBarrier.h
r86974 r87316 235 235 } 236 236 237 inline void MarkStack::appendValues(WriteBarrierBase<Unknown>* barriers, size_t count , MarkSetProperties properties)237 inline void MarkStack::appendValues(WriteBarrierBase<Unknown>* barriers, size_t count) 238 238 { 239 239 JSValue* values = barriers->slot(); … … 242 242 #endif 243 243 if (count) 244 m_markSets.append(MarkSet(values, values + count , properties));244 m_markSets.append(MarkSet(values, values + count)); 245 245 } 246 246
Note: See TracChangeset
for help on using the changeset viewer.