PNAsm 13 core/asm.c PNAsm *potion_asm_new(Potion *P) { PNAsm 14 core/asm.c int siz = ASM_UNIT - sizeof(PNAsm); PNAsm 15 core/asm.c PNAsm * volatile asmb = PN_FLEX_NEW(asmb, PN_TBYTES, PNAsm, siz); PNAsm 19 core/asm.c PNAsm *potion_asm_clear(Potion *P, PNAsm * volatile asmb) { PNAsm 25 core/asm.c PNAsm *potion_asm_put(Potion *P, PNAsm * volatile asmb, PN val, size_t len) { PNAsm 27 core/asm.c PN_FLEX_NEEDS(len, asmb, PN_TBYTES, PNAsm, ASM_UNIT); PNAsm 41 core/asm.c PNAsm *potion_asm_op(Potion *P, PNAsm * volatile asmb, u8 ins, int _a, int _b) { PNAsm 43 core/asm.c PN_FLEX_NEEDS(sizeof(PN_OP), asmb, PN_TBYTES, PNAsm, ASM_UNIT); PNAsm 54 core/asm.c PNAsm *potion_asm_write(Potion *P, PNAsm * volatile asmb, char *str, size_t len) { PNAsm 56 core/asm.c PN_FLEX_NEEDS(len, asmb, PN_TBYTES, PNAsm, ASM_UNIT); PNAsm 101 core/asm.h PNAsm *potion_asm_new(Potion *); PNAsm 102 core/asm.h PNAsm *potion_asm_clear(Potion *, PNAsm *); PNAsm 103 core/asm.h PNAsm *potion_asm_put(Potion *, PNAsm *, PN, size_t); PNAsm 104 core/asm.h PNAsm *potion_asm_op(Potion *, PNAsm *, u8, int, int); PNAsm 105 core/asm.h PNAsm *potion_asm_write(Potion *, PNAsm *, char *, size_t); PNAsm 21 core/compile.c #define PN_ASM1(ins, _a) f->asmb = (PN)potion_asm_op(P, (PNAsm *)f->asmb, (u8)ins, (int)_a, 0) PNAsm 22 core/compile.c #define PN_ASM2(ins, _a, _b) f->asmb = (PN)potion_asm_op(P, (PNAsm *)f->asmb, (u8)ins, (int)_a, (int)_b) PNAsm 1072 core/compile.c PNAsm * volatile asmb; PNAsm 1090 core/compile.c len = ((PNAsm *)f->asmb)->len; PNAsm 1091 core/compile.c PN_FLEX_NEW(asmb, PN_TBYTES, PNAsm, len); PNAsm 1092 core/compile.c PN_MEMCPY_N(asmb->ptr, ((PNAsm *)f->asmb)->ptr, u8, len); PNAsm 1133 core/compile.c PNAsm * volatile asmb = NULL; PNAsm 1147 core/compile.c PN_FLEX_NEW(asmb, PN_TBYTES, PNAsm, len); PNAsm 300 core/objmodel.c PNAsm * volatile asmb = potion_asm_new(P); PNAsm 380 core/objmodel.c PNAsm * volatile asmb = potion_asm_new(P); PNAsm 566 core/potion.h typedef void (*OP_F)(Potion *P, struct PNProto *, PNAsm * volatile *, ...); PNAsm 570 core/potion.h void (*setup) (Potion *, struct PNProto * volatile, PNAsm * volatile *); PNAsm 571 core/potion.h void (*stack) (Potion *, struct PNProto * volatile, PNAsm * volatile *, long); PNAsm 572 core/potion.h void (*registers)(Potion *, struct PNProto * volatile, PNAsm * volatile *, long); PNAsm 573 core/potion.h void (*local) (Potion *, struct PNProto * volatile, PNAsm * volatile *, long, long); PNAsm 574 core/potion.h void (*upvals) (Potion *, struct PNProto * volatile, PNAsm * volatile *, long, long, int); PNAsm 575 core/potion.h void (*jmpedit) (Potion *, struct PNProto * volatile, PNAsm * volatile *, unsigned char *, int); PNAsm 577 core/potion.h void (*finish) (Potion *, struct PNProto * volatile, PNAsm * volatile *); PNAsm 578 core/potion.h void (*mcache) (Potion *, struct PNVtable * volatile, PNAsm * volatile *); PNAsm 579 core/potion.h void (*ivars) (Potion *, PN, PNAsm * volatile *); PNAsm 640 core/potion.h PNAsm * volatile pbuf; ///< parser buffer PNAsm 95 core/vm-ppc.c void potion_ppc_setup(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp) { PNAsm 99 core/vm-ppc.c void potion_ppc_stack(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long rsp) { PNAsm 105 core/vm-ppc.c void potion_ppc_registers(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long start) { PNAsm 108 core/vm-ppc.c void potion_ppc_local(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long reg, long arg) { PNAsm 111 core/vm-ppc.c void potion_ppc_upvals(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long lregs, long start, int upc) { PNAsm 114 core/vm-ppc.c void potion_ppc_jmpedit(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, unsigned char *asmj, int dist) { PNAsm 123 core/vm-ppc.c void potion_ppc_move(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 128 core/vm-ppc.c void potion_ppc_loadpn(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 133 core/vm-ppc.c void potion_ppc_loadk(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 140 core/vm-ppc.c void potion_ppc_self(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 143 core/vm-ppc.c void potion_ppc_getlocal(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long regs) { PNAsm 148 core/vm-ppc.c void potion_ppc_setlocal(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long regs) { PNAsm 153 core/vm-ppc.c void potion_ppc_getupval(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long lregs) { PNAsm 156 core/vm-ppc.c void potion_ppc_setupval(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long lregs) { PNAsm 159 core/vm-ppc.c void potion_ppc_global(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 162 core/vm-ppc.c void potion_ppc_newtuple(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 165 core/vm-ppc.c void potion_ppc_settuple(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 168 core/vm-ppc.c void potion_ppc_search(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 171 core/vm-ppc.c void potion_ppc_settable(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 174 core/vm-ppc.c void potion_ppc_newlick(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 177 core/vm-ppc.c void potion_ppc_getpath(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 180 core/vm-ppc.c void potion_ppc_setpath(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 183 core/vm-ppc.c void potion_ppc_add(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 190 core/vm-ppc.c void potion_ppc_sub(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 197 core/vm-ppc.c void potion_ppc_mult(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 204 core/vm-ppc.c void potion_ppc_div(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 211 core/vm-ppc.c void potion_ppc_rem(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 221 core/vm-ppc.c void potion_ppc_pow(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 233 core/vm-ppc.c void potion_ppc_neq(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 238 core/vm-ppc.c void potion_ppc_eq(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 243 core/vm-ppc.c void potion_ppc_lt(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 248 core/vm-ppc.c void potion_ppc_lte(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 253 core/vm-ppc.c void potion_ppc_gt(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 258 core/vm-ppc.c void potion_ppc_gte(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 263 core/vm-ppc.c void potion_ppc_bitn(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 266 core/vm-ppc.c void potion_ppc_bitl(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 273 core/vm-ppc.c void potion_ppc_bitr(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 280 core/vm-ppc.c void potion_ppc_def(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 283 core/vm-ppc.c void potion_ppc_bind(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 286 core/vm-ppc.c void potion_ppc_message(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 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) { PNAsm 294 core/vm-ppc.c void potion_ppc_test_asm(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, int test) { PNAsm 297 core/vm-ppc.c void potion_ppc_test(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 301 core/vm-ppc.c void potion_ppc_not(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 305 core/vm-ppc.c void potion_ppc_cmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 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) { PNAsm 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) { PNAsm 320 core/vm-ppc.c void potion_ppc_named(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 323 core/vm-ppc.c void potion_ppc_call(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 326 core/vm-ppc.c void potion_ppc_callset(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 329 core/vm-ppc.c void potion_ppc_return(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 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) { PNAsm 340 core/vm-ppc.c void potion_ppc_class(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 343 core/vm-ppc.c void potion_ppc_finish(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp) { PNAsm 346 core/vm-ppc.c void potion_ppc_mcache(Potion *P, vPN(Vtable) vt, PNAsm * volatile *asmp) { PNAsm 349 core/vm-ppc.c void potion_ppc_ivars(Potion *P, PN ivars, PNAsm * volatile *asmp) { PNAsm 143 core/vm-x86.c static void potion_x86_c_arg(Potion *P, PNAsm * volatile *asmp, int out, int regn, int argn) { PNAsm 232 core/vm-x86.c void potion_x86_setup(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp) { PNAsm 237 core/vm-x86.c void potion_x86_stack(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long need) { PNAsm 250 core/vm-x86.c void potion_x86_registers(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long start) { PNAsm 266 core/vm-x86.c void potion_x86_local(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long reg, long arg) { PNAsm 270 core/vm-x86.c void potion_x86_upvals(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, long lregs, long start, int upc) { PNAsm 280 core/vm-x86.c void potion_x86_jmpedit(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, unsigned char *asmj, int dist) { PNAsm 284 core/vm-x86.c void potion_x86_move(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 290 core/vm-x86.c void potion_x86_loadpn(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 299 core/vm-x86.c void potion_x86_loadk(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 311 core/vm-x86.c void potion_x86_self(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 319 core/vm-x86.c void potion_x86_getlocal(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long regs) { PNAsm 336 core/vm-x86.c void potion_x86_setlocal(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long regs) { PNAsm 354 core/vm-x86.c void potion_x86_getupval(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long lregs) { PNAsm 362 core/vm-x86.c void potion_x86_setupval(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long lregs) { PNAsm 369 core/vm-x86.c void potion_x86_global(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 380 core/vm-x86.c void potion_x86_newtuple(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 388 core/vm-x86.c void potion_x86_settuple(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 398 core/vm-x86.c void potion_x86_settable(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 409 core/vm-x86.c void potion_x86_newlick(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 432 core/vm-x86.c void potion_x86_getpath(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 442 core/vm-x86.c void potion_x86_setpath(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 452 core/vm-x86.c void potion_x86_add(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 459 core/vm-x86.c void potion_x86_sub(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 467 core/vm-x86.c void potion_x86_mult(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 477 core/vm-x86.c void potion_x86_div(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 490 core/vm-x86.c void potion_x86_rem(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 503 core/vm-x86.c void potion_x86_pow(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 513 core/vm-x86.c void potion_x86_neq(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 518 core/vm-x86.c void potion_x86_eq(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 523 core/vm-x86.c void potion_x86_lt(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 528 core/vm-x86.c void potion_x86_lte(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 533 core/vm-x86.c void potion_x86_gt(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 538 core/vm-x86.c void potion_x86_gte(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 543 core/vm-x86.c void potion_x86_bitn(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 551 core/vm-x86.c void potion_x86_bitl(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 563 core/vm-x86.c void potion_x86_bitr(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 575 core/vm-x86.c void potion_x86_def(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 586 core/vm-x86.c void potion_x86_bind(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 596 core/vm-x86.c void potion_x86_message(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 606 core/vm-x86.c void potion_x86_jmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PNJumps *jmps, size_t *offs, int *jmpc) { PNAsm 611 core/vm-x86.c void potion_x86_test_asm(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, int test) { PNAsm 632 core/vm-x86.c void potion_x86_test(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 636 core/vm-x86.c void potion_x86_not(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 640 core/vm-x86.c void potion_x86_cmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 644 core/vm-x86.c void potion_x86_testjmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PNJumps *jmps, size_t *offs, int *jmpc) { PNAsm 659 core/vm-x86.c void potion_x86_notjmp(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, PNJumps *jmps, size_t *offs, int *jmpc) { PNAsm 674 core/vm-x86.c void potion_x86_named(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 694 core/vm-x86.c void potion_x86_call(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 770 core/vm-x86.c void potion_x86_callset(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 779 core/vm-x86.c void potion_x86_return(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos) { PNAsm 794 core/vm-x86.c void potion_x86_method(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE *pos, long lregs, long start, long regs) { PNAsm 826 core/vm-x86.c void potion_x86_class(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp, PN_SIZE pos, long start) { PNAsm 836 core/vm-x86.c void potion_x86_finish(Potion *P, struct PNProto * volatile f, PNAsm * volatile *asmp) { PNAsm 839 core/vm-x86.c void potion_x86_mcache(Potion *P, vPN(Vtable) vt, PNAsm * volatile *asmp) { PNAsm 865 core/vm-x86.c void potion_x86_ivars(Potion *P, PN ivars, PNAsm * volatile *asmp) { PNAsm 217 core/vm.c PNAsm * volatile asmb = potion_asm_new(P);