| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // Get type information for arithmetic operations and compares. | 260 // Get type information for arithmetic operations and compares. |
| 261 TypeInfo BinaryType(BinaryOperation* expr); | 261 TypeInfo BinaryType(BinaryOperation* expr); |
| 262 TypeInfo CompareType(CompareOperation* expr); | 262 TypeInfo CompareType(CompareOperation* expr); |
| 263 TypeInfo SwitchType(CaseClause* clause); | 263 TypeInfo SwitchType(CaseClause* clause); |
| 264 | 264 |
| 265 private: | 265 private: |
| 266 ZoneMapList* CollectReceiverTypes(int position, | 266 ZoneMapList* CollectReceiverTypes(int position, |
| 267 Handle<String> name, | 267 Handle<String> name, |
| 268 Code::Flags flags); | 268 Code::Flags flags); |
| 269 | 269 |
| 270 void SetInfo(int position, Object* target); |
| 271 |
| 270 void PopulateMap(Handle<Code> code); | 272 void PopulateMap(Handle<Code> code); |
| 271 | 273 |
| 272 void CollectPositions(Code* code, | 274 void CollectPositions(Code* code, |
| 273 List<int>* code_positions, | 275 List<int>* code_positions, |
| 274 List<int>* source_positions); | 276 List<int>* source_positions); |
| 275 | 277 |
| 276 // Returns an element from the backing store. Returns undefined if | 278 // Returns an element from the backing store. Returns undefined if |
| 277 // there is no information. | 279 // there is no information. |
| 278 Handle<Object> GetInfo(int pos); | 280 Handle<Object> GetInfo(int pos); |
| 279 | 281 |
| 280 Handle<Context> global_context_; | 282 Handle<Context> global_context_; |
| 281 Handle<NumberDictionary> dictionary_; | 283 Handle<NumberDictionary> dictionary_; |
| 282 | 284 |
| 283 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 285 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 284 }; | 286 }; |
| 285 | 287 |
| 286 } } // namespace v8::internal | 288 } } // namespace v8::internal |
| 287 | 289 |
| 288 #endif // V8_TYPE_INFO_H_ | 290 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |