| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 return *iterator; | 438 return *iterator; |
| 439 } | 439 } |
| 440 | 440 |
| 441 void AtomicString::remove(StringImpl* r) | 441 void AtomicString::remove(StringImpl* r) |
| 442 { | 442 { |
| 443 HashSet<StringImpl*>::iterator iterator; | 443 HashSet<StringImpl*>::iterator iterator; |
| 444 if (r->is8Bit()) | 444 if (r->is8Bit()) |
| 445 iterator = findString<LChar>(r); | 445 iterator = findString<LChar>(r); |
| 446 else | 446 else |
| 447 iterator = findString<UChar>(r); | 447 iterator = findString<UChar>(r); |
| 448 RELEASE_ASSERT(iterator != atomicStrings().end()); | 448 CHECK(iterator != atomicStrings().end()); |
| 449 atomicStrings().remove(iterator); | 449 atomicStrings().remove(iterator); |
| 450 } | 450 } |
| 451 | 451 |
| 452 AtomicString AtomicString::lower() const | 452 AtomicString AtomicString::lower() const |
| 453 { | 453 { |
| 454 // Note: This is a hot function in the Dromaeo benchmark. | 454 // Note: This is a hot function in the Dromaeo benchmark. |
| 455 StringImpl* impl = this->impl(); | 455 StringImpl* impl = this->impl(); |
| 456 if (UNLIKELY(!impl)) | 456 if (UNLIKELY(!impl)) |
| 457 return *this; | 457 return *this; |
| 458 RefPtr<StringImpl> newImpl = impl->lower(); | 458 RefPtr<StringImpl> newImpl = impl->lower(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 536 } |
| 537 | 537 |
| 538 #ifndef NDEBUG | 538 #ifndef NDEBUG |
| 539 void AtomicString::show() const | 539 void AtomicString::show() const |
| 540 { | 540 { |
| 541 m_string.show(); | 541 m_string.show(); |
| 542 } | 542 } |
| 543 #endif | 543 #endif |
| 544 | 544 |
| 545 } // namespace WTF | 545 } // namespace WTF |
| OLD | NEW |