OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 void CallReceiverTypes(Call* expr, | 236 void CallReceiverTypes(Call* expr, |
237 Handle<String> name, | 237 Handle<String> name, |
238 CallKind call_kind, | 238 CallKind call_kind, |
239 SmallMapList* types); | 239 SmallMapList* types); |
240 void CollectKeyedReceiverTypes(unsigned ast_id, | 240 void CollectKeyedReceiverTypes(unsigned ast_id, |
241 SmallMapList* types); | 241 SmallMapList* types); |
242 | 242 |
243 CheckType GetCallCheckType(Call* expr); | 243 CheckType GetCallCheckType(Call* expr); |
244 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 244 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); |
245 | 245 |
| 246 Handle<JSFunction> GetCallTarget(Call* expr); |
| 247 |
246 bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 248 bool LoadIsBuiltin(Property* expr, Builtins::Name id); |
247 | 249 |
248 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 250 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
249 // of various cylces in our headers. Death to tons of implementations in | 251 // of various cylces in our headers. Death to tons of implementations in |
250 // headers!! :-P | 252 // headers!! :-P |
251 byte ToBooleanTypes(unsigned ast_id); | 253 byte ToBooleanTypes(unsigned ast_id); |
252 | 254 |
253 // Get type information for arithmetic operations and compares. | 255 // Get type information for arithmetic operations and compares. |
254 TypeInfo UnaryType(UnaryOperation* expr); | 256 TypeInfo UnaryType(UnaryOperation* expr); |
255 TypeInfo BinaryType(BinaryOperation* expr); | 257 TypeInfo BinaryType(BinaryOperation* expr); |
(...skipping 10 matching lines...) Expand all Loading... |
266 | 268 |
267 void SetInfo(unsigned ast_id, Object* target); | 269 void SetInfo(unsigned ast_id, Object* target); |
268 | 270 |
269 void BuildDictionary(Handle<Code> code); | 271 void BuildDictionary(Handle<Code> code); |
270 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 272 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
271 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 273 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
272 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, | 274 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, |
273 byte* old_start, | 275 byte* old_start, |
274 byte* new_start); | 276 byte* new_start); |
275 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); | 277 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
276 void ProcessTarget(unsigned ast_id, Code* target); | 278 void ProcessTargetAt(Address target_address, unsigned ast_id); |
277 | 279 |
278 // Returns an element from the backing store. Returns undefined if | 280 // Returns an element from the backing store. Returns undefined if |
279 // there is no information. | 281 // there is no information. |
280 Handle<Object> GetInfo(unsigned ast_id); | 282 Handle<Object> GetInfo(unsigned ast_id); |
281 | 283 |
282 Handle<Context> global_context_; | 284 Handle<Context> global_context_; |
283 Handle<NumberDictionary> dictionary_; | 285 Handle<NumberDictionary> dictionary_; |
284 | 286 |
285 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 287 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
286 }; | 288 }; |
287 | 289 |
288 } } // namespace v8::internal | 290 } } // namespace v8::internal |
289 | 291 |
290 #endif // V8_TYPE_INFO_H_ | 292 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |