| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 257 | 257 | 
| 258   CheckType GetCallCheckType(Call* expr); | 258   CheckType GetCallCheckType(Call* expr); | 
| 259   Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 259   Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 
| 260 | 260 | 
| 261   bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 261   bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 
| 262 | 262 | 
| 263   // Get type information for arithmetic operations and compares. | 263   // Get type information for arithmetic operations and compares. | 
| 264   TypeInfo UnaryType(UnaryOperation* expr); | 264   TypeInfo UnaryType(UnaryOperation* expr); | 
| 265   TypeInfo BinaryType(BinaryOperation* expr); | 265   TypeInfo BinaryType(BinaryOperation* expr); | 
| 266   TypeInfo CompareType(CompareOperation* expr); | 266   TypeInfo CompareType(CompareOperation* expr); | 
|  | 267   bool IsSymbolCompare(CompareOperation* expr); | 
| 267   TypeInfo SwitchType(CaseClause* clause); | 268   TypeInfo SwitchType(CaseClause* clause); | 
| 268   TypeInfo IncrementType(CountOperation* expr); | 269   TypeInfo IncrementType(CountOperation* expr); | 
| 269 | 270 | 
| 270  private: | 271  private: | 
| 271   ZoneMapList* CollectReceiverTypes(unsigned ast_id, | 272   ZoneMapList* CollectReceiverTypes(unsigned ast_id, | 
| 272                                     Handle<String> name, | 273                                     Handle<String> name, | 
| 273                                     Code::Flags flags); | 274                                     Code::Flags flags); | 
| 274 | 275 | 
| 275   void SetInfo(unsigned ast_id, Object* target); | 276   void SetInfo(unsigned ast_id, Object* target); | 
| 276 | 277 | 
| 277   void PopulateMap(Handle<Code> code); | 278   void PopulateMap(Handle<Code> code); | 
| 278 | 279 | 
| 279   void CollectIds(Code* code, | 280   void CollectIds(Code* code, | 
| 280                   List<int>* code_positions, | 281                   List<int>* code_positions, | 
| 281                   List<unsigned>* ast_ids); | 282                   List<unsigned>* ast_ids); | 
| 282 | 283 | 
| 283   // Returns an element from the backing store. Returns undefined if | 284   // Returns an element from the backing store. Returns undefined if | 
| 284   // there is no information. | 285   // there is no information. | 
| 285   Handle<Object> GetInfo(unsigned ast_id); | 286   Handle<Object> GetInfo(unsigned ast_id); | 
| 286 | 287 | 
| 287   Handle<Context> global_context_; | 288   Handle<Context> global_context_; | 
| 288   Handle<NumberDictionary> dictionary_; | 289   Handle<NumberDictionary> dictionary_; | 
| 289 | 290 | 
| 290   DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 291   DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 
| 291 }; | 292 }; | 
| 292 | 293 | 
| 293 } }  // namespace v8::internal | 294 } }  // namespace v8::internal | 
| 294 | 295 | 
| 295 #endif  // V8_TYPE_INFO_H_ | 296 #endif  // V8_TYPE_INFO_H_ | 
| OLD | NEW | 
|---|