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

Unified Diff: runtime/vm/compiler.cc

Issue 10356108: With removal of increment operations, each node has a unique id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/ast.h ('k') | runtime/vm/opt_code_generator_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 7508)
+++ runtime/vm/compiler.cc (working copy)
@@ -70,12 +70,12 @@
intptr_t node_id = node_ids[i];
bool found_node = false;
for (intptr_t n = 0; n < all_nodes.length(); n++) {
- if (all_nodes[n]->HasId(node_id)) {
+ if (all_nodes[n]->id() == node_id) {
found_node = true;
// Make sure we assign ic data array only once.
- ASSERT(all_nodes[n]->ICDataAtId(node_id).IsNull());
+ ASSERT(all_nodes[n]->ic_data().IsNull());
ic_data_obj ^= ic_data_objs.At(i);
- all_nodes[n]->SetIcDataAtId(node_id, ic_data_obj);
+ all_nodes[n]->set_ic_data(ic_data_obj);
}
}
ASSERT(found_node);
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/opt_code_generator_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698