From 4bbe21671bd0936c169fe0212a37873edb31c0ae Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Wed, 17 May 2017 13:51:40 +0200 Subject: [PATCH] [asm.js] Remove unused --trace-wasm-encoder flag. R=ahaas@chromium.org Change-Id: If0001d1b829540d76a3cef54a495322ca624d030 Reviewed-on: https://chromium-review.googlesource.com/507227 Reviewed-by: Andreas Haas Commit-Queue: Michael Starzinger Cr-Commit-Position: refs/heads/master@{#45373} --- src/flag-definitions.h | 1 - src/wasm/wasm-module-builder.cc | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 66921aba8d..30a294ad12 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -545,7 +545,6 @@ DEFINE_UINT(wasm_max_mem_pages, v8::internal::wasm::kV8MaxWasmMemoryPages, "maximum memory size of a wasm instance") DEFINE_UINT(wasm_max_table_size, v8::internal::wasm::kV8MaxWasmTableSize, "maximum table size of a wasm instance") -DEFINE_BOOL(trace_wasm_encoder, false, "trace encoding of wasm code") DEFINE_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") DEFINE_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") DEFINE_BOOL(trace_wasm_compiler, false, "trace compiling of wasm code") diff --git a/src/wasm/wasm-module-builder.cc b/src/wasm/wasm-module-builder.cc index b4094ee103..00647f4c77 100644 --- a/src/wasm/wasm-module-builder.cc +++ b/src/wasm/wasm-module-builder.cc @@ -18,15 +18,6 @@ #include "src/v8memory.h" -#if DEBUG -#define TRACE(...) \ - do { \ - if (FLAG_trace_wasm_encoder) PrintF(__VA_ARGS__); \ - } while (false) -#else -#define TRACE(...) -#endif - namespace v8 { namespace internal { namespace wasm { @@ -320,7 +311,6 @@ uint32_t WasmModuleBuilder::AddGlobal(ValueType type, bool exported, void WasmModuleBuilder::WriteTo(ZoneBuffer& buffer) const { // == Emit magic ============================================================= - TRACE("emit magic\n"); buffer.write_u32(kWasmMagic); buffer.write_u32(kWasmVersion);