| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 597f51e34cd1e3f799af3d5cf8f3a1c5b2145be4..b56efe305bf70b6cec639af606a1cc0faaa3df22 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -272,11 +272,6 @@
|
| bool HeapObject::IsConsString() const {
|
| if (!IsString()) return false;
|
| return StringShape(String::cast(this)).IsCons();
|
| -}
|
| -
|
| -bool HeapObject::IsThinString() const {
|
| - if (!IsString()) return false;
|
| - return StringShape(String::cast(this)).IsThin();
|
| }
|
|
|
| bool HeapObject::IsSlicedString() const {
|
| @@ -702,7 +697,6 @@
|
| CAST_ACCESSOR(Struct)
|
| CAST_ACCESSOR(Symbol)
|
| CAST_ACCESSOR(TemplateInfo)
|
| -CAST_ACCESSOR(ThinString)
|
| CAST_ACCESSOR(Uint16x8)
|
| CAST_ACCESSOR(Uint32x4)
|
| CAST_ACCESSOR(Uint8x16)
|
| @@ -847,10 +841,6 @@
|
|
|
| bool StringShape::IsCons() {
|
| return (type_ & kStringRepresentationMask) == kConsStringTag;
|
| -}
|
| -
|
| -bool StringShape::IsThin() {
|
| - return (type_ & kStringRepresentationMask) == kThinStringTag;
|
| }
|
|
|
| bool StringShape::IsSliced() {
|
| @@ -3729,9 +3719,6 @@
|
|
|
|
|
| Handle<String> String::Flatten(Handle<String> string, PretenureFlag pretenure) {
|
| - if (string->IsThinString()) {
|
| - return handle(Handle<ThinString>::cast(string)->actual());
|
| - }
|
| if (!string->IsConsString()) return string;
|
| Handle<ConsString> cons = Handle<ConsString>::cast(string);
|
| if (cons->IsFlat()) return handle(cons->first());
|
| @@ -3756,9 +3743,6 @@
|
| case kSlicedStringTag | kOneByteStringTag:
|
| case kSlicedStringTag | kTwoByteStringTag:
|
| return SlicedString::cast(this)->SlicedStringGet(index);
|
| - case kThinStringTag | kOneByteStringTag:
|
| - case kThinStringTag | kTwoByteStringTag:
|
| - return ThinString::cast(this)->ThinStringGet(index);
|
| default:
|
| break;
|
| }
|
| @@ -3790,7 +3774,6 @@
|
| DCHECK(this->IsFlat());
|
| DCHECK(StringShape(this).IsIndirect());
|
| STATIC_ASSERT(ConsString::kFirstOffset == SlicedString::kParentOffset);
|
| - STATIC_ASSERT(ConsString::kFirstOffset == ThinString::kActualOffset);
|
| const int kUnderlyingOffset = SlicedString::kParentOffset;
|
| return String::cast(READ_FIELD(this, kUnderlyingOffset));
|
| }
|
| @@ -3842,11 +3825,6 @@
|
| case kConsStringTag | kTwoByteStringTag:
|
| return ConsString::cast(string);
|
|
|
| - case kThinStringTag | kOneByteStringTag:
|
| - case kThinStringTag | kTwoByteStringTag:
|
| - string = ThinString::cast(string)->actual();
|
| - continue;
|
| -
|
| default:
|
| UNREACHABLE();
|
| return NULL;
|
| @@ -3978,7 +3956,6 @@
|
| CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSecondOffset, value, mode);
|
| }
|
|
|
| -ACCESSORS(ThinString, actual, String, kActualOffset);
|
|
|
| bool ExternalString::is_short() {
|
| InstanceType type = map()->instance_type();
|
|
|