| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 294 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
| 295 // of various cycles in our headers. Death to tons of implementations in | 295 // of various cycles in our headers. Death to tons of implementations in |
| 296 // headers!! :-P | 296 // headers!! :-P |
| 297 byte ToBooleanTypes(TypeFeedbackId id); | 297 byte ToBooleanTypes(TypeFeedbackId id); |
| 298 | 298 |
| 299 // Get type information for arithmetic operations and compares. | 299 // Get type information for arithmetic operations and compares. |
| 300 void BinaryType(TypeFeedbackId id, | 300 void BinaryType(TypeFeedbackId id, |
| 301 Handle<Type>* left, | 301 Handle<Type>* left, |
| 302 Handle<Type>* right, | 302 Handle<Type>* right, |
| 303 Handle<Type>* result, | 303 Handle<Type>* result, |
| 304 Maybe<int>* fixed_right_arg, | 304 Maybe<int>* fixed_right_arg); |
| 305 Token::Value operation); | |
| 306 | 305 |
| 307 void CompareType(TypeFeedbackId id, | 306 void CompareType(TypeFeedbackId id, |
| 308 Handle<Type>* left, | 307 Handle<Type>* left, |
| 309 Handle<Type>* right, | 308 Handle<Type>* right, |
| 310 Handle<Type>* combined); | 309 Handle<Type>* combined); |
| 311 | 310 |
| 312 Handle<Type> ClauseType(TypeFeedbackId id); | 311 Handle<Type> ClauseType(TypeFeedbackId id); |
| 313 | 312 |
| 314 Handle<Type> IncrementType(CountOperation* expr); | 313 TypeInfo IncrementType(CountOperation* expr); |
| 315 | 314 |
| 316 Zone* zone() const { return zone_; } | 315 Zone* zone() const { return zone_; } |
| 317 Isolate* isolate() const { return isolate_; } | 316 Isolate* isolate() const { return isolate_; } |
| 318 | 317 |
| 319 private: | 318 private: |
| 320 void CollectReceiverTypes(TypeFeedbackId ast_id, | 319 void CollectReceiverTypes(TypeFeedbackId ast_id, |
| 321 Handle<String> name, | 320 Handle<String> name, |
| 322 Code::Flags flags, | 321 Code::Flags flags, |
| 323 SmallMapList* types); | 322 SmallMapList* types); |
| 324 | 323 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 345 Isolate* isolate_; | 344 Isolate* isolate_; |
| 346 Zone* zone_; | 345 Zone* zone_; |
| 347 Handle<UnseededNumberDictionary> dictionary_; | 346 Handle<UnseededNumberDictionary> dictionary_; |
| 348 | 347 |
| 349 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 348 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 353 | 352 |
| 354 #endif // V8_TYPE_INFO_H_ | 353 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |