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

Unified Diff: runtime/vm/cha.h

Issue 1158673004: Do not eagerly add guarded leaf classes with CHA; do not add them for private names. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: typos in comments Created 5 years, 7 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 | « no previous file | runtime/vm/cha.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
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 9be0caab14c381a28217a7d0ab01e6a6ea2b528c..f0d42fc37cf8ddb73ce97cc828bcef6b7d1531c6 100644
--- a/runtime/vm/cha.h
+++ b/runtime/vm/cha.h
@@ -51,9 +51,12 @@ class CHA : public StackResource {
return leaf_classes_;
}
- private:
+ // Adds class 'cls' to the list of leaf classes, deoptimization occurs
+ // if any of the leaf classes gets subclassed through later loaded/finalized
+ // libraries.
void AddToLeafClasses(const Class& cls);
rmacnak 2015/05/28 23:16:52 Add a note that this does not include all leaf cla
srdjan 2015/05/28 23:28:56 Done.
+ private:
Thread* thread_;
GrowableArray<Class*> leaf_classes_;
CHA* previous_;
« no previous file with comments | « no previous file | runtime/vm/cha.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698