OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Handle<String> name, | 123 Handle<String> name, |
124 Code::Flags flags, | 124 Code::Flags flags, |
125 SmallMapList* types); | 125 SmallMapList* types); |
126 | 126 |
127 void SetInfo(TypeFeedbackId id, Object* target); | 127 void SetInfo(TypeFeedbackId id, Object* target); |
128 | 128 |
129 void BuildDictionary(Handle<Code> code); | 129 void BuildDictionary(Handle<Code> code); |
130 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 130 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
131 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 131 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
132 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, | 132 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, |
133 byte* old_start, | 133 Code* old_code, |
134 byte* new_start); | 134 Code* new_code); |
135 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); | 135 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
136 | 136 |
137 // Returns an element from the backing store. Returns undefined if | 137 // Returns an element from the backing store. Returns undefined if |
138 // there is no information. | 138 // there is no information. |
139 Handle<Object> GetInfo(TypeFeedbackId id); | 139 Handle<Object> GetInfo(TypeFeedbackId id); |
140 | 140 |
141 // Returns an element from the type feedback vector. Returns undefined | 141 // Returns an element from the type feedback vector. Returns undefined |
142 // if there is no information. | 142 // if there is no information. |
143 Handle<Object> GetInfo(int slot); | 143 Handle<Object> GetInfo(int slot); |
144 | 144 |
145 private: | 145 private: |
146 Handle<Context> native_context_; | 146 Handle<Context> native_context_; |
147 Zone* zone_; | 147 Zone* zone_; |
148 Handle<UnseededNumberDictionary> dictionary_; | 148 Handle<UnseededNumberDictionary> dictionary_; |
149 Handle<FixedArray> feedback_vector_; | 149 Handle<FixedArray> feedback_vector_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 151 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
152 }; | 152 }; |
153 | 153 |
154 } } // namespace v8::internal | 154 } } // namespace v8::internal |
155 | 155 |
156 #endif // V8_TYPE_INFO_H_ | 156 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |