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

Unified Diff: src/compiler/js-type-feedback.h

Issue 1133113004: [turbofan] WIP Support vector IC feedback in the JSTypeFeedbackTable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/compiler/ast-graph-builder.cc ('k') | src/compiler/js-type-feedback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-type-feedback.h
diff --git a/src/compiler/js-type-feedback.h b/src/compiler/js-type-feedback.h
index 4f1f045d6d3397daf01ae82a9e5158133464400d..17a6b588a4f3af52883908479f4ad511801ba139 100644
--- a/src/compiler/js-type-feedback.h
+++ b/src/compiler/js-type-feedback.h
@@ -27,20 +27,33 @@ class JSTypeFeedbackTable : public ZoneObject {
public:
explicit JSTypeFeedbackTable(Zone* zone);
- // TODO(titzer): support recording the feedback vector slot.
-
void Record(Node* node, TypeFeedbackId id);
+ void Record(Node* node, FeedbackVectorICSlot slot);
private:
friend class JSTypeFeedbackSpecializer;
typedef std::map<NodeId, TypeFeedbackId, std::less<NodeId>,
zone_allocator<TypeFeedbackId> > TypeFeedbackIdMap;
+ typedef std::map<NodeId, FeedbackVectorICSlot, std::less<NodeId>,
+ zone_allocator<FeedbackVectorICSlot> >
+ FeedbackVectorICSlotMap;
+
+ TypeFeedbackIdMap type_feedback_id_map_;
+ FeedbackVectorICSlotMap feedback_vector_ic_slot_map_;
+
+ TypeFeedbackId FindTypeFeedbackId(Node* node) {
+ TypeFeedbackIdMap::const_iterator it =
+ type_feedback_id_map_.find(node->id());
+ return it == type_feedback_id_map_.end() ? TypeFeedbackId::None()
+ : it->second;
+ }
- TypeFeedbackIdMap map_;
-
- TypeFeedbackId find(Node* node) {
- TypeFeedbackIdMap::const_iterator it = map_.find(node->id());
- return it == map_.end() ? TypeFeedbackId::None() : it->second;
+ FeedbackVectorICSlot FindFeedbackVectorICSlot(Node* node) {
+ FeedbackVectorICSlotMap::const_iterator it =
+ feedback_vector_ic_slot_map_.find(node->id());
+ return it == feedback_vector_ic_slot_map_.end()
+ ? FeedbackVectorICSlot::Invalid()
+ : it->second;
}
};
@@ -90,9 +103,6 @@ class JSTypeFeedbackSpecializer : public AdvancedReducer {
void BuildMapCheck(Node* receiver, Handle<Map> map, bool smi_check,
Node* effect, Node* control, Node** success, Node** fail);
- void GatherReceiverTypes(Node* receiver, Node* effect, TypeFeedbackId id,
- Handle<Name> property, SmallMapList* maps);
-
Node* GetFrameStateBefore(Node* node);
};
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-type-feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698