| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 818454bc71fdc810227684a4a4f5574f705241f3..decaf392f6d999002e9d9db5eaaf22f587e100de 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1354,6 +1354,11 @@ Address AsciiString::GetCharsAddress() {
|
| }
|
|
|
|
|
| +Address TwoByteString::GetCharsAddress() {
|
| + return FIELD_ADDR(this, kHeaderSize);
|
| +}
|
| +
|
| +
|
| uint16_t TwoByteString::TwoByteStringGet(int index) {
|
| ASSERT(index >= 0 && index < length());
|
| return READ_SHORT_FIELD(this, kHeaderSize + index * kShortSize);
|
|
|