2009-04-14 20:12:01 -04:00
|
|
|
#ifndef __OPCODES_H_
|
|
|
|
#define __OPCODES_H_
|
|
|
|
|
|
|
|
enum {
|
|
|
|
OP_NOP=0, OP_DUP, OP_POP, OP_CALL, OP_TCALL, OP_JMP, OP_BRF, OP_BRT,
|
2009-04-16 23:40:52 -04:00
|
|
|
OP_JMPL, OP_BRFL, OP_BRTL, OP_RET, OP_TAPPLY,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
|
|
|
OP_EQ, OP_EQV, OP_EQUAL, OP_ATOMP, OP_NOT, OP_NULLP, OP_BOOLEANP,
|
|
|
|
OP_SYMBOLP, OP_NUMBERP, OP_BOUNDP, OP_PAIRP, OP_BUILTINP, OP_VECTORP,
|
|
|
|
OP_FIXNUMP,
|
|
|
|
|
|
|
|
OP_CONS, OP_LIST, OP_CAR, OP_CDR, OP_SETCAR, OP_SETCDR,
|
2009-04-20 20:56:05 -04:00
|
|
|
OP_APPLY,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-15 19:54:43 -04:00
|
|
|
OP_ADD, OP_SUB, OP_MUL, OP_DIV, OP_NUMEQ, OP_LT, OP_COMPARE,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-15 23:05:38 -04:00
|
|
|
OP_VECTOR, OP_AREF, OP_ASET,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-15 23:05:38 -04:00
|
|
|
OP_LOADT, OP_LOADF, OP_LOADNIL, OP_LOAD0, OP_LOAD1, OP_LOADI8,
|
|
|
|
OP_LOADV, OP_LOADVL, OP_LOADG, OP_LOADA, OP_LOADC, OP_LOADGL,
|
|
|
|
OP_SETG, OP_SETA, OP_SETC, OP_SETGL,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-21 11:35:46 -04:00
|
|
|
OP_CLOSURE, OP_TRYCATCH, OP_ARGC, OP_VARGC, OP_CLOSE, OP_LET, OP_FOR,
|
|
|
|
|
|
|
|
N_OPCODES
|
2009-04-14 20:12:01 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|