Index: src/mips64/lithium-mips64.cc |
diff --git a/src/mips64/lithium-mips64.cc b/src/mips64/lithium-mips64.cc |
index 6a30a446d570ad47420057f66ee0a1c98394d0f7..060582585d744e953f32c7cdcdd0e396a33e87bb 100644 |
--- a/src/mips64/lithium-mips64.cc |
+++ b/src/mips64/lithium-mips64.cc |
@@ -2190,7 +2190,7 @@ |
LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
LInstruction* result = NULL; |
- if (!instr->is_fixed_typed_array()) { |
+ if (!instr->is_typed_elements()) { |
LOperand* obj = NULL; |
if (instr->representation().IsDouble()) { |
obj = UseRegister(instr->elements()); |
@@ -2211,9 +2211,10 @@ |
} |
bool needs_environment; |
- if (instr->is_fixed_typed_array()) { |
+ if (instr->is_external() || instr->is_fixed_typed_array()) { |
// see LCodeGen::DoLoadKeyedExternalArray |
- needs_environment = elements_kind == UINT32_ELEMENTS && |
+ needs_environment = (elements_kind == EXTERNAL_UINT32_ELEMENTS || |
+ elements_kind == UINT32_ELEMENTS) && |
!instr->CheckFlag(HInstruction::kUint32); |
} else { |
// see LCodeGen::DoLoadKeyedFixedDoubleArray and |
@@ -2248,7 +2249,7 @@ |
LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { |
- if (!instr->is_fixed_typed_array()) { |
+ if (!instr->is_typed_elements()) { |
DCHECK(instr->elements()->representation().IsTagged()); |
bool needs_write_barrier = instr->NeedsWriteBarrier(); |
LOperand* object = NULL; |