Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Side by Side Diff: src/type-info.h

Issue 7170012: Crankshaft support for polymorphic array handling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 class CountOperation; 209 class CountOperation;
210 class CompilationInfo; 210 class CompilationInfo;
211 class Property; 211 class Property;
212 class CaseClause; 212 class CaseClause;
213 213
214 class TypeFeedbackOracle BASE_EMBEDDED { 214 class TypeFeedbackOracle BASE_EMBEDDED {
215 public: 215 public:
216 TypeFeedbackOracle(Handle<Code> code, Handle<Context> global_context); 216 TypeFeedbackOracle(Handle<Code> code, Handle<Context> global_context);
217 217
218 bool LoadIsMonomorphicNormal(Property* expr); 218 bool LoadIsMonomorphicNormal(Property* expr);
219 bool LoadIsMegamorphicWithTypeInfo(Property* expr);
219 bool StoreIsMonomorphicNormal(Expression* expr); 220 bool StoreIsMonomorphicNormal(Expression* expr);
221 bool StoreIsMegamorphicWithTypeInfo(Expression* expr);
220 bool CallIsMonomorphic(Call* expr); 222 bool CallIsMonomorphic(Call* expr);
221 223
222 Handle<Map> LoadMonomorphicReceiverType(Property* expr); 224 Handle<Map> LoadMonomorphicReceiverType(Property* expr);
223 Handle<Map> StoreMonomorphicReceiverType(Expression* expr); 225 Handle<Map> StoreMonomorphicReceiverType(Expression* expr);
224 226
225 ZoneMapList* LoadReceiverTypes(Property* expr, Handle<String> name); 227 ZoneMapList* LoadReceiverTypes(Property* expr, Handle<String> name);
226 ZoneMapList* StoreReceiverTypes(Assignment* expr, Handle<String> name); 228 ZoneMapList* StoreReceiverTypes(Assignment* expr, Handle<String> name);
227 ZoneMapList* CallReceiverTypes(Call* expr, 229 ZoneMapList* CallReceiverTypes(Call* expr,
228 Handle<String> name, 230 Handle<String> name,
229 CallKind call_kind); 231 CallKind call_kind);
232 void CollectKeyedReceiverTypes(unsigned ast_id,
233 ZoneMapList* types);
230 234
231 CheckType GetCallCheckType(Call* expr); 235 CheckType GetCallCheckType(Call* expr);
232 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 236 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
233 237
234 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 238 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
235 239
236 // Get type information for arithmetic operations and compares. 240 // Get type information for arithmetic operations and compares.
237 TypeInfo UnaryType(UnaryOperation* expr); 241 TypeInfo UnaryType(UnaryOperation* expr);
238 TypeInfo BinaryType(BinaryOperation* expr); 242 TypeInfo BinaryType(BinaryOperation* expr);
239 TypeInfo CompareType(CompareOperation* expr); 243 TypeInfo CompareType(CompareOperation* expr);
(...skipping 20 matching lines...) Expand all
260 264
261 Handle<Context> global_context_; 265 Handle<Context> global_context_;
262 Handle<NumberDictionary> dictionary_; 266 Handle<NumberDictionary> dictionary_;
263 267
264 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 268 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
265 }; 269 };
266 270
267 } } // namespace v8::internal 271 } } // namespace v8::internal
268 272
269 #endif // V8_TYPE_INFO_H_ 273 #endif // V8_TYPE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698