Changeset 18811 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Jan 12, 2007, 1:11:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r18795 r18811 418 418 } 419 419 420 typedef HashCountedSet<JSCell *> ProtectCounts;421 422 static ProtectCount s& protectedValues()423 { 424 static ProtectCount s pv;425 return pv;420 typedef HashCountedSet<JSCell*> ProtectCountSet; 421 422 static ProtectCountSet& protectedValues() 423 { 424 static ProtectCountSet staticProtectCountSet; 425 return staticProtectCountSet; 426 426 } 427 427 … … 450 450 void Collector::markProtectedObjects() 451 451 { 452 ProtectCount s& pv =protectedValues();453 ProtectCount s::iterator end = pv.end();454 for (ProtectCount s::iterator it = pv.begin(); it != end; ++it) {452 ProtectCountSet& protectedValues = KJS::protectedValues(); 453 ProtectCountSet::iterator end = protectedValues.end(); 454 for (ProtectCountSet::iterator it = protectedValues.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 s& pv =protectedValues();673 ProtectCount s::iterator end = pv.end();674 for (ProtectCount s::iterator it = pv.begin(); it != end; ++it)672 ProtectCountSet& protectedValues = KJS::protectedValues(); 673 ProtectCountSet::iterator end = protectedValues.end(); 674 for (ProtectCountSet::iterator it = protectedValues.begin(); it != end; ++it) 675 675 counts->add(typeName(it->first)); 676 676
Note:
See TracChangeset
for help on using the changeset viewer.