| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index 620bbc94e521df8d43e3429196821ac2cfc055c6..316c4f573e79772d90fddfc6d4b50bf43c416eb6 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1846,8 +1846,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());
|
| @@ -1893,8 +1896,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());
|
|
|
|
|