aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-07-20 12:38:31 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-07-21 04:55:47 +0000
commite4aaa3845ce153273be8322cf95808ee04bb30c8 (patch)
tree99e35290d02a71cb71fa7495c95b6c2604bd617f /src/qml/compiler/qv4instr_moth_p.h
parentaa5f09a0d22e9fa6e125afc798f6b3289088b791 (diff)
Prepare moth bytecode for serialization
When using the threaded interpreter, don't produce the instruction handler addresses right away but perform that as a separate step when linking against the engine. Change-Id: I216100f8b99f45eb8d954c733ac128e83aa6da38 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 93a7170e68..e95a7f7046 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -162,7 +162,7 @@ QT_BEGIN_NAMESPACE
#define MOTH_INSTR_ALIGN_MASK (Q_ALIGNOF(QV4::Moth::Instr) - 1)
#ifdef MOTH_THREADED_INTERPRETER
-# define MOTH_INSTR_HEADER void *code;
+# define MOTH_INSTR_HEADER union { quint32 instructionType; void *code; };
#else
# define MOTH_INSTR_HEADER quint32 instructionType;
#endif