-
- Downloads
py: Implement full func arg passing for native emitter.
This patch gets full function argument passing working with native emitter. Includes named args, keyword args, default args, var args and var keyword args. Fully Python compliant. It reuses the bytecode mp_setup_code_state function to do all the hard work. This function is slightly adjusted to accommodate native calls, and the native emitter is forced a bit to emit similar prelude and code-info as bytecode.
Showing
- py/asmthumb.c 4 additions, 0 deletionspy/asmthumb.c
- py/asmthumb.h 1 addition, 0 deletionspy/asmthumb.h
- py/asmx64.c 19 additions, 0 deletionspy/asmx64.c
- py/asmx64.h 4 additions, 0 deletionspy/asmx64.h
- py/asmx86.c 26 additions, 1 deletionpy/asmx86.c
- py/asmx86.h 6 additions, 0 deletionspy/asmx86.h
- py/bc.c 9 additions, 4 deletionspy/bc.c
- py/emitglue.c 6 additions, 5 deletionspy/emitglue.c
- py/emitglue.h 1 addition, 1 deletionpy/emitglue.h
- py/emitinlinethumb.c 1 addition, 1 deletionpy/emitinlinethumb.c
- py/emitnative.c 190 additions, 168 deletionspy/emitnative.c
- py/nativeglue.c 2 additions, 0 deletionspy/nativeglue.c
- py/obj.h 1 addition, 1 deletionpy/obj.h
- py/objfun.c 20 additions, 42 deletionspy/objfun.c
- py/objgenerator.c 2 additions, 1 deletionpy/objgenerator.c
- py/runtime0.h 1 addition, 0 deletionspy/runtime0.h
- tests/run-tests 14 additions, 11 deletionstests/run-tests
Loading
Please register or sign in to comment