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

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

Issue 14142005: Implement Polymorphic Store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
« no previous file with comments | « src/stub-cache.cc ('k') | src/type-info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 TypeFeedbackOracle(Handle<Code> code, 239 TypeFeedbackOracle(Handle<Code> code,
240 Handle<Context> native_context, 240 Handle<Context> native_context,
241 Isolate* isolate, 241 Isolate* isolate,
242 Zone* zone); 242 Zone* zone);
243 243
244 bool LoadIsMonomorphicNormal(Property* expr); 244 bool LoadIsMonomorphicNormal(Property* expr);
245 bool LoadIsUninitialized(Property* expr); 245 bool LoadIsUninitialized(Property* expr);
246 bool LoadIsPolymorphic(Property* expr); 246 bool LoadIsPolymorphic(Property* expr);
247 bool StoreIsUninitialized(TypeFeedbackId ast_id); 247 bool StoreIsUninitialized(TypeFeedbackId ast_id);
248 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id); 248 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id);
249 bool StoreIsPolymorphic(TypeFeedbackId ast_id); 249 bool StoreIsKeyedPolymorphic(TypeFeedbackId ast_id);
250 bool CallIsMonomorphic(Call* expr); 250 bool CallIsMonomorphic(Call* expr);
251 bool CallNewIsMonomorphic(CallNew* expr); 251 bool CallNewIsMonomorphic(CallNew* expr);
252 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteralProperty* prop); 252 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteralProperty* prop);
253 253
254 // TODO(1571) We can't use ForInStatement::ForInType as the return value due 254 // TODO(1571) We can't use ForInStatement::ForInType as the return value due
255 // to various cycles in our headers. 255 // to various cycles in our headers.
256 byte ForInType(ForInStatement* expr); 256 byte ForInType(ForInStatement* expr);
257 257
258 Handle<Map> LoadMonomorphicReceiverType(Property* expr); 258 Handle<Map> LoadMonomorphicReceiverType(Property* expr);
259 Handle<Map> StoreMonomorphicReceiverType(TypeFeedbackId id); 259 Handle<Map> StoreMonomorphicReceiverType(TypeFeedbackId id);
260 260
261 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId ast_id); 261 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId ast_id);
262 262
263 void LoadReceiverTypes(Property* expr, 263 void LoadReceiverTypes(Property* expr,
264 Handle<String> name, 264 Handle<String> name,
265 SmallMapList* types); 265 SmallMapList* types);
266 void StoreReceiverTypes(Assignment* expr, 266 void StoreReceiverTypes(Assignment* expr,
267 Handle<String> name, 267 Handle<String> name,
268 SmallMapList* types); 268 SmallMapList* types);
269 void CallReceiverTypes(Call* expr, 269 void CallReceiverTypes(Call* expr,
270 Handle<String> name, 270 Handle<String> name,
271 CallKind call_kind, 271 CallKind call_kind,
272 SmallMapList* types); 272 SmallMapList* types);
273 void CollectKeyedReceiverTypes(TypeFeedbackId ast_id, 273 void CollectKeyedReceiverTypes(TypeFeedbackId ast_id,
274 SmallMapList* types); 274 SmallMapList* types);
275 void CollectPolymorphicStoreReceiverTypes(TypeFeedbackId ast_id,
276 SmallMapList* types);
275 277
276 static bool CanRetainOtherContext(Map* map, Context* native_context); 278 static bool CanRetainOtherContext(Map* map, Context* native_context);
277 static bool CanRetainOtherContext(JSFunction* function, 279 static bool CanRetainOtherContext(JSFunction* function,
278 Context* native_context); 280 Context* native_context);
279 281
280 void CollectPolymorphicMaps(Handle<Code> code, SmallMapList* types); 282 void CollectPolymorphicMaps(Handle<Code> code, SmallMapList* types);
281 283
282 CheckType GetCallCheckType(Call* expr); 284 CheckType GetCallCheckType(Call* expr);
283 Handle<JSFunction> GetCallTarget(Call* expr); 285 Handle<JSFunction> GetCallTarget(Call* expr);
284 Handle<JSFunction> GetCallNewTarget(CallNew* expr); 286 Handle<JSFunction> GetCallNewTarget(CallNew* expr);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 Isolate* isolate_; 345 Isolate* isolate_;
344 Zone* zone_; 346 Zone* zone_;
345 Handle<UnseededNumberDictionary> dictionary_; 347 Handle<UnseededNumberDictionary> dictionary_;
346 348
347 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 349 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
348 }; 350 };
349 351
350 } } // namespace v8::internal 352 } } // namespace v8::internal
351 353
352 #endif // V8_TYPE_INFO_H_ 354 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698