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

Unified Diff: src/parsing/scanner.h

Issue 2135573002: Address compilation warnings for android build. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: src/parsing/scanner.h
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h
index 610091c52ec51fe52af9241dba844359a429585b..1a6473f8b0455399129d883debcc244ace49127e 100644
--- a/src/parsing/scanner.h
+++ b/src/parsing/scanner.h
@@ -162,7 +162,8 @@ class LiteralBuffer {
INLINE(void AddChar(char code_unit)) {
if (position_ >= backing_store_.length()) ExpandBuffer();
DCHECK(is_one_byte_);
- DCHECK(0 <= code_unit && code_unit <= kMaxAscii);
+ // DCHECK((0 < code_unit && code_unit <= kMaxAscii) || code_unit == 0);
rmcilroy 2016/07/08 11:15:06 Remove comment?
oth 2016/07/10 15:34:16 Done.
+ DCHECK(iscntrl(code_unit) || isprint(code_unit));
backing_store_[position_] = static_cast<byte>(code_unit);
position_ += kOneByteSize;
return;

Powered by Google App Engine
This is Rietveld 408576698