Changeset 12949 in webkit for trunk/JavaScriptCore/kjs/value.h


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/value.h

    r12784 r12949  
    387387}
    388388
     389inline JSObject* JSValue::toObject(ExecState* exec) const
     390{
     391    return JSImmediate::isImmediate(this) ? JSImmediate::toObject(this, exec) : downcast()->toObject(exec);
     392}
     393
    389394} // namespace
    390395
Note: See TracChangeset for help on using the changeset viewer.