Fix Windows 32.
authorBen L. Titzer <titzer@chromium.org>
Wed, 26 Nov 2014 13:06:32 +0000 (14:06 +0100)
committerBen L. Titzer <titzer@chromium.org>
Wed, 26 Nov 2014 13:06:46 +0000 (13:06 +0000)
TBR=dcarney@chromium.org
BUG=

Review URL: https://codereview.chromium.org/755323007

Cr-Commit-Position: refs/heads/master@{#25522}

src/compiler/jump-threading.cc

index 3b20a7b..f0bb731 100644 (file)
@@ -112,19 +112,23 @@ bool JumpThreading::ComputeForwarding(Zone* local_zone,
     }
   }
 
-#if DEBUG
-  for (RpoNumber num : result) DCHECK(num.IsValid());
+#ifdef DEBUG
+  for (RpoNumber num : result) {
+    CHECK(num.IsValid());
+  }
 #endif
 
-  for (int i = 0; i < static_cast<int>(result.size()); i++) {
-    TRACE(("RPO%d B%d ", i,
-           code->InstructionBlockAt(RpoNumber::FromInt(i))->id().ToInt()));
-    int to = result[i].ToInt();
-    if (i != to) {
-      TRACE(("-> B%d\n",
-             code->InstructionBlockAt(RpoNumber::FromInt(to))->id().ToInt()));
-    } else {
-      TRACE(("\n"));
+  if (FLAG_trace_turbo_jt) {
+    for (int i = 0; i < static_cast<int>(result.size()); i++) {
+      TRACE(("RPO%d B%d ", i,
+             code->InstructionBlockAt(RpoNumber::FromInt(i))->id().ToInt()));
+      int to = result[i].ToInt();
+      if (i != to) {
+        TRACE(("-> B%d\n",
+               code->InstructionBlockAt(RpoNumber::FromInt(to))->id().ToInt()));
+      } else {
+        TRACE(("\n"));
+      }
     }
   }