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

Side by Side Diff: src/ic/ic-state.h

Issue 680883004: Introduce FeedbackNexus for vector-based ics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch One. Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_IC_STATE_H_ 5 #ifndef V8_IC_STATE_H_
6 #define V8_IC_STATE_H_ 6 #define V8_IC_STATE_H_
7 7
8 #include "src/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 13
14 const int kMaxKeyedPolymorphism = 4; 14 const int kMaxKeyedPolymorphism = 4;
15 15
16 16
17 class ICUtility : public AllStatic { 17 class ICUtility : public AllStatic {
18 public: 18 public:
19 // Clear the inline cache to initial state. 19 // Clear the inline cache to initial state.
20 static void Clear(Isolate* isolate, Address address, 20 static void Clear(Isolate* isolate, Address address,
21 ConstantPoolArray* constant_pool); 21 ConstantPoolArray* constant_pool);
22 // Clear a vector-based inline cache to initial state. 22 // Clear a vector-based inline cache to initial state.
23 static void Clear(Isolate* isolate, Code::Kind kind, Code* host, 23 static void Clear(Isolate* isolate, Code::Kind kind, Code* host,
24 TypeFeedbackVector* vector, FeedbackVectorICSlot slot); 24 FeedbackNexus* nexus);
25 }; 25 };
26 26
27 27
28 class CallICState FINAL BASE_EMBEDDED { 28 class CallICState FINAL BASE_EMBEDDED {
29 public: 29 public:
30 explicit CallICState(ExtraICState extra_ic_state); 30 explicit CallICState(ExtraICState extra_ic_state);
31 31
32 enum CallType { METHOD, FUNCTION }; 32 enum CallType { METHOD, FUNCTION };
33 33
34 CallICState(int argc, CallType call_type) 34 CallICState(int argc, CallType call_type)
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 private: 232 private:
233 class ContextualModeBits : public BitField<ContextualMode, 0, 1> {}; 233 class ContextualModeBits : public BitField<ContextualMode, 0, 1> {};
234 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0); 234 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0);
235 235
236 const ExtraICState state_; 236 const ExtraICState state_;
237 }; 237 };
238 } 238 }
239 } 239 }
240 240
241 #endif // V8_IC_STATE_H_ 241 #endif // V8_IC_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698