Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index 2152d6837a09dcef23c172f09baa69716082fdd1..06e92168b6f7c1a2e6966d0e8af408de9ef936a9 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -332,23 +332,15 @@ |
__ b(eq, &check_sequential); |
// Dispatch on the indirect string shape: slice or cons. |
- Label cons_string, thin_string; |
- __ and_(result, result, Operand(kStringRepresentationMask)); |
- __ cmp(result, Operand(kConsStringTag)); |
+ Label cons_string; |
+ __ tst(result, Operand(kSlicedNotConsMask)); |
__ b(eq, &cons_string); |
- __ cmp(result, Operand(kThinStringTag)); |
- __ b(eq, &thin_string); |
// Handle slices. |
Label indirect_string_loaded; |
__ ldr(result, FieldMemOperand(string, SlicedString::kOffsetOffset)); |
__ ldr(string, FieldMemOperand(string, SlicedString::kParentOffset)); |
__ add(index, index, Operand::SmiUntag(result)); |
- __ jmp(&indirect_string_loaded); |
- |
- // Handle thin strings. |
- __ bind(&thin_string); |
- __ ldr(string, FieldMemOperand(string, ThinString::kActualOffset)); |
__ jmp(&indirect_string_loaded); |
// Handle cons strings. |