Ignore:
Timestamp:
Dec 10, 2005, 6:06:17 PM (19 years ago)
Author:
darin
Message:

JavaScriptCore:

Rubber stamped by Maciej.

  • did long-promised KJS renaming:

ValueImp -> JSValue
ObjectImp -> JSObject
AllocatedValueImp -> JSCell

A renaming to get a class out of the way

KJS::Bindings::JSObject -> JavaJSObject

and some other "imp-reduction" renaming

*InstanceImp -> *Instance
*ProtoFuncImp -> *ProtoFunc
*PrototypeImp -> *Prototype
ArgumentsImp -> Arguments
RuntimeArrayImp -> RuntimeArray
RuntimeMethodImp -> RuntimeMethod

  • most files and functions

WebCore:

Rubber stamped by Maciej.

  • updated for KJS class renaming
  • many files and functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r11304 r11527  
    283283gotGoodPointer:
    284284      if (((CollectorCell *)x)->u.freeCell.zeroIfFree != 0) {
    285         AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp *>(x);
     285        JSCell *imp = reinterpret_cast<JSCell *>(x);
    286286        if (!imp->marked())
    287287          imp->mark();
     
    385385  Entry *end = table + ProtectedValues::_tableSize;
    386386  for (Entry *entry = table; entry != end; ++entry) {
    387     AllocatedValueImp *val = entry->key;
     387    JSCell *val = entry->key;
    388388    if (val && !val->marked()) {
    389389      val->mark();
     
    427427      for (size_t i = 0; i < CELLS_PER_BLOCK; i++) {
    428428        CollectorCell *cell = curBlock->cells + i;
    429         AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp *>(cell);
     429        JSCell *imp = reinterpret_cast<JSCell *>(cell);
    430430        if (imp->m_marked) {
    431431          imp->m_marked = false;
    432432        } else {
    433           imp->~AllocatedValueImp();
     433          imp->~JSCell();
    434434          --usedCells;
    435435          --numLiveObjects;
     
    448448          ++minimumCellsToProcess;
    449449        } else {
    450           AllocatedValueImp *imp = reinterpret_cast<AllocatedValueImp *>(cell);
     450          JSCell *imp = reinterpret_cast<JSCell *>(cell);
    451451          if (imp->m_marked) {
    452452            imp->m_marked = false;
    453453          } else {
    454             imp->~AllocatedValueImp();
     454            imp->~JSCell();
    455455            --usedCells;
    456456            --numLiveObjects;
     
    492492  size_t cell = 0;
    493493  while (cell < heap.usedOversizeCells) {
    494     AllocatedValueImp *imp = (AllocatedValueImp *)heap.oversizeCells[cell];
     494    JSCell *imp = (JSCell *)heap.oversizeCells[cell];
    495495   
    496496    if (!imp->m_marked) {
    497       imp->~AllocatedValueImp();
     497      imp->~JSCell();
    498498#if DEBUG_COLLECTOR
    499499      heap.oversizeCells[cell]->u.freeCell.zeroIfFree = 0;
     
    564564  ProtectedValues::KeyValue *table = ProtectedValues::_table;
    565565  for (size_t i = 0; i < size; i++) {
    566     AllocatedValueImp *val = table[i].key;
     566    JSCell *val = table[i].key;
    567567    if (val) {
    568568      ++count;
     
    575575#if APPLE_CHANGES
    576576
    577 static const char *className(AllocatedValueImp *val)
     577static const char *className(JSCell *val)
    578578{
    579579  const char *name = "???";
     
    597597      break;
    598598    case ObjectType: {
    599       const ClassInfo *info = static_cast<ObjectImp *>(val)->classInfo();
     599      const ClassInfo *info = static_cast<JSObject *>(val)->classInfo();
    600600      name = info ? info->className : "Object";
    601601      break;
     
    612612  ProtectedValues::KeyValue *table = ProtectedValues::_table;
    613613  for (int i = 0; i < size; i++) {
    614     AllocatedValueImp *val = table[i].key;
     614    JSCell *val = table[i].key;
    615615    if (val) {
    616616      CFStringRef name = CFStringCreateWithCString(NULL, className(val), kCFStringEncodingASCII);
Note: See TracChangeset for help on using the changeset viewer.