Ignore:
Timestamp:
Feb 23, 2006, 11:52:25 AM (19 years ago)
Author:
ggaren
Message:

Reviewed by Darin, Maciej.

  • Inline some functions suggested by Shark. 2.9% speedup on super accurate JS iBench.

http://bugzilla.opendarwin.org/show_bug.cgi?id=7411
<rdar://problem/4448116>

  • kjs/nodes.h: (KJS::ArgumentsNode::evaluateList):
  • kjs/object.cpp:
  • kjs/object.h: (KJS::ScopeChain::release): (KJS::JSObject::toPrimitive):
  • kjs/scope_chain.cpp:
  • kjs/ustring.cpp:
  • kjs/ustring.h: (KJS::UString::toArrayIndex):
  • kjs/value.cpp:
  • kjs/value.h: (KJS::JSValue::toObject):
  • kxmlcore/FastMalloc.cpp: (KXMLCore::TCMalloc_ThreadCache_FreeList::Push): (KXMLCore::TCMalloc_ThreadCache_FreeList::Pop):
File:
1 edited

Legend:

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

    r12317 r12949  
    3535}
    3636
    37 void ScopeChain::release()
    38 {
    39     // This function is only called by deref(),
    40     // Deref ensures these conditions are true.
    41     assert(_node && _node->refCount == 0);
    42     ScopeChainNode *n = _node;
    43     do {
    44         ScopeChainNode *next = n->next;
    45         delete n;
    46         n = next;
    47     } while (n && --n->refCount == 0);
    48 }
    49 
    5037} // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.