| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 static bool CanRetainOtherContext(Map* map, Context* native_context); | 271 static bool CanRetainOtherContext(Map* map, Context* native_context); |
| 272 static bool CanRetainOtherContext(JSFunction* function, | 272 static bool CanRetainOtherContext(JSFunction* function, |
| 273 Context* native_context); | 273 Context* native_context); |
| 274 | 274 |
| 275 CheckType GetCallCheckType(Call* expr); | 275 CheckType GetCallCheckType(Call* expr); |
| 276 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 276 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); |
| 277 | 277 |
| 278 Handle<JSFunction> GetCallTarget(Call* expr); | 278 Handle<JSFunction> GetCallTarget(Call* expr); |
| 279 Handle<JSFunction> GetCallNewTarget(CallNew* expr); | 279 Handle<JSFunction> GetCallNewTarget(CallNew* expr); |
| 280 ElementsKind GetCallNewElementsKind(CallNew* expr); |
| 280 | 281 |
| 281 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop); | 282 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop); |
| 282 | 283 |
| 283 bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 284 bool LoadIsBuiltin(Property* expr, Builtins::Name id); |
| 284 bool LoadIsStub(Property* expr, ICStub* stub); | 285 bool LoadIsStub(Property* expr, ICStub* stub); |
| 285 | 286 |
| 286 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 287 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
| 287 // of various cylces in our headers. Death to tons of implementations in | 288 // of various cylces in our headers. Death to tons of implementations in |
| 288 // headers!! :-P | 289 // headers!! :-P |
| 289 byte ToBooleanTypes(TypeFeedbackId ast_id); | 290 byte ToBooleanTypes(TypeFeedbackId ast_id); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 316 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 317 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 317 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 318 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 318 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, | 319 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, |
| 319 byte* old_start, | 320 byte* old_start, |
| 320 byte* new_start); | 321 byte* new_start); |
| 321 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); | 322 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
| 322 void ProcessTypeFeedbackCells(Handle<Code> code); | 323 void ProcessTypeFeedbackCells(Handle<Code> code); |
| 323 | 324 |
| 324 // Returns an element from the backing store. Returns undefined if | 325 // Returns an element from the backing store. Returns undefined if |
| 325 // there is no information. | 326 // there is no information. |
| 327 public: |
| 328 // TODO(mvstanton): how to get this information without making the method |
| 329 // public? |
| 326 Handle<Object> GetInfo(TypeFeedbackId ast_id); | 330 Handle<Object> GetInfo(TypeFeedbackId ast_id); |
| 327 | 331 |
| 332 private: |
| 328 Handle<Context> native_context_; | 333 Handle<Context> native_context_; |
| 329 Isolate* isolate_; | 334 Isolate* isolate_; |
| 330 Handle<UnseededNumberDictionary> dictionary_; | 335 Handle<UnseededNumberDictionary> dictionary_; |
| 331 Zone* zone_; | 336 Zone* zone_; |
| 332 | 337 |
| 333 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 338 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 334 }; | 339 }; |
| 335 | 340 |
| 336 } } // namespace v8::internal | 341 } } // namespace v8::internal |
| 337 | 342 |
| 338 #endif // V8_TYPE_INFO_H_ | 343 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |