Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index c4f8726dc22554a10925d9697b2ccc348b87a00a..16ff373ce6395b7b25c330c7501b3dee998efbd9 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1737,7 +1737,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()); |
@@ -1785,7 +1784,14 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
VisitForAccumulatorValue(subexpr); |
- if (has_fast_elements) { |
+ if (FLAG_vector_stores) { |
+ __ Mov(StoreDescriptor::NameRegister(), Smi::FromInt(array_index)); |
+ __ Peek(StoreDescriptor::ReceiverRegister(), 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); |
__ Peek(x6, kPointerSize); // Copy of array literal. |
__ Ldr(x1, FieldMemOperand(x6, JSObject::kElementsOffset)); |