Changeset 18795 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Jan 11, 2007, 10:25:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r18786 r18795 418 418 } 419 419 420 typedef HashCountedSet<JSCell *> ProtectCountSet;421 422 static ProtectCount Set& protectedValues()423 { 424 static ProtectCount Set staticProtectCountSet;425 return staticProtectCountSet;420 typedef HashCountedSet<JSCell *> ProtectCounts; 421 422 static ProtectCounts& protectedValues() 423 { 424 static ProtectCounts pv; 425 return pv; 426 426 } 427 427 … … 450 450 void Collector::markProtectedObjects() 451 451 { 452 ProtectCount Set& protectedValues = KJS::protectedValues();453 ProtectCount Set::iterator end = protectedValues.end();454 for (ProtectCount Set::iterator it = protectedValues.begin(); it != end; ++it) {452 ProtectCounts& pv = protectedValues(); 453 ProtectCounts::iterator end = pv.end(); 454 for (ProtectCounts::iterator it = pv.begin(); it != end; ++it) { 455 455 JSCell *val = it->first; 456 456 if (!val->marked()) … … 670 670 HashCountedSet<const char*>* counts = new HashCountedSet<const char*>; 671 671 672 ProtectCount Set& protectedValues = KJS::protectedValues();673 ProtectCount Set::iterator end = protectedValues.end();674 for (ProtectCount Set::iterator it = protectedValues.begin(); it != end; ++it)672 ProtectCounts& pv = protectedValues(); 673 ProtectCounts::iterator end = pv.end(); 674 for (ProtectCounts::iterator it = pv.begin(); it != end; ++it) 675 675 counts->add(typeName(it->first)); 676 676
Note:
See TracChangeset
for help on using the changeset viewer.