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

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

Issue 16408005: CallNewArray sites need the original feedback cell at crankshaft time. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
OLDNEW
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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 static bool CanRetainOtherContext(Map* map, Context* native_context); 277 static bool CanRetainOtherContext(Map* map, Context* native_context);
278 static bool CanRetainOtherContext(JSFunction* function, 278 static bool CanRetainOtherContext(JSFunction* function,
279 Context* native_context); 279 Context* native_context);
280 280
281 void CollectPolymorphicMaps(Handle<Code> code, SmallMapList* types); 281 void CollectPolymorphicMaps(Handle<Code> code, SmallMapList* types);
282 282
283 CheckType GetCallCheckType(Call* expr); 283 CheckType GetCallCheckType(Call* expr);
284 Handle<JSFunction> GetCallTarget(Call* expr); 284 Handle<JSFunction> GetCallTarget(Call* expr);
285 Handle<JSFunction> GetCallNewTarget(CallNew* expr); 285 Handle<JSFunction> GetCallNewTarget(CallNew* expr);
286 ElementsKind GetCallNewElementsKind(CallNew* expr); 286 Handle<JSGlobalPropertyCell> GetCallNewAllocationInfoCell(CallNew* expr);
287 287
288 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteralProperty* prop); 288 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteralProperty* prop);
289 289
290 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 290 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
291 bool LoadIsStub(Property* expr, ICStub* stub); 291 bool LoadIsStub(Property* expr, ICStub* stub);
292 292
293 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 293 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
294 // of various cycles in our headers. Death to tons of implementations in 294 // of various cycles in our headers. Death to tons of implementations in
295 // headers!! :-P 295 // headers!! :-P
296 byte ToBooleanTypes(TypeFeedbackId ast_id); 296 byte ToBooleanTypes(TypeFeedbackId ast_id);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); 331 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos);
332 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); 332 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos);
333 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 333 void RelocateRelocInfos(ZoneList<RelocInfo>* infos,
334 byte* old_start, 334 byte* old_start,
335 byte* new_start); 335 byte* new_start);
336 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 336 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
337 void ProcessTypeFeedbackCells(Handle<Code> code); 337 void ProcessTypeFeedbackCells(Handle<Code> code);
338 338
339 // Returns an element from the backing store. Returns undefined if 339 // Returns an element from the backing store. Returns undefined if
340 // there is no information. 340 // there is no information.
341 public:
342 // TODO(mvstanton): how to get this information without making the method
343 // public?
344 Handle<Object> GetInfo(TypeFeedbackId ast_id); 341 Handle<Object> GetInfo(TypeFeedbackId ast_id);
345 342
343 // Return the cell that contains type feedback.
344 Handle<JSGlobalPropertyCell> GetInfoCell(TypeFeedbackId ast_id);
345
346 private: 346 private:
347 Handle<Context> native_context_; 347 Handle<Context> native_context_;
348 Isolate* isolate_; 348 Isolate* isolate_;
349 Zone* zone_; 349 Zone* zone_;
350 Handle<UnseededNumberDictionary> dictionary_; 350 Handle<UnseededNumberDictionary> dictionary_;
351 351
352 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 352 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
353 }; 353 };
354 354
355 } } // namespace v8::internal 355 } } // namespace v8::internal
356 356
357 #endif // V8_TYPE_INFO_H_ 357 #endif // V8_TYPE_INFO_H_
OLDNEW
« src/ast.cc ('K') | « src/hydrogen.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698