| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 void BinaryType(BinaryOperation* expr, | 305 void BinaryType(BinaryOperation* expr, |
| 306 TypeInfo* left, | 306 TypeInfo* left, |
| 307 TypeInfo* right, | 307 TypeInfo* right, |
| 308 TypeInfo* result); | 308 TypeInfo* result); |
| 309 void CompareType(CompareOperation* expr, | 309 void CompareType(CompareOperation* expr, |
| 310 TypeInfo* left_type, | 310 TypeInfo* left_type, |
| 311 TypeInfo* right_type, | 311 TypeInfo* right_type, |
| 312 TypeInfo* overall_type); | 312 TypeInfo* overall_type); |
| 313 Handle<Map> GetCompareMap(CompareOperation* expr); | 313 Handle<Map> GetCompareMap(CompareOperation* expr); |
| 314 TypeInfo SwitchType(CaseClause* clause); | 314 TypeInfo SwitchType(CaseClause* clause); |
| 315 int SwitchHitCount(CaseClause* clause); |
| 315 TypeInfo IncrementType(CountOperation* expr); | 316 TypeInfo IncrementType(CountOperation* expr); |
| 316 | 317 |
| 317 Zone* zone() const { return zone_; } | 318 Zone* zone() const { return zone_; } |
| 318 Isolate* isolate() const { return isolate_; } | 319 Isolate* isolate() const { return isolate_; } |
| 319 | 320 |
| 320 private: | 321 private: |
| 321 void CollectReceiverTypes(TypeFeedbackId ast_id, | 322 void CollectReceiverTypes(TypeFeedbackId ast_id, |
| 322 Handle<String> name, | 323 Handle<String> name, |
| 323 Code::Flags flags, | 324 Code::Flags flags, |
| 324 SmallMapList* types); | 325 SmallMapList* types); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 335 void ProcessTypeFeedbackCells(Handle<Code> code); | 336 void ProcessTypeFeedbackCells(Handle<Code> code); |
| 336 | 337 |
| 337 // Returns an element from the backing store. Returns undefined if | 338 // Returns an element from the backing store. Returns undefined if |
| 338 // there is no information. | 339 // there is no information. |
| 339 public: | 340 public: |
| 340 // TODO(mvstanton): how to get this information without making the method | 341 // TODO(mvstanton): how to get this information without making the method |
| 341 // public? | 342 // public? |
| 342 Handle<Object> GetInfo(TypeFeedbackId ast_id); | 343 Handle<Object> GetInfo(TypeFeedbackId ast_id); |
| 343 | 344 |
| 344 private: | 345 private: |
| 346 Handle<Code> code_; |
| 345 Handle<Context> native_context_; | 347 Handle<Context> native_context_; |
| 346 Isolate* isolate_; | 348 Isolate* isolate_; |
| 347 Zone* zone_; | 349 Zone* zone_; |
| 348 Handle<UnseededNumberDictionary> dictionary_; | 350 Handle<UnseededNumberDictionary> dictionary_; |
| 349 | 351 |
| 350 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 352 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 } } // namespace v8::internal | 355 } } // namespace v8::internal |
| 354 | 356 |
| 355 #endif // V8_TYPE_INFO_H_ | 357 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |