| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index b05e555e41ad5062155e75deefa762311f8caaef..13ededb51de588d99d7b20cc5df60ef845680dfa 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1854,8 +1854,11 @@ LInstruction* LChunkBuilder::DoLoadKeyedSpecializedArrayElement(
|
| HLoadKeyedSpecializedArrayElement* instr) {
|
| ExternalArrayType array_type = instr->array_type();
|
| Representation representation(instr->representation());
|
| - ASSERT((representation.IsInteger32() && array_type != kExternalFloatArray) ||
|
| - (representation.IsDouble() && array_type == kExternalFloatArray));
|
| + ASSERT(
|
| + (representation.IsInteger32() && (array_type != kExternalFloatArray &&
|
| + array_type != kExternalDoubleArray)) ||
|
| + (representation.IsDouble() && (array_type == kExternalFloatArray ||
|
| + array_type == kExternalDoubleArray)));
|
| ASSERT(instr->key()->representation().IsInteger32());
|
| LOperand* external_pointer = UseRegister(instr->external_pointer());
|
| LOperand* key = UseRegister(instr->key());
|
| @@ -1902,8 +1905,11 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement(
|
| HStoreKeyedSpecializedArrayElement* instr) {
|
| Representation representation(instr->value()->representation());
|
| ExternalArrayType array_type = instr->array_type();
|
| - ASSERT((representation.IsInteger32() && array_type != kExternalFloatArray) ||
|
| - (representation.IsDouble() && array_type == kExternalFloatArray));
|
| + ASSERT(
|
| + (representation.IsInteger32() && (array_type != kExternalFloatArray &&
|
| + array_type != kExternalDoubleArray)) ||
|
| + (representation.IsDouble() && (array_type == kExternalFloatArray ||
|
| + array_type == kExternalDoubleArray)));
|
| ASSERT(instr->external_pointer()->representation().IsExternal());
|
| ASSERT(instr->key()->representation().IsInteger32());
|
|
|
|
|