| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 169f1506714c15558c25768f1836e1775fa0bbad..958c08243b4fbe13bb16ed6b083adcd2d7d9182b 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -8298,6 +8298,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,
|
|
|