Created
February 8, 2012 07:32
-
-
Save omo/1766470 to your computer and use it in GitHub Desktop.
AtomicString AtomicString::lower()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AtomicString AtomicString::lower() const | |
{ | |
// Note: This is a hot function in the Dromaeo benchmark. | |
StringImpl* impl = this->impl(); | |
if (UNLIKELY(!impl)) | |
return *this; | |
RefPtr<StringImpl> newImpl = impl->lower(); | |
if (LIKELY(newImpl == impl)) | |
return *this; | |
return AtomicString(newImpl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment