-
- Downloads
py/emitnative: Implement yield and yield-from in native emitter.
This commit adds first class support for yield and yield-from in the native emitter, including send and throw support, and yields enclosed in exception handlers (which requires pulling down the NLR stack before yielding, then rebuilding it when resuming). This has been fully tested and is working on unix x86 and x86-64, and stm32. Also basic tests have been done with the esp8266 port. Performance of existing native code is unchanged.
Showing
- py/compile.c 4 additions, 0 deletionspy/compile.c
- py/emitglue.c 4 additions, 0 deletionspy/emitglue.c
- py/emitnative.c 264 additions, 81 deletionspy/emitnative.c
- py/emitnx86.c 1 addition, 0 deletionspy/emitnx86.c
- py/nativeglue.c 38 additions, 1 deletionpy/nativeglue.c
- py/obj.h 1 addition, 0 deletionspy/obj.h
- py/objfun.c 1 addition, 1 deletionpy/objfun.c
- py/objgenerator.c 63 additions, 1 deletionpy/objgenerator.c
- py/runtime0.h 1 addition, 0 deletionspy/runtime0.h
Loading
Please register or sign in to comment