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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 252 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
253 // of various cylces in our headers. Death to tons of implementations in | 253 // of various cylces in our headers. Death to tons of implementations in |
254 // headers!! :-P | 254 // headers!! :-P |
255 byte ToBooleanTypes(unsigned ast_id); | 255 byte ToBooleanTypes(unsigned ast_id); |
256 | 256 |
257 // Get type information for arithmetic operations and compares. | 257 // Get type information for arithmetic operations and compares. |
258 TypeInfo UnaryType(UnaryOperation* expr); | 258 TypeInfo UnaryType(UnaryOperation* expr); |
259 TypeInfo BinaryType(BinaryOperation* expr); | 259 TypeInfo BinaryType(BinaryOperation* expr); |
260 TypeInfo CompareType(CompareOperation* expr); | 260 TypeInfo CompareType(CompareOperation* expr); |
261 bool IsSymbolCompare(CompareOperation* expr); | 261 bool IsSymbolCompare(CompareOperation* expr); |
| 262 Handle<Map> GetCompareMap(CompareOperation* expr); |
262 TypeInfo SwitchType(CaseClause* clause); | 263 TypeInfo SwitchType(CaseClause* clause); |
263 TypeInfo IncrementType(CountOperation* expr); | 264 TypeInfo IncrementType(CountOperation* expr); |
264 | 265 |
265 private: | 266 private: |
266 void CollectReceiverTypes(unsigned ast_id, | 267 void CollectReceiverTypes(unsigned ast_id, |
267 Handle<String> name, | 268 Handle<String> name, |
268 Code::Flags flags, | 269 Code::Flags flags, |
269 SmallMapList* types); | 270 SmallMapList* types); |
270 | 271 |
271 void SetInfo(unsigned ast_id, Object* target); | 272 void SetInfo(unsigned ast_id, Object* target); |
(...skipping 13 matching lines...) Expand all Loading... |
285 Handle<Context> global_context_; | 286 Handle<Context> global_context_; |
286 Isolate* isolate_; | 287 Isolate* isolate_; |
287 Handle<NumberDictionary> dictionary_; | 288 Handle<NumberDictionary> dictionary_; |
288 | 289 |
289 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 290 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
290 }; | 291 }; |
291 | 292 |
292 } } // namespace v8::internal | 293 } } // namespace v8::internal |
293 | 294 |
294 #endif // V8_TYPE_INFO_H_ | 295 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |