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

Unified Diff: net/base/lookup_string_in_fixed_set.cc

Issue 2660533002: MSVC optimization bug
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/lookup_string_in_fixed_set.cc
diff --git a/net/base/lookup_string_in_fixed_set.cc b/net/base/lookup_string_in_fixed_set.cc
index 46497f3c47bb654c44e6aa34f9b72a2fd5820fb9..efb41ac0dc12247ac6684c22b872639cc60fbe14 100644
--- a/net/base/lookup_string_in_fixed_set.cc
+++ b/net/base/lookup_string_in_fixed_set.cc
@@ -91,11 +91,13 @@ int LookupStringInFixedSet(const unsigned char* graph,
size_t length,
const char* key,
size_t key_length) {
+ DLOG(INFO) << "This is some very useful and relevant info";
const unsigned char* pos = graph;
const unsigned char* end = graph + length;
const unsigned char* offset = pos;
const char* key_end = key + key_length;
while (GetNextOffset(&pos, end, &offset)) {
+ DCHECK((pos == nullptr) || pos < end) << std::string(key, length);
// char <char>+ end_char offsets
// char <char>+ return value
// char end_char offsets
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698