From 784a55a15ddc65b59cc4709e54453238438eae48 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 9 Oct 2018 14:58:01 +0200 Subject: V4: Collect trace information in the interpreter Collect type information about values used in a function. These include all parameters, and the results of many bytecode instructions. For array loads/stores, it also tracks if the access is in-bounds of a SimpleArrayData. Collection is only enabled when the qml-tracing feature is turned on while configuring. In subsequent patches this is used to generated optimized JITted code. Change-Id: I63985c334c3fdc55fca7fb4addfe3e535989aac5 Reviewed-by: Ulf Hermann --- src/qml/compiler/qv4bytecodehandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/compiler/qv4bytecodehandler.cpp') diff --git a/src/qml/compiler/qv4bytecodehandler.cpp b/src/qml/compiler/qv4bytecodehandler.cpp index af86b70014..1508790926 100644 --- a/src/qml/compiler/qv4bytecodehandler.cpp +++ b/src/qml/compiler/qv4bytecodehandler.cpp @@ -95,6 +95,12 @@ void ByteCodeHandler::decode(const char *code, uint len) Q_UNUSED(arg2); \ Q_UNUSED(arg3); \ Q_UNUSED(arg4); +#define MOTH_UNUSED_ARGS5(arg1, arg2, arg3, arg4, arg5) \ + Q_UNUSED(arg1); \ + Q_UNUSED(arg2); \ + Q_UNUSED(arg3); \ + Q_UNUSED(arg4); \ + Q_UNUSED(arg5); #define MOTH_MARK_ARGS_UNUSED_PLEASE(nargs, ...) \ MOTH_EXPAND_FOR_MSVC(MOTH_UNUSED_ARGS##nargs(__VA_ARGS__)) -- cgit v1.2.3