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

Unified Diff: src/string-search.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/store-buffer-inl.h ('k') | src/string-stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string-search.h
diff --git a/src/string-search.h b/src/string-search.h
index 09bc36ef82ea0e6f5e436da10d529d20248b4d4f..ef47db6241d254c69b890e6c758cb15e07000dc4 100644
--- a/src/string-search.h
+++ b/src/string-search.h
@@ -84,7 +84,7 @@ class StringSearch : private StringSearchBase {
// ASCII needle.
return kAsciiAlphabetSize;
} else {
- ASSERT(sizeof(PatternChar) == 2);
+ DCHECK(sizeof(PatternChar) == 2);
// UC16 needle.
return kUC16AlphabetSize;
}
@@ -196,7 +196,7 @@ int StringSearch<PatternChar, SubjectChar>::SingleCharSearch(
StringSearch<PatternChar, SubjectChar>* search,
Vector<const SubjectChar> subject,
int index) {
- ASSERT_EQ(1, search->pattern_.length());
+ DCHECK_EQ(1, search->pattern_.length());
PatternChar pattern_first_char = search->pattern_[0];
int i = index;
if (sizeof(SubjectChar) == 1 && sizeof(PatternChar) == 1) {
@@ -230,7 +230,7 @@ template <typename PatternChar, typename SubjectChar>
inline bool CharCompare(const PatternChar* pattern,
const SubjectChar* subject,
int length) {
- ASSERT(length > 0);
+ DCHECK(length > 0);
int pos = 0;
do {
if (pattern[pos] != subject[pos]) {
@@ -249,7 +249,7 @@ int StringSearch<PatternChar, SubjectChar>::LinearSearch(
Vector<const SubjectChar> subject,
int index) {
Vector<const PatternChar> pattern = search->pattern_;
- ASSERT(pattern.length() > 1);
+ DCHECK(pattern.length() > 1);
int pattern_length = pattern.length();
PatternChar pattern_first_char = pattern[0];
int i = index;
« no previous file with comments | « src/store-buffer-inl.h ('k') | src/string-stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698