OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 TypeInfo SwitchType(CaseClause* clause); | 247 TypeInfo SwitchType(CaseClause* clause); |
248 TypeInfo IncrementType(CountOperation* expr); | 248 TypeInfo IncrementType(CountOperation* expr); |
249 | 249 |
250 private: | 250 private: |
251 ZoneMapList* CollectReceiverTypes(unsigned ast_id, | 251 ZoneMapList* CollectReceiverTypes(unsigned ast_id, |
252 Handle<String> name, | 252 Handle<String> name, |
253 Code::Flags flags); | 253 Code::Flags flags); |
254 | 254 |
255 void SetInfo(unsigned ast_id, Object* target); | 255 void SetInfo(unsigned ast_id, Object* target); |
256 | 256 |
257 void PopulateMap(Handle<Code> code); | 257 void BuildDictionary(Handle<Code> code); |
258 | 258 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
259 void CollectIds(Code* code, | 259 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
260 List<int>* code_positions, | 260 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, |
261 List<unsigned>* ast_ids); | 261 byte* old_start, |
| 262 byte* new_start); |
| 263 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
| 264 void ProcessTarget(unsigned ast_id, Code* target); |
262 | 265 |
263 // Returns an element from the backing store. Returns undefined if | 266 // Returns an element from the backing store. Returns undefined if |
264 // there is no information. | 267 // there is no information. |
265 Handle<Object> GetInfo(unsigned ast_id); | 268 Handle<Object> GetInfo(unsigned ast_id); |
266 | 269 |
267 Handle<Context> global_context_; | 270 Handle<Context> global_context_; |
268 Handle<NumberDictionary> dictionary_; | 271 Handle<NumberDictionary> dictionary_; |
269 | 272 |
270 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 273 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
271 }; | 274 }; |
272 | 275 |
273 } } // namespace v8::internal | 276 } } // namespace v8::internal |
274 | 277 |
275 #endif // V8_TYPE_INFO_H_ | 278 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |