Index: src/mips/ic-mips.cc |
diff --git a/src/mips/ic-mips.cc b/src/mips/ic-mips.cc |
index c240125bba1b0f745efb7f4c6b7a48d5627620f9..1eef55af1be65f88ed843db9c8aff35ca8d11ffe 100644 |
--- a/src/mips/ic-mips.cc |
+++ b/src/mips/ic-mips.cc |
@@ -1470,11 +1470,10 @@ void StoreIC::GenerateArrayLength(MacroAssembler* masm) { |
// -- ra : return address |
// ----------------------------------- |
// |
- // This accepts as a receiver anything JSObject::SetElementsLength accepts |
- // (currently anything except for external and pixel arrays which means |
- // anything with elements of FixedArray type.), but currently is restricted |
- // to JSArray. |
- // Value must be a number, but only smis are accepted as the most common case. |
+ // This accepts as a receiver anything JSArray::SetElementsLength accepts |
+ // (currently anything except for external arrays which means anything with |
+ // elements of FixedArray type). Value must be a number, but only smis are |
+ // accepted as the most common case. |
Label miss; |
@@ -1496,6 +1495,10 @@ void StoreIC::GenerateArrayLength(MacroAssembler* masm) { |
__ GetObjectType(scratch, scratch, scratch); |
__ Branch(&miss, ne, scratch, Operand(FIXED_ARRAY_TYPE)); |
+ // Check that the array has fast properties, otherwise the length |
+ // property might have been redefined. |
+ // TODO(mstarzinger): Port this check to MIPS. |
+ |
// Check that value is a smi. |
__ JumpIfNotSmi(value, &miss); |