|
|
| version 1.1, 2001/02/20 18:45:52 | version 1.3, 2001/02/21 06:21:20 |
|---|---|
| Line 14 char *opcode_name[]={ | Line 14 char *opcode_name[]={ |
| "CONSTRUCT", | "CONSTRUCT", |
| "EXPRESSION_EVAL", "MODIFY_EVAL", | "EXPRESSION_EVAL", "MODIFY_EVAL", |
| "WRITE", | "WRITE", |
| "REPLACE_RESULT", | |
| "GET_ELEMENT", "GET_ELEMENT__WRITE", | "GET_ELEMENT", "GET_ELEMENT__WRITE", |
| "CREATE_EWPOOL", "REDUCE_EWPOOL", | "CREATE_EWPOOL", "REDUCE_EWPOOL", |
| "CREATE_RWPOOL", "REDUCE_RWPOOL", | "CREATE_RWPOOL", "REDUCE_RWPOOL", |
| Line 25 char *opcode_name[]={ | Line 24 char *opcode_name[]={ |
| }; | }; |
| void dump(int level, const Array *ops) { | void dump(int level, const Array *ops) { |
| if(!ops) | |
| return; | |
| int size=ops->size(); | int size=ops->size(); |
| for(int i=0; i<size; i++) { | for(int i=0; i<size; i++) { |
| int code=reinterpret_cast<int>(ops->raw_get(i)); | int code=reinterpret_cast<int>(ops->raw_get(i)); |
| Line 37 void dump(int level, const Array *ops) { | Line 39 void dump(int level, const Array *ops) { |
| if(code==OP_CODE_ARRAY) { | if(code==OP_CODE_ARRAY) { |
| const Array *local_ops=reinterpret_cast<const Array *>(ops->raw_get(++i)); | const Array *local_ops=reinterpret_cast<const Array *>(ops->raw_get(++i)); |
| dump(level=1, local_ops); | dump(level+1, local_ops); |
| } | } |
| } | } |
| } | } |
| Line 46 void execute(Pool *pool, const Array *op | Line 48 void execute(Pool *pool, const Array *op |
| if(!ops) | if(!ops) |
| return; | return; |
| puts("---------------------------"); | |
| dump(0, ops); | dump(0, ops); |
| puts("---------------------------"); | |
| } | } |