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

Unified Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 1373013002: VM: Fix bug in the new edge counter code on ARM and MIPS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: removed dead code Created 5 years, 3 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_compiler_arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_mips.cc
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc
index 05cbcc0a9a09295f54d76494fdd96403b0c31e9b..1496565a217c6e2d7f8aefb74ff53cb245cff86a 100644
--- a/runtime/vm/flow_graph_compiler_mips.cc
+++ b/runtime/vm/flow_graph_compiler_mips.cc
@@ -1207,9 +1207,9 @@ void FlowGraphCompiler::EmitEdgeCounter(intptr_t edge_id) {
ASSERT(!edge_counters_array_.IsNull());
__ Comment("Edge counter");
__ LoadObject(T0, edge_counters_array_);
- __ lw(T1, FieldAddress(T0, Array::element_offset(edge_id)));
+ __ LoadFieldFromOffset(T1, T0, Array::element_offset(edge_id));
__ AddImmediate(T1, T1, Smi::RawValue(1));
- __ sw(T1, FieldAddress(T0, Array::element_offset(edge_id)));
+ __ StoreFieldToOffset(T1, T0, Array::element_offset(edge_id));
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698