| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 enum StringStubFeedback { | 212 enum StringStubFeedback { |
| 213 DEFAULT_STRING_STUB = 0, | 213 DEFAULT_STRING_STUB = 0, |
| 214 STRING_INDEX_OUT_OF_BOUNDS = 1 | 214 STRING_INDEX_OUT_OF_BOUNDS = 1 |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 | 217 |
| 218 // Forward declarations. | 218 // Forward declarations. |
| 219 class Assignment; | 219 class Assignment; |
| 220 class BinaryOperation; | 220 class BinaryOperation; |
| 221 class Call; | 221 class Call; |
| 222 class CallNew; |
| 222 class CaseClause; | 223 class CaseClause; |
| 223 class CompareOperation; | 224 class CompareOperation; |
| 224 class CompilationInfo; | 225 class CompilationInfo; |
| 225 class CountOperation; | 226 class CountOperation; |
| 226 class Property; | 227 class Property; |
| 227 class SmallMapList; | 228 class SmallMapList; |
| 228 class UnaryOperation; | 229 class UnaryOperation; |
| 229 | 230 |
| 230 | 231 |
| 231 class TypeFeedbackOracle BASE_EMBEDDED { | 232 class TypeFeedbackOracle BASE_EMBEDDED { |
| 232 public: | 233 public: |
| 233 TypeFeedbackOracle(Handle<Code> code, | 234 TypeFeedbackOracle(Handle<Code> code, |
| 234 Handle<Context> global_context, | 235 Handle<Context> global_context, |
| 235 Isolate* isolate); | 236 Isolate* isolate); |
| 236 | 237 |
| 237 bool LoadIsMonomorphicNormal(Property* expr); | 238 bool LoadIsMonomorphicNormal(Property* expr); |
| 238 bool LoadIsMegamorphicWithTypeInfo(Property* expr); | 239 bool LoadIsMegamorphicWithTypeInfo(Property* expr); |
| 239 bool StoreIsMonomorphicNormal(Expression* expr); | 240 bool StoreIsMonomorphicNormal(Expression* expr); |
| 240 bool StoreIsMegamorphicWithTypeInfo(Expression* expr); | 241 bool StoreIsMegamorphicWithTypeInfo(Expression* expr); |
| 241 bool CallIsMonomorphic(Call* expr); | 242 bool CallIsMonomorphic(Call* expr); |
| 243 bool CallNewIsMonomorphic(CallNew* expr); |
| 242 | 244 |
| 243 Handle<Map> LoadMonomorphicReceiverType(Property* expr); | 245 Handle<Map> LoadMonomorphicReceiverType(Property* expr); |
| 244 Handle<Map> StoreMonomorphicReceiverType(Expression* expr); | 246 Handle<Map> StoreMonomorphicReceiverType(Expression* expr); |
| 245 | 247 |
| 246 void LoadReceiverTypes(Property* expr, | 248 void LoadReceiverTypes(Property* expr, |
| 247 Handle<String> name, | 249 Handle<String> name, |
| 248 SmallMapList* types); | 250 SmallMapList* types); |
| 249 void StoreReceiverTypes(Assignment* expr, | 251 void StoreReceiverTypes(Assignment* expr, |
| 250 Handle<String> name, | 252 Handle<String> name, |
| 251 SmallMapList* types); | 253 SmallMapList* types); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 291 |
| 290 void SetInfo(unsigned ast_id, Object* target); | 292 void SetInfo(unsigned ast_id, Object* target); |
| 291 | 293 |
| 292 void BuildDictionary(Handle<Code> code); | 294 void BuildDictionary(Handle<Code> code); |
| 293 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); | 295 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 294 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); | 296 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); |
| 295 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, | 297 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, |
| 296 byte* old_start, | 298 byte* old_start, |
| 297 byte* new_start); | 299 byte* new_start); |
| 298 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); | 300 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); |
| 301 void ProcessTypeFeedbackCells(Handle<Code> code); |
| 299 | 302 |
| 300 // Returns an element from the backing store. Returns undefined if | 303 // Returns an element from the backing store. Returns undefined if |
| 301 // there is no information. | 304 // there is no information. |
| 302 Handle<Object> GetInfo(unsigned ast_id); | 305 Handle<Object> GetInfo(unsigned ast_id); |
| 303 | 306 |
| 304 Handle<Context> global_context_; | 307 Handle<Context> global_context_; |
| 305 Isolate* isolate_; | 308 Isolate* isolate_; |
| 306 Handle<NumberDictionary> dictionary_; | 309 Handle<NumberDictionary> dictionary_; |
| 307 | 310 |
| 308 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 311 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 } } // namespace v8::internal | 314 } } // namespace v8::internal |
| 312 | 315 |
| 313 #endif // V8_TYPE_INFO_H_ | 316 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |