| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index eaa5b6fec6e2202b476c299589bb5a6863e24c94..2d5e1663a7770786b61fee57d5f76db2257953db 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -36,6 +36,7 @@
|
| #include "src/wasm/ast-decoder.h"
|
| #include "src/wasm/wasm-module.h"
|
| #include "src/wasm/wasm-opcodes.h"
|
| +#include "src/wasm/wasm-text.h"
|
|
|
| // TODO(titzer): pull WASM_64 up to a common header.
|
| #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64
|
| @@ -3357,6 +3358,10 @@ SourcePositionTable* WasmCompilationUnit::BuildGraphForWasmFunction(
|
| OFStream os(stdout);
|
| PrintAst(isolate_->allocator(), body, os, nullptr);
|
| }
|
| + if (index >= FLAG_trace_wasm_text_start && index < FLAG_trace_wasm_text_end) {
|
| + OFStream os(stdout);
|
| + PrintWasmText(module_env_->module, function_->func_index, os, nullptr);
|
| + }
|
| if (FLAG_trace_wasm_decode_time) {
|
| *decode_ms = decode_timer.Elapsed().InMillisecondsF();
|
| }
|
|
|