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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 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_x64.cc ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 140e314730b348232b2e400dec9da41cd2f3f305..b9a52d84ab8838f4425de008b4403c29663dd1b4 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -38,12 +38,12 @@ void FlowGraphOptimizer::OptimizeComputations() {
if (result != NULL) {
defn->ReplaceUsesWith(result);
if (FLAG_trace_optimization) {
- OS::Print("Replacing v%d with v%d\n",
+ OS::Print("Replacing v%"Pd" with v%"Pd"\n",
defn->ssa_temp_index(),
result->ssa_temp_index());
}
} else if (FLAG_trace_optimization) {
- OS::Print("Removing v%d.\n", defn->ssa_temp_index());
+ OS::Print("Removing v%"Pd".\n", defn->ssa_temp_index());
}
it.RemoveCurrentFromGraph();
}
@@ -917,7 +917,7 @@ void FlowGraphTypePropagator::VisitAssertAssignable(
ASSERT(current_iterator()->Current() == instr);
current_iterator()->RemoveCurrentFromGraph();
if (FLAG_trace_optimization) {
- OS::Print("Replacing v%d with v%d\n",
+ OS::Print("Replacing v%"Pd" with v%"Pd"\n",
instr->ssa_temp_index(),
result->ssa_temp_index());
}
@@ -958,7 +958,7 @@ void FlowGraphTypePropagator::VisitAssertBoolean(AssertBooleanInstr* instr) {
ASSERT(current_iterator()->Current() == instr);
current_iterator()->RemoveCurrentFromGraph();
if (FLAG_trace_optimization) {
- OS::Print("Replacing v%d with v%d\n",
+ OS::Print("Replacing v%"Pd" with v%"Pd"\n",
instr->ssa_temp_index(),
result->ssa_temp_index());
}
@@ -997,7 +997,7 @@ void FlowGraphTypePropagator::VisitInstanceOf(InstanceOfInstr* instr) {
ASSERT(current_iterator()->Current() == instr);
current_iterator()->RemoveCurrentFromGraph();
if (FLAG_trace_optimization) {
- OS::Print("Replacing v%d with v%d\n",
+ OS::Print("Replacing v%"Pd" with v%"Pd"\n",
instr->ssa_temp_index(),
result->ssa_temp_index());
}
@@ -1167,7 +1167,7 @@ void DominatorBasedCSE::OptimizeRecursive(
defn->ReplaceUsesWith(result);
it.RemoveCurrentFromGraph();
if (FLAG_trace_optimization) {
- OS::Print("Replacing v%d with v%d\n",
+ OS::Print("Replacing v%"Pd" with v%"Pd"\n",
defn->ssa_temp_index(),
result->ssa_temp_index());
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698