diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2012-06-08 20:09:13 +0100 |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2012-06-11 12:27:29 +0100 |
commit | ac7f4805c16cc3e61d24437bc570124ea0ca263c (patch) | |
tree | 7b97266dba2533c80e3864d9da3904f047955056 /moth/qv4instr_moth.cpp | |
parent | 416167c0af6808f374c5dd0ca6696cbeb69a2acb (diff) |
Add moth skeleton
Diffstat (limited to 'moth/qv4instr_moth.cpp')
-rw-r--r-- | moth/qv4instr_moth.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/moth/qv4instr_moth.cpp b/moth/qv4instr_moth.cpp new file mode 100644 index 0000000000..a2bad39e00 --- /dev/null +++ b/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 +} + |