| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 867deb9352106b3122fdf4ec44c2927d74bd0cc3..b9b6f41edc4ca06c1b0a3bd7e79e66077766d98f 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -8289,6 +8289,22 @@ String::FlatContent String::GetFlatContent() {
|
| }
|
|
|
|
|
| +template <>
|
| +Vector<const uint8_t> String::GetCharVector() {
|
| + String::FlatContent flat = GetFlatContent();
|
| + DCHECK(flat.IsOneByte());
|
| + return flat.ToOneByteVector();
|
| +}
|
| +
|
| +
|
| +template <>
|
| +Vector<const uc16> String::GetCharVector() {
|
| + String::FlatContent flat = GetFlatContent();
|
| + DCHECK(flat.IsTwoByte());
|
| + return flat.ToUC16Vector();
|
| +}
|
| +
|
| +
|
| SmartArrayPointer<char> String::ToCString(AllowNullsFlag allow_nulls,
|
| RobustnessFlag robust_flag,
|
| int offset,
|
|
|