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

Unified Diff: runtime/vm/flow_graph.cc

Issue 13726023: Restore r20998 with a bug fix: add field to guarded_fields_ when it contains relevant cid. Was miss… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/flow_graph.h ('k') | runtime/vm/flow_graph_inliner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
===================================================================
--- runtime/vm/flow_graph.cc (revision 21001)
+++ runtime/vm/flow_graph.cc (working copy)
@@ -695,40 +695,4 @@
return size;
}
-
-const ZoneGrowableArray<Field*>* FlowGraph::FieldDependencies() const {
- ZoneGrowableArray<Field*>* result = new ZoneGrowableArray<Field*>(10);
-
- for (intptr_t i = 1; i < reverse_postorder().length(); i++) {
- BlockEntryInstr* entry = reverse_postorder()[i];
- for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) {
- LoadFieldInstr* load_field = it.Current()->AsLoadField();
- if (load_field == NULL) {
- continue;
- }
-
- Field* field = load_field->field();
- if ((field == NULL) ||
- (field->guarded_cid() == kDynamicCid) ||
- (field->guarded_cid() == kIllegalCid)) {
- continue;
- }
-
- bool found = false;
- for (intptr_t j = 0; j < result->length(); j++) {
- if ((*result)[j]->raw() == field->raw()) {
- found = true;
- break;
- }
- }
-
- if (!found) {
- result->Add(field);
- }
- }
- }
-
- return result;
-}
-
} // namespace dart
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_inliner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698