| 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/ast/ast-types.h" | 9 #include "src/ast/ast-types.h" |
| 10 #include "src/contexts.h" | 10 #include "src/contexts.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 private: | 86 private: |
| 87 // Returns true if there is at least one string map and if | 87 // Returns true if there is at least one string map and if |
| 88 // all maps are string maps. | 88 // all maps are string maps. |
| 89 bool HasOnlyStringMaps(SmallMapList* receiver_types); | 89 bool HasOnlyStringMaps(SmallMapList* receiver_types); |
| 90 | 90 |
| 91 void SetInfo(TypeFeedbackId id, Object* target); | 91 void SetInfo(TypeFeedbackId id, Object* target); |
| 92 | 92 |
| 93 void BuildDictionary(Handle<Code> code); | 93 void BuildDictionary(Handle<Code> code); |
| 94 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 94 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 95 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 95 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 96 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, | 96 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, Address old_code_address, |
| 97 Code* old_code, | 97 Address new_code_address); |
| 98 Code* new_code); | |
| 99 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); | 98 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
| 100 | 99 |
| 101 // Returns an element from the backing store. Returns undefined if | 100 // Returns an element from the backing store. Returns undefined if |
| 102 // there is no information. | 101 // there is no information. |
| 103 Handle<Object> GetInfo(TypeFeedbackId id); | 102 Handle<Object> GetInfo(TypeFeedbackId id); |
| 104 | 103 |
| 105 // Returns an element from the type feedback vector. Returns undefined | 104 // Returns an element from the type feedback vector. Returns undefined |
| 106 // if there is no information. | 105 // if there is no information. |
| 107 Handle<Object> GetInfo(FeedbackSlot slot); | 106 Handle<Object> GetInfo(FeedbackSlot slot); |
| 108 | 107 |
| 109 private: | 108 private: |
| 110 Handle<Context> native_context_; | 109 Handle<Context> native_context_; |
| 111 Isolate* isolate_; | 110 Isolate* isolate_; |
| 112 Zone* zone_; | 111 Zone* zone_; |
| 113 Handle<UnseededNumberDictionary> dictionary_; | 112 Handle<UnseededNumberDictionary> dictionary_; |
| 114 Handle<FeedbackVector> feedback_vector_; | 113 Handle<FeedbackVector> feedback_vector_; |
| 115 | 114 |
| 116 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 115 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace internal | 118 } // namespace internal |
| 120 } // namespace v8 | 119 } // namespace v8 |
| 121 | 120 |
| 122 #endif // V8_TYPE_INFO_H_ | 121 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |