Skip to content
Snippets Groups Projects
  • Damien George's avatar
    00667105
    py/emitnative: Load native fun table ptr from const table for all archs. · 00667105
    Damien George authored
    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.
    00667105
    History
    py/emitnative: Load native fun table ptr from const table for all archs.
    Damien George authored
    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.
l0dables NaN GiB