Replace table.getn/foreach/foreachi with bytecode builtins.
This commit is contained in:
@@ -1861,17 +1861,6 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
|ffstring_case string_lower, 65
|
||||
|ffstring_case string_upper, 97
|
||||
|
|
||||
|//-- Table library ------------------------------------------------------
|
||||
|
|
||||
|.ffunc_1 table_getn
|
||||
| checktab CARG2, ->fff_fallback
|
||||
| .IOS mov RA, BASE
|
||||
| bl extern lj_tab_len // (GCtab *t)
|
||||
| // Returns uint32_t (but less than 2^31).
|
||||
| .IOS mov BASE, RA
|
||||
| mvn CARG2, #~LJ_TISNUM
|
||||
| b ->fff_restv
|
||||
|
|
||||
|//-- Bit library --------------------------------------------------------
|
||||
|
|
||||
|// FP number to bit conversion for soft-float. Clobbers r0-r3.
|
||||
|
||||
Reference in New Issue
Block a user