PN_OP 42 core/asm.c PN_OP *pos; PN_OP 43 core/asm.c PN_FLEX_NEEDS(sizeof(PN_OP), asmb, PN_TBYTES, PNAsm, ASM_UNIT); PN_OP 44 core/asm.c pos = (PN_OP *)(asmb->ptr + asmb->len); PN_OP 50 core/asm.c asmb->len += sizeof(PN_OP); PN_OP 134 core/compile.c numcols = (int)ceil(log10(PN_FLEX_SIZE(t->asmb) / sizeof(PN_OP))); PN_OP 135 core/compile.c for (x = 0; x < PN_FLEX_SIZE(t->asmb) / sizeof(PN_OP); x++) { PN_OP 297 core/compile.c PN_OP op; op.a = PN_S(lhs,0); //12 bit! PN_OP 363 core/compile.c PN_OP op; op.a = PN_S(t,0); PN_OP 27 core/opcodes.h #define PN_OP_AT(asmb, n) ((PN_OP *)((PNFlex *)asmb)->ptr)[n] PN_OP 28 core/opcodes.h #define PN_OP_LEN(asmb) (PN_FLEX_SIZE(asmb) / sizeof(PN_OP)) PN_OP 124 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 129 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 134 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 144 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 149 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 184 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 191 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 198 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 205 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 212 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 222 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 234 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 239 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 244 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 249 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 254 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 259 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 267 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 274 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 289 core/vm-ppc.c void potion_ppc_jmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PN_OP *start, PNJumps *jmps, size_t *offs, int *jmpc) { PN_OP 290 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 308 core/vm-ppc.c void potion_ppc_testjmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PN_OP *start, PNJumps *jmps, size_t *offs, int *jmpc) { PN_OP 309 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 314 core/vm-ppc.c void potion_ppc_notjmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PN_OP *start, PNJumps *jmps, size_t *offs, int *jmpc) { PN_OP 315 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 330 core/vm-ppc.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 337 core/vm-ppc.c void potion_ppc_method(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_OP **pos, long lregs, long start, long regs) { PN_OP 285 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 291 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 300 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 312 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 320 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 337 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 355 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 363 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 370 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 381 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 389 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 399 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 411 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 433 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 443 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 453 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 460 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 468 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 478 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 491 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 504 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 514 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 519 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 524 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 529 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 534 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 539 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 544 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 552 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 564 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 576 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 587 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 597 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 607 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 612 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 645 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 660 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 675 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 695 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 771 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 795 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, *pos); PN_OP 807 core/vm-x86.c PN_OP opp = PN_OP_AT(f->asmb, *pos); PN_OP 827 core/vm-x86.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 273 core/vm.c for (pos = 0; pos < PN_FLEX_SIZE(f->asmb) / sizeof(PN_OP); pos++) { PN_OP 372 core/vm.c PN potion_debug(Potion *P, struct PNProto *f, PN self, PN_OP op, PN* reg, PN* stack) { PN_OP 564 core/vm.c PN_OP op = PN_OP_AT(f->asmb, pos); PN_OP 93 syn/syntax-p5.y { $$ = PN_OP(AST_AND, e, a) } PN_OP 95 syn/syntax-p5.y { $$ = PN_OP(AST_AND, PN_AST(NOT, e), a) } PN_OP 99 syn/syntax-p5.y { $$ = PN_OP(AST_AND, e, a) } PN_OP 101 syn/syntax-p5.y { $$ = PN_OP(AST_AND, PN_AST(NOT, e), a) } PN_OP 103 syn/syntax-p5.y ( or x:sets { s = PN_OP(AST_OR, s, x) } PN_OP 104 syn/syntax-p5.y | and x:sets { s = PN_OP(AST_AND, s, x) })* sep? PN_OP 157 syn/syntax-p5.y ifstmt = IF e:ifexpr s:block !"els" { $$ = PN_TUP(PN_OP(AST_AND, e, s)) } PN_OP 185 syn/syntax-p5.y | or assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_OR, e, s)) } PN_OP 186 syn/syntax-p5.y | and assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_OR, e, s)) } PN_OP 187 syn/syntax-p5.y | pipe assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_PIPE, e, s)) } PN_OP 188 syn/syntax-p5.y | caret assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_CARET, e, s)) } PN_OP 189 syn/syntax-p5.y | amp assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_AMP, e, s)) } PN_OP 190 syn/syntax-p5.y | bitl assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_BITL, e, s)) } PN_OP 191 syn/syntax-p5.y | bitr assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_BITR, e, s)) } PN_OP 192 syn/syntax-p5.y | plus assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_PLUS, e, s)) } PN_OP 193 syn/syntax-p5.y | minus assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_MINUS, e, s)) } PN_OP 194 syn/syntax-p5.y | times assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_TIMES, e, s)) } PN_OP 195 syn/syntax-p5.y | div assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_DIV, e, s)) } PN_OP 196 syn/syntax-p5.y | rem assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_REM, e, s)) } PN_OP 197 syn/syntax-p5.y | pow assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_POW, e, s)) })? PN_OP 201 syn/syntax-p5.y ( cmp x:cmps { c = PN_OP(AST_CMP, c, x) } PN_OP 202 syn/syntax-p5.y | eq x:cmps { c = PN_OP(AST_EQ, c, x) } PN_OP 203 syn/syntax-p5.y | neq x:cmps { c = PN_OP(AST_NEQ, c, x) })* PN_OP 207 syn/syntax-p5.y ( gte x:bitors { o = PN_OP(AST_GTE, o, x) } PN_OP 208 syn/syntax-p5.y | gt x:bitors { o = PN_OP(AST_GT, o, x) } PN_OP 209 syn/syntax-p5.y | lte x:bitors { o = PN_OP(AST_LTE, o, x) } PN_OP 210 syn/syntax-p5.y | lt x:bitors { o = PN_OP(AST_LT, o, x) })* PN_OP 214 syn/syntax-p5.y ( pipe x:bitand { a = PN_OP(AST_PIPE, a, x) } PN_OP 215 syn/syntax-p5.y | caret x:bitand { a = PN_OP(AST_CARET, a, x) })* PN_OP 219 syn/syntax-p5.y ( amp x:bitshift { b = PN_OP(AST_AMP, b, x) })* PN_OP 223 syn/syntax-p5.y ( bitl x:sum { s = PN_OP(AST_BITL, s, x) } PN_OP 224 syn/syntax-p5.y | bitr x:sum { s = PN_OP(AST_BITR, s, x) })* PN_OP 228 syn/syntax-p5.y ( plus x:product { p = PN_OP(AST_PLUS, p, x) } PN_OP 229 syn/syntax-p5.y | minus x:product { p = PN_OP(AST_MINUS, p, x) })* PN_OP 233 syn/syntax-p5.y ( times x:power { p = PN_OP(AST_TIMES, p, x) } PN_OP 234 syn/syntax-p5.y | div x:power { p = PN_OP(AST_DIV, p, x) } PN_OP 235 syn/syntax-p5.y | rem x:power { p = PN_OP(AST_REM, p, x) })* PN_OP 239 syn/syntax-p5.y ( pow x:expr { e = PN_OP(AST_POW, e, x) })* PN_OP 261 syn/syntax-p5.y | minus e:expr { $$ = PN_OP(AST_MINUS, PN_AST(VALUE, PN_ZERO), e) } PN_OP 262 syn/syntax-p5.y | l:eatom times !times r:eatom { $$ = PN_OP(AST_TIMES, l, r) } PN_OP 263 syn/syntax-p5.y | l:eatom div !div r:eatom { $$ = PN_OP(AST_DIV, l, r) } PN_OP 264 syn/syntax-p5.y | l:eatom minus !minus r:eatom { $$ = PN_OP(AST_MINUS, l, r) } PN_OP 265 syn/syntax-p5.y | l:eatom plus !plus r:eatom { $$ = PN_OP(AST_PLUS, l, r) } PN_OP 266 syn/syntax-p5.y | mminus e:mvalue { $$ = PN_OP(AST_INC, e, PN_NUM(-1) ^ 1) } PN_OP 267 syn/syntax-p5.y | pplus e:mvalue { $$ = PN_OP(AST_INC, e, PN_NUM(1) ^ 1) } PN_OP 268 syn/syntax-p5.y | e:mvalue (pplus { $$ = PN_OP(AST_INC, e, PN_NUM(1)) } PN_OP 269 syn/syntax-p5.y | mminus { $$ = PN_OP(AST_INC, e, PN_NUM(-1)) }) {} PN_OP 69 syn/syntax.y ( or x:sets { s = PN_OP(AST_OR, s, x) } PN_OP 70 syn/syntax.y | and x:sets { s = PN_OP(AST_AND, s, x) })* PN_OP 76 syn/syntax.y | or assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_OR, e, s)) } PN_OP 77 syn/syntax.y | and assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_AND, e, s)) } PN_OP 78 syn/syntax.y | pipe assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_PIPE, e, s)) } PN_OP 79 syn/syntax.y | caret assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_CARET, e, s)) } PN_OP 80 syn/syntax.y | amp assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_AMP, e, s)) } PN_OP 81 syn/syntax.y | bitl assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_BITL, e, s)) } PN_OP 82 syn/syntax.y | bitr assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_BITR, e, s)) } PN_OP 83 syn/syntax.y | plus assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_PLUS, e, s)) } PN_OP 84 syn/syntax.y | minus assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_MINUS, e, s)) } PN_OP 85 syn/syntax.y | times assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_TIMES, e, s)) } PN_OP 86 syn/syntax.y | div assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_DIV, e, s)) } PN_OP 87 syn/syntax.y | rem assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_REM, e, s)) } PN_OP 88 syn/syntax.y | pow assign s:sets { e = PN_AST2(ASSIGN, e, PN_OP(AST_POW, e, s)) })? PN_OP 92 syn/syntax.y ( cmp x:cmps { c = PN_OP(AST_CMP, c, x) } PN_OP 93 syn/syntax.y | eq x:cmps { c = PN_OP(AST_EQ, c, x) } PN_OP 94 syn/syntax.y | neq x:cmps { c = PN_OP(AST_NEQ, c, x) })* PN_OP 98 syn/syntax.y ( gte x:bitors { o = PN_OP(AST_GTE, o, x) } PN_OP 99 syn/syntax.y | gt x:bitors { o = PN_OP(AST_GT, o, x) } PN_OP 100 syn/syntax.y | lte x:bitors { o = PN_OP(AST_LTE, o, x) } PN_OP 101 syn/syntax.y | lt x:bitors { o = PN_OP(AST_LT, o, x) })* PN_OP 105 syn/syntax.y ( pipe x:bitand { a = PN_OP(AST_PIPE, a, x) } PN_OP 106 syn/syntax.y | caret x:bitand { a = PN_OP(AST_CARET, a, x) })* PN_OP 110 syn/syntax.y ( amp x:bitshift { b = PN_OP(AST_AMP, b, x) })* PN_OP 114 syn/syntax.y ( bitl x:sum { s = PN_OP(AST_BITL, s, x) } PN_OP 115 syn/syntax.y | bitr x:sum { s = PN_OP(AST_BITR, s, x) })* PN_OP 119 syn/syntax.y ( plus x:product { p = PN_OP(AST_PLUS, p, x) } PN_OP 120 syn/syntax.y | minus x:product { p = PN_OP(AST_MINUS, p, x) })* PN_OP 124 syn/syntax.y ( times x:power { p = PN_OP(AST_TIMES, p, x) } PN_OP 125 syn/syntax.y | div x:power { p = PN_OP(AST_DIV, p, x) } PN_OP 126 syn/syntax.y | rem x:power { p = PN_OP(AST_REM, p, x) })* PN_OP 130 syn/syntax.y ( pow x:expr { e = PN_OP(AST_POW, e, x) })* PN_OP 135 syn/syntax.y | minus !minus a:atom { a = PN_OP(AST_MINUS, PN_AST(VALUE, PN_ZERO), a) } PN_OP 136 syn/syntax.y | plus !plus a:atom { a = PN_OP(AST_PLUS, PN_AST(VALUE, PN_ZERO), a) } PN_OP 137 syn/syntax.y | mminus a:atom { a = PN_OP(AST_INC, a, PN_NUM(-1) ^ 1) } PN_OP 138 syn/syntax.y | pplus a:atom { a = PN_OP(AST_INC, a, PN_NUM(1) ^ 1) } PN_OP 139 syn/syntax.y | a:atom (pplus { a = PN_OP(AST_INC, a, PN_NUM(1)) } PN_OP 140 syn/syntax.y | mminus { a = PN_OP(AST_INC, a, PN_NUM(-1)) })?) { a = PN_TUP(a) }