| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
| 267 // of various cylces in our headers. Death to tons of implementations in | 267 // of various cylces in our headers. Death to tons of implementations in |
| 268 // headers!! :-P | 268 // headers!! :-P |
| 269 byte ToBooleanTypes(unsigned ast_id); | 269 byte ToBooleanTypes(unsigned ast_id); |
| 270 | 270 |
| 271 // Get type information for arithmetic operations and compares. | 271 // Get type information for arithmetic operations and compares. |
| 272 TypeInfo UnaryType(UnaryOperation* expr); | 272 TypeInfo UnaryType(UnaryOperation* expr); |
| 273 TypeInfo BinaryType(BinaryOperation* expr); | 273 TypeInfo BinaryType(BinaryOperation* expr); |
| 274 TypeInfo CompareType(CompareOperation* expr); | 274 TypeInfo CompareType(CompareOperation* expr); |
| 275 bool IsSymbolCompare(CompareOperation* expr); | 275 bool IsSymbolCompare(CompareOperation* expr); |
| 276 Handle<Map> GetCompareMap(CompareOperation* expr); | |
| 277 TypeInfo SwitchType(CaseClause* clause); | 276 TypeInfo SwitchType(CaseClause* clause); |
| 278 TypeInfo IncrementType(CountOperation* expr); | 277 TypeInfo IncrementType(CountOperation* expr); |
| 279 | 278 |
| 280 private: | 279 private: |
| 281 void CollectReceiverTypes(unsigned ast_id, | 280 void CollectReceiverTypes(unsigned ast_id, |
| 282 Handle<String> name, | 281 Handle<String> name, |
| 283 Code::Flags flags, | 282 Code::Flags flags, |
| 284 SmallMapList* types); | 283 SmallMapList* types); |
| 285 | 284 |
| 286 void SetInfo(unsigned ast_id, Object* target); | 285 void SetInfo(unsigned ast_id, Object* target); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 300 Handle<Context> global_context_; | 299 Handle<Context> global_context_; |
| 301 Isolate* isolate_; | 300 Isolate* isolate_; |
| 302 Handle<NumberDictionary> dictionary_; | 301 Handle<NumberDictionary> dictionary_; |
| 303 | 302 |
| 304 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 303 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 305 }; | 304 }; |
| 306 | 305 |
| 307 } } // namespace v8::internal | 306 } } // namespace v8::internal |
| 308 | 307 |
| 309 #endif // V8_TYPE_INFO_H_ | 308 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |