Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: src/ic/access-compiler.cc

Issue 1326483002: Vector ICs: Adapting store ic classes for vectors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and comment. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/access-compiler.h ('k') | src/ic/handler-compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/ic/access-compiler.h ('k') | src/ic/handler-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698