| 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, SmallMapList* types); | 100 Handle<Name> name, Code::Flags flags, |
| 101 SmallMapList* types); |
| 101 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, | 102 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, |
| 102 Handle<Name> name, SmallMapList* types); | 103 Handle<Name> name, Code::Flags flags, |
| 104 SmallMapList* types); |
| 103 | 105 |
| 104 // Returns true if there is at least one string map and if | 106 // Returns true if there is at least one string map and if |
| 105 // all maps are string maps. | 107 // all maps are string maps. |
| 106 bool HasOnlyStringMaps(SmallMapList* receiver_types); | 108 bool HasOnlyStringMaps(SmallMapList* receiver_types); |
| 107 | 109 |
| 108 void SetInfo(TypeFeedbackId id, Object* target); | 110 void SetInfo(TypeFeedbackId id, Object* target); |
| 109 | 111 |
| 110 void BuildDictionary(Handle<Code> code); | 112 void BuildDictionary(Handle<Code> code); |
| 111 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 113 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 112 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 114 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 130 Handle<UnseededNumberDictionary> dictionary_; | 132 Handle<UnseededNumberDictionary> dictionary_; |
| 131 Handle<TypeFeedbackVector> feedback_vector_; | 133 Handle<TypeFeedbackVector> feedback_vector_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 135 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace internal | 138 } // namespace internal |
| 137 } // namespace v8 | 139 } // namespace v8 |
| 138 | 140 |
| 139 #endif // V8_TYPE_INFO_H_ | 141 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |