7 #ifndef LINGODEC_HANDLER_H 8 #define LINGODEC_HANDLER_H 10 #include "common/array.h" 11 #include "common/stablemap.h" 12 #include "common/str.h" 16 class SeekableReadStream;
23 class CodeWriterVisitor;
32 uint32 compiledLen = 0;
33 uint32 compiledOffset = 0;
34 uint16 argumentCount = 0;
35 uint32 argumentOffset = 0;
36 uint16 localsCount = 0;
37 uint32 localsOffset = 0;
38 uint16 globalsCount = 0;
39 uint32 globalsOffset = 0;
43 uint32 lineOffset = 0;
44 uint32 stackHeight = 0;
61 bool isGenericEvent =
false;
65 void setScript(
Script *s) {
73 bool validName(
int id)
const;
78 int variableMultiplier();
84 bool isRepeatWithIn(uint32 startIndex, uint32 endIndex);
85 BytecodeTag identifyLoop(uint32 startIndex, uint32 endIndex);
87 uint32 translateBytecode(
Bytecode &bytecode, uint32 index);
102 Bytecode(byte op, int32 o, uint32 p)
103 : opID(op), obj(o), pos(p), tag(kTagNone), ownerLoop(0xffffffff) {
104 opcode =
static_cast<OpCode
>(op >= 0x40 ? 0x40 + op % 0x40 : op);
110 #endif // LINGODEC_HANDLER_H
Definition: codewritervisitor.h:14
Definition: algorithm.h:29
Definition: lobject.h:332