| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Handle<JSGlobalPropertyCell> GetCallNewAllocationInfoCell(CallNew* expr); | 286 Handle<Cell> 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Handle<Object> GetInfo(TypeFeedbackId ast_id); | 341 Handle<Object> GetInfo(TypeFeedbackId ast_id); |
| 342 | 342 |
| 343 // Return the cell that contains type feedback. | 343 // Return the cell that contains type feedback. |
| 344 Handle<JSGlobalPropertyCell> GetInfoCell(TypeFeedbackId ast_id); | 344 Handle<Cell> GetInfoCell(TypeFeedbackId ast_id); |
| 345 | 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_ |
| OLD | NEW |