ARM: Add table.getn() fast function.

This commit is contained in:
Mike Pall 2011-04-08 02:52:24 +02:00
parent 9e18260fb4
commit 16e0ecaf54

View File

@ -1145,7 +1145,11 @@ static void build_subroutines(BuildCtx *ctx)
|//-- Table library ------------------------------------------------------ |//-- Table library ------------------------------------------------------
| |
|.ffunc_1 table_getn |.ffunc_1 table_getn
| NYI | checktab CARG2, ->fff_fallback
| bl extern lj_tab_len // (GCtab *t)
| // Returns uint32_t (but less than 2^31).
| mvn CARG2, #~LJ_TISNUM
| b ->fff_restv
| |
|//-- Bit library -------------------------------------------------------- |//-- Bit library --------------------------------------------------------
| |