summaryrefslogtreecommitdiff
path: root/deps/v8/src/unicode-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/unicode-inl.h')
-rw-r--r--deps/v8/src/unicode-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/unicode-inl.h b/deps/v8/src/unicode-inl.h
index ebebfaa1bd..7c0386ce52 100644
--- a/deps/v8/src/unicode-inl.h
+++ b/deps/v8/src/unicode-inl.h
@@ -113,8 +113,8 @@ unsigned Utf8::Encode(char* str,
uchar Utf8::ValueOf(const byte* bytes, size_t length, size_t* cursor) {
if (length <= 0) return kBadChar;
byte first = bytes[0];
- // Characters between 0000 and 0007F are encoded as a single character
- if (first <= kMaxOneByteChar) {
+ // Characters between 0000 and 007F are encoded as a single character
+ if (V8_LIKELY(first <= kMaxOneByteChar)) {
*cursor += 1;
return first;
}