aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/moth/qv4instr_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/moth/qv4instr_moth.cpp')
-rw-r--r--src/qml/qml/v4/moth/qv4instr_moth.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/qml/qml/v4/moth/qv4instr_moth.cpp b/src/qml/qml/v4/moth/qv4instr_moth.cpp
new file mode 100644
index 0000000000..a2bad39e00
--- /dev/null
+++ b/src/qml/qml/v4/moth/qv4instr_moth.cpp
@@ -0,0 +1,15 @@
+#include "qv4instr_moth_p.h"
+
+using namespace QQmlJS;
+using namespace QQmlJS::Moth;
+
+int Instr::size(Type type)
+{
+#define MOTH_RETURN_INSTR_SIZE(I, FMT) case I: return InstrMeta<(int)I>::Size;
+ switch (type) {
+ FOR_EACH_MOTH_INSTR(MOTH_RETURN_INSTR_SIZE)
+ default: return 0;
+ }
+#undef MOTH_RETURN_INSTR_SIZE
+}
+