Changeset 11527 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r11304 r11527 283 283 gotGoodPointer: 284 284 if (((CollectorCell *)x)->u.freeCell.zeroIfFree != 0) { 285 AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp*>(x);285 JSCell *imp = reinterpret_cast<JSCell *>(x); 286 286 if (!imp->marked()) 287 287 imp->mark(); … … 385 385 Entry *end = table + ProtectedValues::_tableSize; 386 386 for (Entry *entry = table; entry != end; ++entry) { 387 AllocatedValueImp*val = entry->key;387 JSCell *val = entry->key; 388 388 if (val && !val->marked()) { 389 389 val->mark(); … … 427 427 for (size_t i = 0; i < CELLS_PER_BLOCK; i++) { 428 428 CollectorCell *cell = curBlock->cells + i; 429 AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp*>(cell);429 JSCell *imp = reinterpret_cast<JSCell *>(cell); 430 430 if (imp->m_marked) { 431 431 imp->m_marked = false; 432 432 } else { 433 imp->~ AllocatedValueImp();433 imp->~JSCell(); 434 434 --usedCells; 435 435 --numLiveObjects; … … 448 448 ++minimumCellsToProcess; 449 449 } else { 450 AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp*>(cell);450 JSCell *imp = reinterpret_cast<JSCell *>(cell); 451 451 if (imp->m_marked) { 452 452 imp->m_marked = false; 453 453 } else { 454 imp->~ AllocatedValueImp();454 imp->~JSCell(); 455 455 --usedCells; 456 456 --numLiveObjects; … … 492 492 size_t cell = 0; 493 493 while (cell < heap.usedOversizeCells) { 494 AllocatedValueImp *imp = (AllocatedValueImp*)heap.oversizeCells[cell];494 JSCell *imp = (JSCell *)heap.oversizeCells[cell]; 495 495 496 496 if (!imp->m_marked) { 497 imp->~ AllocatedValueImp();497 imp->~JSCell(); 498 498 #if DEBUG_COLLECTOR 499 499 heap.oversizeCells[cell]->u.freeCell.zeroIfFree = 0; … … 564 564 ProtectedValues::KeyValue *table = ProtectedValues::_table; 565 565 for (size_t i = 0; i < size; i++) { 566 AllocatedValueImp*val = table[i].key;566 JSCell *val = table[i].key; 567 567 if (val) { 568 568 ++count; … … 575 575 #if APPLE_CHANGES 576 576 577 static const char *className( AllocatedValueImp*val)577 static const char *className(JSCell *val) 578 578 { 579 579 const char *name = "???"; … … 597 597 break; 598 598 case ObjectType: { 599 const ClassInfo *info = static_cast< ObjectImp*>(val)->classInfo();599 const ClassInfo *info = static_cast<JSObject *>(val)->classInfo(); 600 600 name = info ? info->className : "Object"; 601 601 break; … … 612 612 ProtectedValues::KeyValue *table = ProtectedValues::_table; 613 613 for (int i = 0; i < size; i++) { 614 AllocatedValueImp*val = table[i].key;614 JSCell *val = table[i].key; 615 615 if (val) { 616 616 CFStringRef name = CFStringCreateWithCString(NULL, className(val), kCFStringEncodingASCII);
Note:
See TracChangeset
for help on using the changeset viewer.