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/ustring.cpp

    r12435 r12949  
    838838}
    839839
    840 UString &UString::operator=(const UString &str)
    841 {
    842   m_rep = str.m_rep;
    843   return *this;
    844 }
    845 
    846840bool UString::is8Bit() const
    847841{
     
    10251019}
    10261020
    1027 // Rule from ECMA 15.2 about what an array index is.
    1028 // Must exactly match string form of an unsigned integer, and be less than 2^32 - 1.
    1029 unsigned UString::toArrayIndex(bool *ok) const
    1030 {
    1031   unsigned i = toStrictUInt32(ok);
    1032   if (i >= 0xFFFFFFFFU && ok)
    1033     *ok = false;
    1034   return i;
    1035 }
    1036 
    10371021int UString::find(const UString &f, int pos) const
    10381022{
Note: See TracChangeset for help on using the changeset viewer.