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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/x64/access-compiler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_IC_CONVENTIONS_H_
6 #define V8_IC_CONVENTIONS_H_
7
8 namespace v8 {
9 namespace internal {
10
11 class LoadConvention {
12 public:
13 enum ParameterIndices { kReceiverIndex, kNameIndex, kParameterCount };
14 static const Register ReceiverRegister();
15 static const Register NameRegister();
16 };
17
18
19 class VectorLoadConvention : public LoadConvention {
20 public:
21 enum ParameterIndices {
22 kReceiverIndex,
23 kNameIndex,
24 kSlotIndex,
25 kParameterCount
26 };
27 static const Register SlotRegister();
28 };
29
30
31 class FullVectorLoadConvention : public VectorLoadConvention {
32 public:
33 enum ParameterIndices {
34 kReceiverIndex,
35 kNameIndex,
36 kSlotIndex,
37 kVectorIndex,
38 kParameterCount
39 };
40 static const Register VectorRegister();
41 };
42
43
44 class StoreConvention {
45 public:
46 enum ParameterIndices {
47 kReceiverIndex,
48 kNameIndex,
49 kValueIndex,
50 kParameterCount
51 };
52 static const Register ReceiverRegister();
53 static const Register NameRegister();
54 static const Register ValueRegister();
55
56 // The map register isn't part of the normal call specification, but
57 // ElementsTransitionAndStoreStub, used in polymorphic keyed store
58 // stub implementations requires it to be initialized.
59 static const Register MapRegister();
60 };
61 }
62 } // namespace v8::internal
63
64 #endif // V8_IC_CONVENTIONS_H_
OLDNEW
« 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