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

Unified Diff: runtime/vm/flow_graph.h

Issue 12529008: Collect type feedback for fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 14c298a9ec22526962a85d3d5ab82c932d283998..d09efa0db65caf9cc0ee2f726a4c433ffb348c39 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -141,6 +141,11 @@ class FlowGraph : public ZoneAllocated {
bool VerifyUseLists();
#endif // DEBUG
+ // Return all instance fields that are loaded in the graph and
+ // have non-generic type feedback attached to them that can
+ // potentially affect optimizations.
+ const ZoneGrowableArray<Field*>& FieldDependencies() const;
Ivan Posva 2013/03/19 04:42:05 Please do not return references as this makes the
Vyacheslav Egorov (Google) 2013/03/19 06:58:59 I actually agree that it makes caller harder to re
srdjan 2013/03/19 14:35:19 I see advantages of both ways. You pick.
+
private:
friend class BranchSimplifier;
friend class ConstantPropagator;

Powered by Google App Engine
This is Rietveld 408576698