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

Unified Diff: runtime/vm/cha.h

Issue 1867913004: Specialize instance calls when the call receiver is the method receiver and the method class has a … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | 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
diff --git a/runtime/vm/cha.h b/runtime/vm/cha.h
index fac6577bc26c9981178944a628ab0217ebbdaca9..a1ea229a2c3816122f2e49440e8e7fefb9fa9701 100644
--- a/runtime/vm/cha.h
+++ b/runtime/vm/cha.h
@@ -35,6 +35,11 @@ class CHA : public StackResource {
static bool HasSubclasses(const Class& cls);
bool HasSubclasses(intptr_t cid) const;
+ // Collect the concrete subclasses of 'cls' into 'class_ids'. Return true if
+ // the result is valid (may be invalid because we don't track the subclasses
+ // of classes allocated in the VM isolate or class Object).
+ bool ConcreteSubclasses(const Class& cls, GrowableArray<intptr_t> *class_ids);
+
// Return true if the class is implemented by some other class.
static bool IsImplemented(const Class& cls);
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/cha.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698