src/ravi_jit.c
static int ravi_dump_asm(lua_State *L) {
  int n = lua_gettop(L);
  luaL_argcheck(L, n == 1, 1, "1 argument expected");
  luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1,
                "argument must be a Lua function");
  void *p = (void *)lua_topointer(L, 1);
  LClosure *l = (LClosure *)(p);
  raviV_dumpASM(L, l->p);
  return 0;
}
// Dump LLVM ASM of the supplied function
// if it has been compiled
Dump LLVM ASM of the supplied function
if it has been compiled
Dump LLVM ASM of the supplied function if it has been compiled
static int ravi_dump_asm(lua_State *L) {
  int n = lua_gettop(L);
  luaL_argcheck(L, n == 1, 1, "1 argument expected");
  luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1,
                "argument must be a Lua function");
  void *p = (void *)lua_topointer(L, 1);
  LClosure *l = (LClosure *)(p);
  raviV_dumpASM(L, l->p);
  return 0;
}
static int ravi_dump_asm ( lua_State * L ) { int n = lua_gettop ( L ) ; luaL_argcheck ( L , n == 1 , 1 , " " ) ; luaL_argcheck ( L , lua_isfunction ( L , 1 ) && ! lua_iscfunction ( L , 1 ) , 1 , " " ) ; void * p = ( void * ) lua_topointer ( L , 1 ) ; LClosure * l = ( LClosure * ) ( p ) ; raviV_dumpASM ( L , l -> p ) ; return 0 ; }
Dump LLVM ASM of the supplied function
if it has been compiled
Dump LLVM ASM of the supplied function if it has been compiled