OLD | NEW |
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_TYPE_INFO_H_ | 5 #ifndef V8_TYPE_INFO_H_ |
6 #define V8_TYPE_INFO_H_ | 6 #define V8_TYPE_INFO_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/contexts.h" | 9 #include "src/contexts.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Type** right, | 90 Type** right, |
91 Type** combined); | 91 Type** combined); |
92 | 92 |
93 Type* CountType(TypeFeedbackId id); | 93 Type* CountType(TypeFeedbackId id); |
94 | 94 |
95 Zone* zone() const { return zone_; } | 95 Zone* zone() const { return zone_; } |
96 Isolate* isolate() const { return isolate_; } | 96 Isolate* isolate() const { return isolate_; } |
97 | 97 |
98 private: | 98 private: |
99 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, | 99 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, |
100 Handle<Name> name, Code::Flags flags, | 100 Handle<Name> name, SmallMapList* types); |
101 SmallMapList* types); | |
102 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, | 101 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, |
103 Handle<Name> name, Code::Flags flags, | 102 Handle<Name> name, SmallMapList* types); |
104 SmallMapList* types); | |
105 | 103 |
106 // Returns true if there is at least one string map and if | 104 // Returns true if there is at least one string map and if |
107 // all maps are string maps. | 105 // all maps are string maps. |
108 bool HasOnlyStringMaps(SmallMapList* receiver_types); | 106 bool HasOnlyStringMaps(SmallMapList* receiver_types); |
109 | 107 |
110 void SetInfo(TypeFeedbackId id, Object* target); | 108 void SetInfo(TypeFeedbackId id, Object* target); |
111 | 109 |
112 void BuildDictionary(Handle<Code> code); | 110 void BuildDictionary(Handle<Code> code); |
113 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 111 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
114 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 112 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
(...skipping 17 matching lines...) Expand all Loading... |
132 Handle<UnseededNumberDictionary> dictionary_; | 130 Handle<UnseededNumberDictionary> dictionary_; |
133 Handle<TypeFeedbackVector> feedback_vector_; | 131 Handle<TypeFeedbackVector> feedback_vector_; |
134 | 132 |
135 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 133 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
136 }; | 134 }; |
137 | 135 |
138 } // namespace internal | 136 } // namespace internal |
139 } // namespace v8 | 137 } // namespace v8 |
140 | 138 |
141 #endif // V8_TYPE_INFO_H_ | 139 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |