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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 510823002: Fix printf modifiers from %d to % Pd to fix compilation on Mac. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 1cd7fb8be3e8a84552263aaf8f23d27e6541ac44..72d8d93842ffcd2b49b0935a14a0ae4ace01e662 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -4765,7 +4765,7 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
BenefitsFromWidening(defn->AsBinarySmiOp())) {
gain++;
if (FLAG_trace_smi_widening) {
- OS::Print("^ [%d] (o) %s\n", gain, defn->ToCString());
+ OS::Print("^ [%" Pd "] (o) %s\n", gain, defn->ToCString());
}
}
@@ -4783,7 +4783,7 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
// Mint operation produces untagged result. We avoid tagging.
gain++;
if (FLAG_trace_smi_widening) {
- OS::Print("^ [%d] (i) %s\n", gain, input->ToCString());
+ OS::Print("^ [%" Pd "] (i) %s\n", gain, input->ToCString());
}
} else if (defn_loop == loops[input->GetBlock()->preorder_number()] &&
(input->Type()->ToCid() == kSmiCid)) {
@@ -4794,7 +4794,7 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
// coalesced with untagging. Start coalescing them.
gain--;
if (FLAG_trace_smi_widening) {
- OS::Print("v [%d] (i) %s\n", gain, input->ToCString());
+ OS::Print("v [%" Pd "] (i) %s\n", gain, input->ToCString());
}
}
}
@@ -4811,8 +4811,9 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
if (!instr->IsReturn() && !instr->IsPushArgument()) {
gain--;
if (FLAG_trace_smi_widening) {
- OS::Print("v [%d] (u) %s\n",
- gain, use->instruction()->ToCString());
+ OS::Print("v [%" Pd "] (u) %s\n",
+ gain,
+ use->instruction()->ToCString());
}
}
continue;
@@ -4828,12 +4829,16 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
// sign extension operation.
gain++;
if (FLAG_trace_smi_widening) {
- OS::Print("^ [%d] (u) %s\n", gain, use->instruction()->ToCString());
+ OS::Print("^ [%" Pd "] (u) %s\n",
+ gain,
+ use->instruction()->ToCString());
}
} else if (defn_loop == loops[instr->GetBlock()->preorder_number()]) {
gain--;
if (FLAG_trace_smi_widening) {
- OS::Print("v [%d] (u) %s\n", gain, use->instruction()->ToCString());
+ OS::Print("v [%" Pd "] (u) %s\n",
+ gain,
+ use->instruction()->ToCString());
}
}
}
@@ -4842,7 +4847,7 @@ void FlowGraphOptimizer::WidenSmiToInt32() {
processed->AddAll(worklist.contains());
if (FLAG_trace_smi_widening) {
- OS::Print("~ %s gain %d\n", op->ToCString(), gain);
+ OS::Print("~ %s gain %" Pd "\n", op->ToCString(), gain);
}
if (gain > 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698