From 5f35980ecebf32a39b2c2c9e92e439d79655e498 Mon Sep 17 00:00:00 2001 From: luyahan Date: Wed, 9 Sep 2020 11:41:47 +0900 Subject: [PATCH] Delete unnessasery debugprintf --- src/codegen/constant-pool.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/codegen/constant-pool.cc b/src/codegen/constant-pool.cc index be65bcf48115..f150fe1ac865 100644 --- a/src/codegen/constant-pool.cc +++ b/src/codegen/constant-pool.cc @@ -607,10 +607,8 @@ void ConstantPool::Emit(const ConstantPoolKey& key) { } bool ConstantPool::ShouldEmitNow(Jump require_jump, size_t margin) const { - DEBUG_PRINTF("ShouldEmitNow\n"); if (IsEmpty()) return false; if (Entry32Count() + Entry64Count() > ConstantPool::kApproxMaxEntryCount) { - DEBUG_PRINTF("> ConstantPool::kApproxMaxEntryCount\n"); return true; } // We compute {dist32/64}, i.e. the distance from the first instruction @@ -636,11 +634,6 @@ bool ConstantPool::ShouldEmitNow(Jump require_jump, size_t margin) const { bool approximate_distance_exceeded = dist64 >= kApproxDistToPool64; if (next_check_too_late || opportune_emission_without_jump || approximate_distance_exceeded) { - DEBUG_PRINTF("Entry64Count true:%d,%d,%d\n",next_check_too_late, - opportune_emission_without_jump, - approximate_distance_exceeded); - DEBUG_PRINTF("%zu,%zu,%zu\n",dist64,kCheckInterval,kMaxDistToPool64); - DEBUG_PRINTF("%lu,%zu\n",dist64 + 2 * kCheckInterval,kMaxDistToPool64); return true; } } @@ -652,9 +645,6 @@ bool ConstantPool::ShouldEmitNow(Jump require_jump, size_t margin) const { bool approximate_distance_exceeded = dist32 >= kApproxDistToPool32; if (next_check_too_late || opportune_emission_without_jump || approximate_distance_exceeded) { - DEBUG_PRINTF("Entry32Count true:%d,%d,%d\n",next_check_too_late, - opportune_emission_without_jump, - approximate_distance_exceeded); return true; } }