-
- Downloads
py/emitnative: Load native fun table ptr from const table for all archs.
All architectures now have a dedicated register to hold the pointer to the native function table mp_fun_table, and so they all need to load this register at the start of the native function. This commit makes the loading of this register uniform across architectures by passing the pointer in the constant table for the native function, and then loading the register from the constant table. Doing it this way means that the pointer is not stored in the assembly code, helping to make the code more portable.
Showing
- py/asmarm.h 6 additions, 0 deletionspy/asmarm.h
- py/asmthumb.c 1 addition, 1 deletionpy/asmthumb.c
- py/asmthumb.h 5 additions, 0 deletionspy/asmthumb.h
- py/asmx64.c 1 addition, 1 deletionpy/asmx64.c
- py/asmx64.h 6 additions, 0 deletionspy/asmx64.h
- py/asmx86.c 1 addition, 1 deletionpy/asmx86.c
- py/asmx86.h 6 additions, 0 deletionspy/asmx86.h
- py/asmxtensa.c 2 additions, 2 deletionspy/asmxtensa.c
- py/asmxtensa.h 5 additions, 0 deletionspy/asmxtensa.h
- py/emitnative.c 21 additions, 31 deletionspy/emitnative.c
Loading
Please register or sign in to comment