Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: Source/wtf/text/StringImpl.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/text/ASCIIFastPath.h ('k') | Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 template <class UCharPredicate> PassRefPtr<StringImpl> stripMatchedCharacter s(UCharPredicate); 420 template <class UCharPredicate> PassRefPtr<StringImpl> stripMatchedCharacter s(UCharPredicate);
421 template <typename CharType, class UCharPredicate> PassRefPtr<StringImpl> si mplifyMatchedCharactersToSpace(UCharPredicate, StripBehavior); 421 template <typename CharType, class UCharPredicate> PassRefPtr<StringImpl> si mplifyMatchedCharactersToSpace(UCharPredicate, StripBehavior);
422 NEVER_INLINE unsigned hashSlowCase() const; 422 NEVER_INLINE unsigned hashSlowCase() const;
423 423
424 #ifdef STRING_STATS 424 #ifdef STRING_STATS
425 static StringStats m_stringStats; 425 static StringStats m_stringStats;
426 #endif 426 #endif
427 427
428 static unsigned m_highestStaticStringLength; 428 static unsigned m_highestStaticStringLength;
429 429
430 #ifndef NDEBUG 430 #if ENABLE(ASSERT)
431 void assertHashIsCorrect() 431 void assertHashIsCorrect()
432 { 432 {
433 ASSERT(hasHash()); 433 ASSERT(hasHash());
434 ASSERT(existingHash() == StringHasher::computeHashAndMaskTop8Bits(charac ters8(), length())); 434 ASSERT(existingHash() == StringHasher::computeHashAndMaskTop8Bits(charac ters8(), length()));
435 } 435 }
436 #endif 436 #endif
437 437
438 private: 438 private:
439 unsigned m_refCount; 439 unsigned m_refCount;
440 unsigned m_length; 440 unsigned m_length;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 732
733 using WTF::StringImpl; 733 using WTF::StringImpl;
734 using WTF::equal; 734 using WTF::equal;
735 using WTF::equalNonNull; 735 using WTF::equalNonNull;
736 using WTF::TextCaseSensitivity; 736 using WTF::TextCaseSensitivity;
737 using WTF::TextCaseSensitive; 737 using WTF::TextCaseSensitive;
738 using WTF::TextCaseInsensitive; 738 using WTF::TextCaseInsensitive;
739 739
740 #endif 740 #endif
OLDNEW
« no previous file with comments | « Source/wtf/text/ASCIIFastPath.h ('k') | Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698