| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights | 2  * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights | 
| 3  * reserved. | 3  * reserved. | 
| 4  * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 4  * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 
| 5  * Copyright (C) 2012 Google Inc. All rights reserved. | 5  * Copyright (C) 2012 Google Inc. All rights reserved. | 
| 6  * | 6  * | 
| 7  * This library is free software; you can redistribute it and/or | 7  * This library is free software; you can redistribute it and/or | 
| 8  * modify it under the terms of the GNU Library General Public | 8  * modify it under the terms of the GNU Library General Public | 
| 9  * License as published by the Free Software Foundation; either | 9  * License as published by the Free Software Foundation; either | 
| 10  * version 2 of the License, or (at your option) any later version. | 10  * version 2 of the License, or (at your option) any later version. | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 64   if (!*chars) | 64   if (!*chars) | 
| 65     return g_empty_atom; | 65     return g_empty_atom; | 
| 66   return AtomicString(AtomicStringTable::Instance().AddUTF8(chars, nullptr)); | 66   return AtomicString(AtomicStringTable::Instance().AddUTF8(chars, nullptr)); | 
| 67 } | 67 } | 
| 68 | 68 | 
| 69 AtomicString AtomicString::DeprecatedLower() const { | 69 AtomicString AtomicString::DeprecatedLower() const { | 
| 70   // Note: This is a hot function in the Dromaeo benchmark. | 70   // Note: This is a hot function in the Dromaeo benchmark. | 
| 71   StringImpl* impl = this->Impl(); | 71   StringImpl* impl = this->Impl(); | 
| 72   if (UNLIKELY(!impl)) | 72   if (UNLIKELY(!impl)) | 
| 73     return *this; | 73     return *this; | 
| 74   RefPtr<StringImpl> new_impl = impl->Lower(); | 74   RefPtr<StringImpl> new_impl = impl->LowerUnicode(); | 
| 75   if (LIKELY(new_impl == impl)) | 75   if (LIKELY(new_impl == impl)) | 
| 76     return *this; | 76     return *this; | 
| 77   return AtomicString(new_impl.Release()); | 77   return AtomicString(new_impl.Release()); | 
| 78 } | 78 } | 
| 79 | 79 | 
| 80 AtomicString AtomicString::LowerASCII() const { | 80 AtomicString AtomicString::LowerASCII() const { | 
| 81   StringImpl* impl = this->Impl(); | 81   StringImpl* impl = this->Impl(); | 
| 82   if (UNLIKELY(!impl)) | 82   if (UNLIKELY(!impl)) | 
| 83     return *this; | 83     return *this; | 
| 84   RefPtr<StringImpl> new_impl = impl->LowerASCII(); | 84   RefPtr<StringImpl> new_impl = impl->LowerASCII(); | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 133   return out << s.GetString(); | 133   return out << s.GetString(); | 
| 134 } | 134 } | 
| 135 | 135 | 
| 136 #ifndef NDEBUG | 136 #ifndef NDEBUG | 
| 137 void AtomicString::Show() const { | 137 void AtomicString::Show() const { | 
| 138   string_.Show(); | 138   string_.Show(); | 
| 139 } | 139 } | 
| 140 #endif | 140 #endif | 
| 141 | 141 | 
| 142 }  // namespace WTF | 142 }  // namespace WTF | 
| OLD | NEW | 
|---|