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

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: Incorporate comments on patch set 1. 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
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/uri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/scanner.h
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h
index 610091c52ec51fe52af9241dba844359a429585b..c1c799397f5f711d91e7e103905a95f40d1f5fd2 100644
--- a/src/parsing/scanner.h
+++ b/src/parsing/scanner.h
@@ -162,7 +162,7 @@ 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(iscntrl(code_unit) || isprint(code_unit));
vogelheim 2016/07/11 07:42:49 Hrm. I searched for several minutes until I had fo
backing_store_[position_] = static_cast<byte>(code_unit);
position_ += kOneByteSize;
return;
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/uri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698