aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/moth/qv4instr_moth.cpp
blob: a2bad39e00a71373e9973229c747f66521f43be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}