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..6e49718c7be3c44e626450ae61cd594adefaf1b4 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1748,8 +1748,6 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
Comment cmnt(masm_, "[ ArrayLiteral"); |
- expr->BuildConstantElements(isolate()); |
- |
Handle<FixedArray> constant_elements = expr->constant_elements(); |
bool has_fast_elements = |
IsFastObjectElementsKind(expr->constant_elements_kind()); |
@@ -1799,7 +1797,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)); |