diff options
Diffstat (limited to 'Source/JavaScriptCore/wtf/text/AtomicString.cpp')
-rw-r--r-- | Source/JavaScriptCore/wtf/text/AtomicString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/wtf/text/AtomicString.cpp b/Source/JavaScriptCore/wtf/text/AtomicString.cpp index 9dd655e..3c02607 100644 --- a/Source/JavaScriptCore/wtf/text/AtomicString.cpp +++ b/Source/JavaScriptCore/wtf/text/AtomicString.cpp @@ -343,7 +343,7 @@ AtomicString AtomicString::lower() const { // Note: This is a hot function in the Dromaeo benchmark. StringImpl* impl = this->impl(); - if (UNLIKELY(!impl)) + if (UNLIKELY(!impl) || impl->isLower()) return *this; RefPtr<StringImpl> newImpl = impl->lower(); if (LIKELY(newImpl == impl)) |