Index: src/regexp/regexp-macro-assembler.cc |
diff --git a/src/regexp/regexp-macro-assembler.cc b/src/regexp/regexp-macro-assembler.cc |
index 025ffb566025f09121a0253241f1ac30b81ae8a5..0a7f5c1b9e295727ac672cc008adee0dbfc41ed6 100644 |
--- a/src/regexp/regexp-macro-assembler.cc |
+++ b/src/regexp/regexp-macro-assembler.cc |
@@ -133,8 +133,6 @@ |
} else if (subject->IsSlicedString()) { |
start_index += SlicedString::cast(subject)->offset(); |
subject = SlicedString::cast(subject)->parent(); |
- } else if (subject->IsThinString()) { |
- subject = ThinString::cast(subject)->actual(); |
} |
DCHECK(start_index >= 0); |
DCHECK(start_index <= subject->length()); |
@@ -240,8 +238,6 @@ |
SlicedString* slice = SlicedString::cast(subject_ptr); |
subject_ptr = slice->parent(); |
slice_offset = slice->offset(); |
- } else if (StringShape(subject_ptr).IsThin()) { |
- subject_ptr = ThinString::cast(subject_ptr)->actual(); |
} |
// Ensure that an underlying string has the same representation. |
bool is_one_byte = subject_ptr->IsOneByteRepresentation(); |