Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 67952f71893d47dafe04b01f217801a59d03dbf3..c33df5cf770842d05d73095f8ad1c2e7ce67548f 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -6268,7 +6268,7 @@ void StringAddStub::Generate(MacroAssembler* masm) { |
__ bind(&longer_than_two); |
// Check if resulting string will be flat. |
- __ cmp(r6, Operand(String::kMinNonFlatLength)); |
+ __ cmp(r6, Operand(ConsString::kMinLength)); |
__ b(lt, &string_add_flat_result); |
// Handle exceptionally long strings in the runtime system. |
STATIC_ASSERT((String::kMaxLength & 0x80000000) == 0); |
@@ -6322,7 +6322,7 @@ void StringAddStub::Generate(MacroAssembler* masm) { |
__ jmp(&allocated); |
// We cannot encounter sliced strings or cons strings here since: |
- STATIC_ASSERT(SlicedString::kMinLength >= String::kMinNonFlatLength); |
+ STATIC_ASSERT(SlicedString::kMinLength >= ConsString::kMinLength); |
// Handle creating a flat result from either external or sequential strings. |
// Locate the first characters' locations. |
// r0: first string |