Changeset 56435 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Mar 24, 2010, 12:11:51 AM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r56370 r56435 981 981 } 982 982 983 voidHeap::unprotect(JSValue k)983 bool Heap::unprotect(JSValue k) 984 984 { 985 985 ASSERT(k); … … 987 987 988 988 if (!k.isCell()) 989 return ;990 991 m_protectedValues.remove(k.asCell());989 return false; 990 991 return m_protectedValues.remove(k.asCell()); 992 992 } 993 993 -
trunk/JavaScriptCore/runtime/Collector.h
r56370 r56435 96 96 97 97 void protect(JSValue); 98 void unprotect(JSValue); 98 // Returns true if the value is no longer protected by any protect pointers 99 // (though it may still be alive due to heap/stack references). 100 bool unprotect(JSValue); 99 101 100 102 static Heap* heap(JSValue); // 0 for immediate values
Note:
See TracChangeset
for help on using the changeset viewer.