Ignore:
Timestamp:
Nov 2, 2013, 2:18:59 PM (12 years ago)
Author:
[email protected]
Message:

Make remaining StringImpl functions return PassRef.
<https://webkit.org/b/123683>

Okay, this seems to work well! Let's go all in and convert the
remaining StringImpl functions to return PassRef<StringImpl> instead
of PassRefPtr where we know that null is never returned.

Reviewed by Anders Carlsson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Identifier.h

    r157653 r158498  
    170170        {
    171171            T* d;
    172             StringImpl* r = StringImpl::createUninitialized(buf.length, d).leakRef();
     172            StringImpl& r = StringImpl::createUninitialized(buf.length, d).leakRef();
    173173            for (unsigned i = 0; i != buf.length; i++)
    174174                d[i] = buf.s[i];
    175             r->setHash(hash);
    176             location = r;
     175            r.setHash(hash);
     176            location = &r;
    177177        }
    178178    };
Note: See TracChangeset for help on using the changeset viewer.