Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index f21355ec4be75ca2d4e738ae9fe3fc94e0f4aa8b..6aa09132e7814d9e8f27f8749008ddfbaa1ba537 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -341,7 +341,12 @@ bool String::IsTwoByteRepresentationUnderneath() { |
bool String::HasOnlyAsciiChars() { |
uint32_t type = map()->instance_type(); |
+#ifndef ENABLE_LATIN_1 |
+ return (type & kStringEncodingMask) == kOneByteStringTag || |
+ (type & kAsciiDataHintMask) == kAsciiDataHintTag; |
+#else |
return (type & kAsciiDataHintMask) == kAsciiDataHintTag; |
+#endif |
} |