add OP_PUSHCONST
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#define PIC_IREP_SIZE 256
|
||||
#define PIC_GLOBALS_SIZE 1024
|
||||
#define PIC_SYM_TBL_SIZE 128
|
||||
#define PIC_POOL_SIZE 1024
|
||||
|
||||
/* enable all debug flags */
|
||||
#define DEBUG 1
|
||||
|
||||
@@ -34,6 +34,8 @@ typedef struct {
|
||||
size_t glen, gcapa;
|
||||
struct pic_irep **irep;
|
||||
size_t ilen, icapa;
|
||||
pic_value *pool;
|
||||
size_t plen, pcapa;
|
||||
|
||||
jmp_buf *jmp;
|
||||
const char *errmsg;
|
||||
|
||||
@@ -7,6 +7,7 @@ enum pic_opcode {
|
||||
OP_PUSHTRUE,
|
||||
OP_PUSHFALSE,
|
||||
OP_PUSHNUM,
|
||||
OP_PUSHCONST,
|
||||
OP_GREF,
|
||||
OP_GSET,
|
||||
OP_LREF,
|
||||
|
||||
Reference in New Issue
Block a user