Re: Is there a list of NYI FastFunc of LuaJIT?

  • From: Geoff Leyland <geoff_leyland@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 30 May 2012 09:52:32 +1200

On 30/05/2012, at 7:03 AM, Peter Cawley wrote:

> On Tue, May 29, 2012 at 5:40 PM, Mike Pall <mike-1205@xxxxxxxxxx> wrote:
>> Since I'm totally swamped with work right now, it would be highly
>> appreciated, if someone got the time to make a table of all
>> library functions in the LuaJIT wiki and add their JIT compiler
>> status: yes/no/partial. I'll fill in the gaps, when needed.
> 
> I've given it a shot: http://wiki.luajit.org/NYI

On a slightly related and hopefully useful note, luatrace [1] installs a 
-jannotate option for LuaJIT which tells you roughly the same stuff as -jdump, 
but formatted differently.  One of the differences is that it summarises trace 
status.  Here's an example where I probably shouldn't be using varargs:

Trace Status                                             Traces       Bytecodes 
          Lines
------------                                             ------       --------- 
          -----
Success                                              226 ( 47%)    11889 ( 26%) 
    3164 ( 30%)
NYI: bytecode TSETM                                   59 ( 12%)    18206 ( 41%) 
    4062 ( 39%)
NYI: FastFunc string.format                           19 (  3%)     2795 (  6%) 
     443 (  4%)
inner loop in root trace                              21 (  4%)     2658 (  6%) 
     487 (  4%)
...
--------------------------------------------    --------------- --------------- 
---------------
Total                                                479 (100%)    44083 (100%) 
   10345 (100%)
============================================    =============== =============== 
===============

Trace Status                                                                    
         Traces       Bytecodes           Lines Line
------------                                                                    
         ------       ---------           ----- ----
Success                                                                         
     226 ( 47%)    11889 ( 26%)     3164 ( 30%) 
./rima/stack.lua:24 (NYI: bytecode TSETM)                                       
      53 ( 11%)    17884 ( 40%)     3981 ( 38%)   self[top] = { ... }
./test/series.lua:64 (NYI: FastFunc string.format)                              
      10 (  2%)     2496 (  5%)      357 (  3%)     pass and ("got expected 
string \"%s\""):format(got) or
...


[1] https://github.com/geoffleyland/luatrace

Other related posts: