| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // of various cycles in our headers. Death to tons of implementations in | 292 // of various cycles in our headers. Death to tons of implementations in |
| 293 // headers!! :-P | 293 // headers!! :-P |
| 294 byte ToBooleanTypes(TypeFeedbackId id); | 294 byte ToBooleanTypes(TypeFeedbackId id); |
| 295 | 295 |
| 296 // Get type information for arithmetic operations and compares. | 296 // Get type information for arithmetic operations and compares. |
| 297 Handle<Type> UnaryType(TypeFeedbackId id); | 297 Handle<Type> UnaryType(TypeFeedbackId id); |
| 298 void BinaryType(TypeFeedbackId id, | 298 void BinaryType(TypeFeedbackId id, |
| 299 Handle<Type>* left, | 299 Handle<Type>* left, |
| 300 Handle<Type>* right, | 300 Handle<Type>* right, |
| 301 Handle<Type>* result, | 301 Handle<Type>* result, |
| 302 bool* has_fixed_right_arg, | 302 Maybe<int>* fixed_right_arg); |
| 303 int* fixed_right_arg_value); | |
| 304 | 303 |
| 305 void CompareTypes(TypeFeedbackId id, | 304 void CompareType(TypeFeedbackId id, |
| 306 Handle<Type>* left_type, | 305 Handle<Type>* left_type, |
| 307 Handle<Type>* right_type, | 306 Handle<Type>* right_type, |
| 308 Handle<Type>* overall_type, | 307 Handle<Type>* combined_type); |
| 309 Handle<Type>* compare_nil_type); | |
| 310 | 308 |
| 311 Handle<Type> ClauseType(TypeFeedbackId id); | 309 Handle<Type> ClauseType(TypeFeedbackId id); |
| 312 | 310 |
| 313 TypeInfo IncrementType(CountOperation* expr); | 311 TypeInfo IncrementType(CountOperation* expr); |
| 314 | 312 |
| 315 Zone* zone() const { return zone_; } | 313 Zone* zone() const { return zone_; } |
| 316 Isolate* isolate() const { return isolate_; } | 314 Isolate* isolate() const { return isolate_; } |
| 317 | 315 |
| 318 private: | 316 private: |
| 319 void CollectReceiverTypes(TypeFeedbackId ast_id, | 317 void CollectReceiverTypes(TypeFeedbackId ast_id, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 344 Isolate* isolate_; | 342 Isolate* isolate_; |
| 345 Zone* zone_; | 343 Zone* zone_; |
| 346 Handle<UnseededNumberDictionary> dictionary_; | 344 Handle<UnseededNumberDictionary> dictionary_; |
| 347 | 345 |
| 348 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 346 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 349 }; | 347 }; |
| 350 | 348 |
| 351 } } // namespace v8::internal | 349 } } // namespace v8::internal |
| 352 | 350 |
| 353 #endif // V8_TYPE_INFO_H_ | 351 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |