PPC: Add table.getn() fast function.

This commit is contained in:
Mike Pall 2010-10-05 01:47:39 +02:00
parent 2f5f6290e7
commit 14cd10e322

View File

@ -1322,7 +1322,12 @@ static void build_subroutines(BuildCtx *ctx)
|//-- Table library ------------------------------------------------------ |//-- Table library ------------------------------------------------------
| |
|.ffunc_1 table_getn |.ffunc_1 table_getn
| NYI | checktab CARG1
| checkfail ->fff_fallback
| bl extern lj_tab_len // (GCtab *t)
| // Returns uint32_t (but less than 2^31).
| efdcfsi CRET1, CRET1
| b ->fff_restv
| |
|//-- Bit library -------------------------------------------------------- |//-- Bit library --------------------------------------------------------
| |