Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index de7f99ef94c5e597d90ce225b99d0bd090612dae..7ce776ccac6f6f9dd4e884ec726856c03dc1c17d 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1799,7 +1799,16 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
VisitForAccumulatorValue(subexpr); |
- if (has_fast_elements) { |
+ if (FLAG_vector_stores) { |
+ __ li(StoreDescriptor::NameRegister(), |
+ Operand(Smi::FromInt(array_index))); |
+ __ ld(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); |
__ ld(a6, MemOperand(sp, kPointerSize)); // Copy of array literal. |
__ ld(a1, FieldMemOperand(a6, JSObject::kElementsOffset)); |