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

Unified Diff: runtime/vm/object.h

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 39307)
+++ runtime/vm/object.h (working copy)
@@ -3505,6 +3505,13 @@
bool HasOneTarget() const;
bool HasReceiverClassId(intptr_t class_id) const;
+ // Returns true if some entries have count 0, except if the ICData is used
+ // by an unoptimized static call.
+ bool HasUnusedEntries() const;
+
+ // Returns a new ICData with all unused entries removed.
+ RawICData* FilterUnusedEntries() const;
+
static RawICData* New(const Function& owner,
const String& target_name,
const Array& arguments_descriptor,

Powered by Google App Engine
This is Rietveld 408576698