Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: src/type-info.h

Issue 7204003: Refactor the way we collect the information for associating type-related infos (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/type-info.cc » ('j') | src/type-info.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 TypeInfo SwitchType(CaseClause* clause); 241 TypeInfo SwitchType(CaseClause* clause);
242 TypeInfo IncrementType(CountOperation* expr); 242 TypeInfo IncrementType(CountOperation* expr);
243 243
244 private: 244 private:
245 ZoneMapList* CollectReceiverTypes(unsigned ast_id, 245 ZoneMapList* CollectReceiverTypes(unsigned ast_id,
246 Handle<String> name, 246 Handle<String> name,
247 Code::Flags flags); 247 Code::Flags flags);
248 248
249 void SetInfo(unsigned ast_id, Object* target); 249 void SetInfo(unsigned ast_id, Object* target);
250 250
251 void PopulateMap(Handle<Code> code); 251 void BuildDictionary(Handle<Code> code);
252 252 void GetRelocInfos(Handle<Code> code, List<RelocInfo>* infos);
253 void CollectIds(Code* code, 253 void CreateDictionary(Handle<Code> code, List<RelocInfo>* infos);
254 List<int>* code_positions, 254 void RelocateRelocInfos(List<RelocInfo>* infos,
255 List<unsigned>* ast_ids); 255 byte* old_start,
256 byte* new_start);
257 void ProcessRelocInfos(List<RelocInfo>* infos);
258 void ProcessTarget(unsigned ast_id, Code* target);
256 259
257 // Returns an element from the backing store. Returns undefined if 260 // Returns an element from the backing store. Returns undefined if
258 // there is no information. 261 // there is no information.
259 Handle<Object> GetInfo(unsigned ast_id); 262 Handle<Object> GetInfo(unsigned ast_id);
260 263
261 Handle<Context> global_context_; 264 Handle<Context> global_context_;
262 Handle<NumberDictionary> dictionary_; 265 Handle<NumberDictionary> dictionary_;
263 266
264 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 267 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
265 }; 268 };
266 269
267 } } // namespace v8::internal 270 } } // namespace v8::internal
268 271
269 #endif // V8_TYPE_INFO_H_ 272 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | src/type-info.cc » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698