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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // TODO(1571) We can't use CompareNilICStub::Types as the return value because | 298 // TODO(1571) We can't use CompareNilICStub::Types as the return value because |
299 // of various cylces in our headers. Death to tons of implementations in | 299 // of various cylces in our headers. Death to tons of implementations in |
300 // headers!! :-P | 300 // headers!! :-P |
301 byte CompareNilTypes(CompareOperation* expr); | 301 byte CompareNilTypes(CompareOperation* expr); |
302 | 302 |
303 // Get type information for arithmetic operations and compares. | 303 // Get type information for arithmetic operations and compares. |
304 TypeInfo UnaryType(UnaryOperation* expr); | 304 TypeInfo UnaryType(UnaryOperation* expr); |
305 void BinaryType(BinaryOperation* expr, | 305 void BinaryType(BinaryOperation* expr, |
306 TypeInfo* left, | 306 TypeInfo* left, |
307 TypeInfo* right, | 307 TypeInfo* right, |
308 TypeInfo* result); | 308 TypeInfo* result, |
| 309 bool* has_fixed_right_arg, |
| 310 int* fixed_right_arg_value); |
309 void CompareType(CompareOperation* expr, | 311 void CompareType(CompareOperation* expr, |
310 TypeInfo* left_type, | 312 TypeInfo* left_type, |
311 TypeInfo* right_type, | 313 TypeInfo* right_type, |
312 TypeInfo* overall_type); | 314 TypeInfo* overall_type); |
313 Handle<Map> GetCompareMap(CompareOperation* expr); | 315 Handle<Map> GetCompareMap(CompareOperation* expr); |
314 TypeInfo SwitchType(CaseClause* clause); | 316 TypeInfo SwitchType(CaseClause* clause); |
315 TypeInfo IncrementType(CountOperation* expr); | 317 TypeInfo IncrementType(CountOperation* expr); |
316 | 318 |
317 Zone* zone() const { return zone_; } | 319 Zone* zone() const { return zone_; } |
318 Isolate* isolate() const { return isolate_; } | 320 Isolate* isolate() const { return isolate_; } |
(...skipping 27 matching lines...) Expand all Loading... |
346 Isolate* isolate_; | 348 Isolate* isolate_; |
347 Zone* zone_; | 349 Zone* zone_; |
348 Handle<UnseededNumberDictionary> dictionary_; | 350 Handle<UnseededNumberDictionary> dictionary_; |
349 | 351 |
350 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 352 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
351 }; | 353 }; |
352 | 354 |
353 } } // namespace v8::internal | 355 } } // namespace v8::internal |
354 | 356 |
355 #endif // V8_TYPE_INFO_H_ | 357 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |