| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 Handle<Context> global_context_; | 302 Handle<Context> global_context_; |
| 301 Isolate* isolate_; | 303 Isolate* isolate_; |
| 302 Handle<NumberDictionary> dictionary_; | 304 Handle<NumberDictionary> dictionary_; |
| 303 | 305 |
| 304 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 306 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 305 }; | 307 }; |
| 306 | 308 |
| 307 } } // namespace v8::internal | 309 } } // namespace v8::internal |
| 308 | 310 |
| 309 #endif // V8_TYPE_INFO_H_ | 311 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |