Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 235885cd937c6cf86d04fff336e5f5c2c8f15919..f6c2f34cc5553a9fe8c92005b04e0761444a9336 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -833,6 +833,11 @@ bool String::HasOnlyOneByteChars() { |
IsOneByteRepresentation(); |
} |
+bool StringShape::HasOnlyOneByteChars() { |
+ return (type_ & kStringEncodingMask) == kOneByteStringTag || |
+ (type_ & kOneByteDataHintMask) == kOneByteDataHintTag; |
+} |
+ |
bool StringShape::IsCons() { |
return (type_ & kStringRepresentationMask) == kConsStringTag; |
} |