Index: src/ic/access-compiler.cc |
diff --git a/src/ic/access-compiler.cc b/src/ic/access-compiler.cc |
index 0dc9ab6e8dd9337c22c83bc2a0bedef844417610..951966e7debe521a2c0901e59a962d48514c7134 100644 |
--- a/src/ic/access-compiler.cc |
+++ b/src/ic/access-compiler.cc |
@@ -49,5 +49,25 @@ Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) { |
DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC); |
return store_calling_convention(); |
} |
+ |
+ |
+Register PropertyAccessCompiler::slot() const { |
+ if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { |
+ return LoadDescriptor::SlotRegister(); |
+ } |
+ DCHECK(FLAG_vector_stores && |
+ (kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC)); |
+ return VectorStoreICDescriptor::SlotRegister(); |
+} |
+ |
+ |
+Register PropertyAccessCompiler::vector() const { |
+ if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { |
+ return LoadWithVectorDescriptor::VectorRegister(); |
+ } |
+ DCHECK(FLAG_vector_stores && |
+ (kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC)); |
+ return VectorStoreICDescriptor::VectorRegister(); |
+} |
} // namespace internal |
} // namespace v8 |