Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index a06690770c6162559abbde97853391f2909bff2f..5a4f45c4fa2e6e3cd3f4b1cb4a5189847afac706 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -1753,8 +1753,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()); |
@@ -1804,7 +1802,15 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
VisitForAccumulatorValue(subexpr); |
- if (has_fast_elements) { |
+ if (FLAG_vector_stores) { |
+ __ mov(StoreDescriptor::NameRegister(), |
+ Operand(Smi::FromInt(array_index))); |
+ __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp, kPointerSize)); |
+ 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); |
__ ldr(r6, MemOperand(sp, kPointerSize)); // Copy of array literal. |
__ ldr(r1, FieldMemOperand(r6, JSObject::kElementsOffset)); |