| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 4545b0619cc3c6668e25a3dbfc0c10d3d6a175e8..056bb4e6eb69746ccbf3f2cf4d917ce4f6249cfa 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -5585,7 +5585,7 @@ void StringAddStub::Generate(MacroAssembler* masm) {
|
|
|
| __ bind(&longer_than_two);
|
| // Check if resulting string will be flat.
|
| - __ cmp(ebx, Immediate(Smi::FromInt(String::kMinNonFlatLength)));
|
| + __ cmp(ebx, Immediate(Smi::FromInt(ConsString::kMinLength)));
|
| __ j(below, &string_add_flat_result);
|
|
|
| // If result is not supposed to be flat allocate a cons string object. If both
|
| @@ -5633,7 +5633,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.
|
| // eax: first string
|
|
|