Changeset 59282 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
May 12, 2010, 4:25:32 PM (15 years ago)
Author:
[email protected]
Message:

Work around GCC stupidity by either explicitly inlining or by
using ALWAYS_INLINE

Reviewed by Gaving Barraclough.

  • runtime/StringPrototype.cpp:

(JSC::stringProtoFuncReplace):

  • runtime/UString.h:

(JSC::UString::~UString):

  • wtf/RefPtr.h:

(WTF::RefPtr::RefPtr):
(WTF::RefPtr::~RefPtr):

  • wtf/text/StringImpl.h:

(WebCore::StringImpl::create):
(WebCore::StringImpl::tryCreateUninitialized):

Location:
trunk/JavaScriptCore/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/StringPrototype.cpp

    r59161 r59282  
    349349                cachedCall.setThis(exec->globalThisValue());
    350350                JSValue result = cachedCall.call();
    351                 replacements.append(result.toString(cachedCall.newCallFrame(exec)));
     351                if (LIKELY(result.isString()))
     352                    replacements.append(asString(result)->value(exec));
     353                else
     354                    replacements.append(result.toString(cachedCall.newCallFrame(exec)));
    352355                if (exec->hadException())
    353356                    break;
  • trunk/JavaScriptCore/runtime/UString.h

    r58001 r59282  
    147147        }
    148148
     149        ALWAYS_INLINE ~UString() { }
    149150    private:
    150151        RefPtr<Rep> m_rep;
Note: See TracChangeset for help on using the changeset viewer.