| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 1691098f9f7ce0899f4576c0c793c8eb4b9300ec..e7f38fd29424810f97beda9ef9fdf28800ac606b 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -2304,11 +2304,11 @@ void LCodeGen::DoLoadKeyedSpecializedArrayElement(
|
| break;
|
| case kExternalUnsignedIntArray:
|
| __ mov(result, Operand(external_pointer, key, times_4, 0));
|
| - __ test(Operand(result), Immediate(0x80000000));
|
| + __ test(result, Operand(result));
|
| // TODO(danno): we could be more clever here, perhaps having a special
|
| // version of the stub that detects if the overflow case actually
|
| // happens, and generate code that returns a double rather than int.
|
| - DeoptimizeIf(not_zero, instr->environment());
|
| + DeoptimizeIf(negative, instr->environment());
|
| break;
|
| case kExternalFloatArray:
|
| UNREACHABLE();
|
|
|