| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9144d37 commit c1effb1
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1012,7 +1012,7 @@ class InstructionBlock final : public ZoneObject { | |||
| 1012 | 1012 | ||
| 1013 | 1013 | typedef ZoneDeque<Constant> ConstantDeque; | |
| 1014 | 1014 | typedef std::map<int, Constant, std::less<int>, | |
| 1015 | - zone_allocator<std::pair<int, Constant> > > ConstantMap; | ||
| 1015 | + zone_allocator<std::pair<const int, Constant> > > ConstantMap; | ||
| 1016 | 1016 | ||
| 1017 | 1017 | typedef ZoneDeque<Instruction*> InstructionDeque; | |
| 1018 | 1018 | typedef ZoneDeque<ReferenceMap*> ReferenceMapDeque; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,9 +33,10 @@ class JSTypeFeedbackTable : public ZoneObject { | |||
| 33 | 33 | private: | |
| 34 | 34 | friend class JSTypeFeedbackSpecializer; | |
| 35 | 35 | typedef std::map<NodeId, TypeFeedbackId, std::less<NodeId>, | |
| 36 | - zone_allocator<TypeFeedbackId> > TypeFeedbackIdMap; | ||
| 36 | + zone_allocator<std::pair<const NodeId, TypeFeedbackId> > > | ||
| 37 | + TypeFeedbackIdMap; | ||
| 37 | 38 | typedef std::map<NodeId, FeedbackVectorICSlot, std::less<NodeId>, | |
| 38 | - zone_allocator<FeedbackVectorICSlot> > | ||
| 39 | + zone_allocator<std::pair<const NodeId, FeedbackVectorICSlot> > > | ||
| 39 | 40 | FeedbackVectorICSlotMap; | |
| 40 | 41 | ||
| 41 | 42 | TypeFeedbackIdMap type_feedback_id_map_; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,12 +114,12 @@ class ZoneSet : public std::set<K, Compare, zone_allocator<K>> { | |||
| 114 | 114 | // a zone allocator. | |
| 115 | 115 | template <typename K, typename V, typename Compare = std::less<K>> | |
| 116 | 116 | class ZoneMap | |
| 117 | - : public std::map<K, V, Compare, zone_allocator<std::pair<K, V>>> { | ||
| 117 | + : public std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>> { | ||
| 118 | 118 | public: | |
| 119 | 119 | // Constructs an empty map. | |
| 120 | 120 | explicit ZoneMap(Zone* zone) | |
| 121 | - : std::map<K, V, Compare, zone_allocator<std::pair<K, V>>>( | ||
| 122 | - Compare(), zone_allocator<std::pair<K, V>>(zone)) {} | ||
| 121 | + : std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>>( | ||
| 122 | + Compare(), zone_allocator<std::pair<const K, V>>(zone)) {} | ||
| 123 | 123 | }; | |
| 124 | 124 | ||
| 125 | 125 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments