Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index b48b828ae7f336643e9c4d8886fb7ba4f7277177..42fefce92dbe57563535fd8d25fef7c98eaddc78 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -653,7 +653,8 @@ CallInterfaceDescriptor HandlerStub::GetCallInterfaceDescriptor() const { |
return LoadWithVectorDescriptor(isolate()); |
} else { |
DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC); |
- return StoreDescriptor(isolate()); |
+ return FLAG_vector_stores ? VectorStoreICDescriptor(isolate()) |
+ : StoreDescriptor(isolate()); |
} |
} |
@@ -679,6 +680,18 @@ void ToObjectStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() |
const { |
+ if (FLAG_vector_stores) { |
+ return VectorStoreTransitionDescriptor(isolate()); |
+ } |
+ return StoreTransitionDescriptor(isolate()); |
+} |
+ |
+ |
+CallInterfaceDescriptor |
+ElementsTransitionAndStoreStub::GetCallInterfaceDescriptor() const { |
+ if (FLAG_vector_stores) { |
+ return VectorStoreTransitionDescriptor(isolate()); |
+ } |
return StoreTransitionDescriptor(isolate()); |
} |