From 3e5f45b64b5da7a5d3e8afa0f1eea50203fb1ce7 Mon Sep 17 00:00:00 2001 From: clemensh Date: Tue, 19 Apr 2016 05:54:10 -0700 Subject: [PATCH] [wasm] Flag WASM code sections as such in the tests This makes them show up in the stack trace. Otherwise the stack frames are identified as type STUB, and skipped by the iterator. R=ahaas@chromium.org, jfb@chromium.org, titzer@chromium.org BUG= Review URL: https://codereview.chromium.org/1878573003 Cr-Commit-Position: refs/heads/master@{#35621} --- test/cctest/wasm/wasm-run-utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h index 87e4a0933a..adca30e545 100644 --- a/test/cctest/wasm/wasm-run-utils.h +++ b/test/cctest/wasm/wasm-run-utils.h @@ -474,7 +474,8 @@ class WasmFunctionCompiler : public HandleAndZoneScope, if (kPointerSize == 4) { desc = testing_module_->GetI32WasmCallDescriptor(this->zone(), desc); } - CompilationInfo info("wasm compile", this->isolate(), this->zone()); + CompilationInfo info("wasm compile", this->isolate(), this->zone(), + Code::ComputeFlags(Code::WASM_FUNCTION)); Handle result = Pipeline::GenerateCodeForTesting(&info, desc, this->graph()); #ifdef ENABLE_DISASSEMBLER