Only valid to call if source's length is small enough. Returns a StringValue object that is smallified.
| 70 | /// Only valid to call if source's length is small enough. Returns a StringValue object |
| 71 | /// that is smallified. |
| 72 | static StringValue MakeSmallStringFrom(const StringValue& source) { |
| 73 | DCHECK_LE(source.Len(), SmallableString::SMALL_LIMIT); |
| 74 | StringValue sv(source); |
| 75 | sv.Smallify(); |
| 76 | DCHECK(sv.IsSmall()); |
| 77 | return sv; |
| 78 | } |
| 79 | |
| 80 | void Assign(const StringValue& other) { string_impl_.Assign(other.string_impl_); } |
| 81 |