Bug 1121481 - Ternary operator compilation fixed with GCC 4.6.4, r=mrosenberg

This commit is contained in:
Andrea Marchesini 2015-01-14 17:55:33 +00:00
Родитель 5b7c1a3e12
Коммит ebbb7a3a7d
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -5439,9 +5439,12 @@ ConcatInlineString(MacroAssembler &masm, Register lhs, Register rhs, Register ou
masm.branchIfRope(rhs, failure);
// Allocate a JSThinInlineString or JSFatInlineString.
size_t maxThinInlineLength = isTwoByte
? JSThinInlineString::MAX_LENGTH_TWO_BYTE
: JSThinInlineString::MAX_LENGTH_LATIN1;
size_t maxThinInlineLength;
if (isTwoByte)
maxThinInlineLength = JSThinInlineString::MAX_LENGTH_TWO_BYTE;
else
maxThinInlineLength = JSThinInlineString::MAX_LENGTH_LATIN1;
Label isFat, allocDone;
masm.branch32(Assembler::Above, temp2, Imm32(maxThinInlineLength), &isFat);
{