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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 253 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); |
254 | 254 |
255 bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 255 bool LoadIsBuiltin(Property* expr, Builtins::Name id); |
256 | 256 |
257 // Get type information for arithmetic operations and compares. | 257 // Get type information for arithmetic operations and compares. |
258 TypeInfo BinaryType(BinaryOperation* expr); | 258 TypeInfo BinaryType(BinaryOperation* expr); |
259 TypeInfo CompareType(CompareOperation* expr); | 259 TypeInfo CompareType(CompareOperation* expr); |
260 TypeInfo SwitchType(CaseClause* clause); | 260 TypeInfo SwitchType(CaseClause* clause); |
261 | 261 |
262 private: | 262 private: |
263 void Initialize(Handle<Code> code); | |
264 | |
265 ZoneMapList* CollectReceiverTypes(int position, | 263 ZoneMapList* CollectReceiverTypes(int position, |
266 Handle<String> name, | 264 Handle<String> name, |
267 Code::Flags flags); | 265 Code::Flags flags); |
268 | 266 |
269 void PopulateMap(Handle<Code> code); | 267 void PopulateMap(Handle<Code> code); |
270 | 268 |
271 void CollectPositions(Code* code, | 269 void CollectPositions(Code* code, |
272 List<int>* code_positions, | 270 List<int>* code_positions, |
273 List<int>* source_positions); | 271 List<int>* source_positions); |
274 | 272 |
| 273 // Returns an element from the backing store. Returns undefined if |
| 274 // there is no information. |
| 275 Handle<Object> GetInfo(int pos); |
| 276 |
275 Handle<Context> global_context_; | 277 Handle<Context> global_context_; |
276 Handle<JSObject> map_; | 278 Handle<NumberDictionary> dictionary_; |
277 | 279 |
278 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 280 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
279 }; | 281 }; |
280 | 282 |
281 } } // namespace v8::internal | 283 } } // namespace v8::internal |
282 | 284 |
283 #endif // V8_TYPE_INFO_H_ | 285 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |