Changeset 65266 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 12, 2010, 2:20:06 PM (15 years ago)
Author:
[email protected]
Message:

Revert changes to ALWAYS_INLINEness of a couple of functions in UString.
This appears to have degraded performance.

Reviewed by Sam Weinig

  • runtime/UString.cpp:

(JSC::UString::ascii):

  • runtime/UString.h:

(JSC::UString::length):
(JSC::UString::isEmpty):
(JSC::UString::~UString):

Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r65264 r65266  
     12010-08-12  Gavin Barraclough  <[email protected]>
     2
     3        Reviewed by Sam Weinig
     4
     5        Revert changes to ALWAYS_INLINEness of a couple of functions in UString.
     6        This appears to have degraded performance.
     7
     8        * runtime/UString.cpp:
     9        (JSC::UString::ascii):
     10        * runtime/UString.h:
     11        (JSC::UString::length):
     12        (JSC::UString::isEmpty):
     13        (JSC::UString::~UString):
     14
    1152010-08-12  Csaba Osztrogonác  <[email protected]>
    216
  • trunk/JavaScriptCore/runtime/UString.cpp

    r65186 r65266  
    198198    asciiBuffer = new char[neededSize];
    199199
    200     const UChar* p = characters(); // Don't roll me out!
     200    const UChar* p = characters();
    201201    char* q = asciiBuffer;
    202202    const UChar* limit = p + len;
  • trunk/JavaScriptCore/runtime/UString.h

    r65177 r65266  
    8787    CString UTF8String(bool strict = false) const;
    8888
    89     ALWAYS_INLINE unsigned length() const
     89    unsigned length() const
    9090    {
    9191        if (!m_impl)
     
    122122
    123123    bool isNull() const { return !m_impl; }
    124     ALWAYS_INLINE bool isEmpty() const { return !m_impl || !m_impl->length(); }
     124    bool isEmpty() const { return !m_impl || !m_impl->length(); }
    125125
    126126    StringImpl* impl() const { return m_impl.get(); }
     
    138138    }
    139139
     140    ALWAYS_INLINE ~UString() { }
    140141private:
    141142    RefPtr<StringImpl> m_impl;
     
    267268
    268269#endif
     270
     271#include "StringConcatenate.h"
Note: See TracChangeset for help on using the changeset viewer.