| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return *iterator; | 399 return *iterator; |
| 400 } | 400 } |
| 401 | 401 |
| 402 void AtomicString::remove(StringImpl* r) | 402 void AtomicString::remove(StringImpl* r) |
| 403 { | 403 { |
| 404 HashSet<StringImpl*>::iterator iterator; | 404 HashSet<StringImpl*>::iterator iterator; |
| 405 if (r->is8Bit()) | 405 if (r->is8Bit()) |
| 406 iterator = findString<LChar>(r); | 406 iterator = findString<LChar>(r); |
| 407 else | 407 else |
| 408 iterator = findString<UChar>(r); | 408 iterator = findString<UChar>(r); |
| 409 RELEASE_ASSERT(iterator != atomicStrings().end()); | 409 CHECK(iterator != atomicStrings().end()); |
| 410 atomicStrings().remove(iterator); | 410 atomicStrings().remove(iterator); |
| 411 } | 411 } |
| 412 | 412 |
| 413 AtomicString AtomicString::lower() const | 413 AtomicString AtomicString::lower() const |
| 414 { | 414 { |
| 415 // Note: This is a hot function in the Dromaeo benchmark. | 415 // Note: This is a hot function in the Dromaeo benchmark. |
| 416 StringImpl* impl = this->impl(); | 416 StringImpl* impl = this->impl(); |
| 417 if (UNLIKELY(!impl)) | 417 if (UNLIKELY(!impl)) |
| 418 return *this; | 418 return *this; |
| 419 RefPtr<StringImpl> newImpl = impl->lower(); | 419 RefPtr<StringImpl> newImpl = impl->lower(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 } | 497 } |
| 498 | 498 |
| 499 #ifndef NDEBUG | 499 #ifndef NDEBUG |
| 500 void AtomicString::show() const | 500 void AtomicString::show() const |
| 501 { | 501 { |
| 502 m_string.show(); | 502 m_string.show(); |
| 503 } | 503 } |
| 504 #endif | 504 #endif |
| 505 | 505 |
| 506 } // namespace WTF | 506 } // namespace WTF |
| OLD | NEW |