Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 537cb0918e89233d69885a9fc6e39cb2801655d3..3371f63925f000a5d2fa13e6ee5dc62deddf0c21 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1801,7 +1801,16 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
VisitForAccumulatorValue(subexpr); |
- if (has_fast_elements) { |
+ if (FLAG_vector_stores) { |
+ __ li(StoreDescriptor::NameRegister(), |
+ Operand(Smi::FromInt(array_index))); |
+ __ lw(StoreDescriptor::ReceiverRegister(), MemOperand(sp, kPointerSize)); |
+ __ mov(StoreDescriptor::ValueRegister(), result_register()); |
+ EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
+ Handle<Code> ic = |
+ CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
+ CallIC(ic); |
+ } else if (has_fast_elements) { |
int offset = FixedArray::kHeaderSize + (array_index * kPointerSize); |
__ lw(t2, MemOperand(sp, kPointerSize)); // Copy of array literal. |
__ lw(a1, FieldMemOperand(t2, JSObject::kElementsOffset)); |