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

Unified Diff: src/ic/ic-conventions.h

Issue 486213003: Move register conventions out of the IC classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 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/ic.h ('k') | src/ic/x64/access-compiler-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-conventions.h
diff --git a/src/ic/ic-conventions.h b/src/ic/ic-conventions.h
new file mode 100644
index 0000000000000000000000000000000000000000..35ef65dc14116f8451af80acf12e01bf9f7fbcc5
--- /dev/null
+++ b/src/ic/ic-conventions.h
@@ -0,0 +1,64 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_IC_CONVENTIONS_H_
+#define V8_IC_CONVENTIONS_H_
+
+namespace v8 {
+namespace internal {
+
+class LoadConvention {
+ public:
+ enum ParameterIndices { kReceiverIndex, kNameIndex, kParameterCount };
+ static const Register ReceiverRegister();
+ static const Register NameRegister();
+};
+
+
+class VectorLoadConvention : public LoadConvention {
+ public:
+ enum ParameterIndices {
+ kReceiverIndex,
+ kNameIndex,
+ kSlotIndex,
+ kParameterCount
+ };
+ static const Register SlotRegister();
+};
+
+
+class FullVectorLoadConvention : public VectorLoadConvention {
+ public:
+ enum ParameterIndices {
+ kReceiverIndex,
+ kNameIndex,
+ kSlotIndex,
+ kVectorIndex,
+ kParameterCount
+ };
+ static const Register VectorRegister();
+};
+
+
+class StoreConvention {
+ public:
+ enum ParameterIndices {
+ kReceiverIndex,
+ kNameIndex,
+ kValueIndex,
+ kParameterCount
+ };
+ static const Register ReceiverRegister();
+ static const Register NameRegister();
+ static const Register ValueRegister();
+
+ // The map register isn't part of the normal call specification, but
+ // ElementsTransitionAndStoreStub, used in polymorphic keyed store
+ // stub implementations requires it to be initialized.
+ static const Register MapRegister();
+};
+}
+} // namespace v8::internal
+
+#endif // V8_IC_CONVENTIONS_H_
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/x64/access-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698