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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 bool LoadIsPolymorphic(Property* expr); | 246 bool LoadIsPolymorphic(Property* expr); |
247 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id); | 247 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id); |
248 bool StoreIsPolymorphic(TypeFeedbackId ast_id); | 248 bool StoreIsPolymorphic(TypeFeedbackId ast_id); |
249 bool CallIsMonomorphic(Call* expr); | 249 bool CallIsMonomorphic(Call* expr); |
250 bool CallNewIsMonomorphic(CallNew* expr); | 250 bool CallNewIsMonomorphic(CallNew* expr); |
251 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteral::Property* prop); | 251 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteral::Property* prop); |
252 | 252 |
253 bool IsForInFastCase(ForInStatement* expr); | 253 bool IsForInFastCase(ForInStatement* expr); |
254 | 254 |
255 Handle<Map> LoadMonomorphicReceiverType(Property* expr); | 255 Handle<Map> LoadMonomorphicReceiverType(Property* expr); |
256 Handle<Map> StoreMonomorphicReceiverType(TypeFeedbackId ast_id); | 256 Handle<Map> StoreMonomorphicReceiverType(TypeFeedbackId id); |
| 257 Handle<Map> CompareNilMonomorphicReceiverType(TypeFeedbackId id); |
257 | 258 |
258 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId ast_id); | 259 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId ast_id); |
259 | 260 |
260 void LoadReceiverTypes(Property* expr, | 261 void LoadReceiverTypes(Property* expr, |
261 Handle<String> name, | 262 Handle<String> name, |
262 SmallMapList* types); | 263 SmallMapList* types); |
263 void StoreReceiverTypes(Assignment* expr, | 264 void StoreReceiverTypes(Assignment* expr, |
264 Handle<String> name, | 265 Handle<String> name, |
265 SmallMapList* types); | 266 SmallMapList* types); |
266 void CallReceiverTypes(Call* expr, | 267 void CallReceiverTypes(Call* expr, |
(...skipping 19 matching lines...) Expand all Loading... |
286 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop); | 287 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop); |
287 | 288 |
288 bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 289 bool LoadIsBuiltin(Property* expr, Builtins::Name id); |
289 bool LoadIsStub(Property* expr, ICStub* stub); | 290 bool LoadIsStub(Property* expr, ICStub* stub); |
290 | 291 |
291 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 292 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
292 // of various cylces in our headers. Death to tons of implementations in | 293 // of various cylces in our headers. Death to tons of implementations in |
293 // headers!! :-P | 294 // headers!! :-P |
294 byte ToBooleanTypes(TypeFeedbackId ast_id); | 295 byte ToBooleanTypes(TypeFeedbackId ast_id); |
295 | 296 |
| 297 // TODO(1571) We can't use CompareNilICStub::Types as the return value because |
| 298 // of various cylces in our headers. Death to tons of implementations in |
| 299 // headers!! :-P |
| 300 byte CompareNilTypes(TypeFeedbackId ast_id); |
| 301 |
296 // Get type information for arithmetic operations and compares. | 302 // Get type information for arithmetic operations and compares. |
297 TypeInfo UnaryType(UnaryOperation* expr); | 303 TypeInfo UnaryType(UnaryOperation* expr); |
298 void BinaryType(BinaryOperation* expr, | 304 void BinaryType(BinaryOperation* expr, |
299 TypeInfo* left, | 305 TypeInfo* left, |
300 TypeInfo* right, | 306 TypeInfo* right, |
301 TypeInfo* result); | 307 TypeInfo* result); |
302 void CompareType(CompareOperation* expr, | 308 void CompareType(CompareOperation* expr, |
303 TypeInfo* left_type, | 309 TypeInfo* left_type, |
304 TypeInfo* right_type, | 310 TypeInfo* right_type, |
305 TypeInfo* overall_type); | 311 TypeInfo* overall_type); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 Isolate* isolate_; | 344 Isolate* isolate_; |
339 Zone* zone_; | 345 Zone* zone_; |
340 Handle<UnseededNumberDictionary> dictionary_; | 346 Handle<UnseededNumberDictionary> dictionary_; |
341 | 347 |
342 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 348 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
343 }; | 349 }; |
344 | 350 |
345 } } // namespace v8::internal | 351 } } // namespace v8::internal |
346 | 352 |
347 #endif // V8_TYPE_INFO_H_ | 353 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |