Commit ba370876 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[wasm][cleanup] Remove minor debug-only flag

The same functionality can be achieved by just setting a breakpoint in
that function.

R=ahaas@chromium.org

Bug: v8:9810
Change-Id: Ieb5e99b5c2f0b492e32e75cae0c0b9292accd932
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1888072Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64646}
parent 5a7c5879
...@@ -685,8 +685,6 @@ DEFINE_BOOL(liftoff, false, ...@@ -685,8 +685,6 @@ DEFINE_BOOL(liftoff, false,
"enable Liftoff, the baseline compiler for WebAssembly") "enable Liftoff, the baseline compiler for WebAssembly")
DEFINE_BOOL(trace_liftoff, false, DEFINE_BOOL(trace_liftoff, false,
"trace Liftoff, the baseline compiler for WebAssembly") "trace Liftoff, the baseline compiler for WebAssembly")
DEFINE_DEBUG_BOOL(wasm_break_on_decoder_error, false,
"debug break when wasm decoder encounters an error")
DEFINE_BOOL(trace_wasm_memory, false, DEFINE_BOOL(trace_wasm_memory, false,
"print all memory updates performed in wasm code") "print all memory updates performed in wasm code")
// Fuzzers use {wasm_tier_mask_for_testing} together with {liftoff} and // Fuzzers use {wasm_tier_mask_for_testing} together with {liftoff} and
......
...@@ -285,11 +285,6 @@ class Decoder { ...@@ -285,11 +285,6 @@ class Decoder {
void verrorf(uint32_t offset, const char* format, va_list args) { void verrorf(uint32_t offset, const char* format, va_list args) {
// Only report the first error. // Only report the first error.
if (!ok()) return; if (!ok()) return;
#if DEBUG
if (FLAG_wasm_break_on_decoder_error) {
base::OS::DebugBreak();
}
#endif
constexpr int kMaxErrorMsg = 256; constexpr int kMaxErrorMsg = 256;
EmbeddedVector<char, kMaxErrorMsg> buffer; EmbeddedVector<char, kMaxErrorMsg> buffer;
int len = VSNPrintF(buffer, format, args); int len = VSNPrintF(buffer, format, args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment