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

Unified Diff: runtime/vm/cha.h

Issue 11275110: Do not recompute unary_checks repeatedly. Add special (and quicker) way to check for method overrid… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | runtime/vm/cha.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cha.h
===================================================================
--- runtime/vm/cha.h (revision 14428)
+++ runtime/vm/cha.h (working copy)
@@ -9,6 +9,7 @@
namespace dart {
+class Class;
class Function;
template <typename T> class ZoneGrowableArray;
class String;
@@ -33,6 +34,9 @@
// Returns an array of functions overriding the given function.
// Must not be called for a function of class Object.
static ZoneGrowableArray<Function*>* GetOverridesOf(const Function& function);
+
+ // Returns true if any subclass of 'cls' contains the function.
+ static bool HasOverride(const Class& cls, const String& function_name);
};
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/cha.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698