From f0307f49deb5679dcd03353970b197c3258651a8 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 9 Oct 2018 15:00:46 +0200 Subject: Make the function name printing the same when dumping bytecode So searching for "function blah" will find both the dumped bytecode and the generated assembler from the baseline JIT. Change-Id: Ia1e2debfb73068a1692653f304146f7b0f88aa16 Reviewed-by: Lars Knoll --- src/qml/jit/qv4assemblercommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jit/qv4assemblercommon.cpp') diff --git a/src/qml/jit/qv4assemblercommon.cpp b/src/qml/jit/qv4assemblercommon.cpp index fadb9dce08..b302ac6403 100644 --- a/src/qml/jit/qv4assemblercommon.cpp +++ b/src/qml/jit/qv4assemblercommon.cpp @@ -148,7 +148,7 @@ void PlatformAssemblerCommon::link(Function *function, const char *jitKind) WTF::setDataFile(new QIODevicePrintStream(&buf)); QByteArray name = functionName(function); - codeRef = linkBuffer.finalizeCodeWithDisassembly(jitKind, "%s", name.constData()); + codeRef = linkBuffer.finalizeCodeWithDisassembly(jitKind, "function %s", name.constData()); WTF::setDataFile(stderr); printDisassembledOutputWithCalls(buf.data(), functions); -- cgit v1.2.3