Sha256: d0490e02b3239c04a69e43a298f7640afbe0c0375450aff2e42a3fa6039ce5d8

Contents?: true

Size: 921 Bytes

Versions: 11

Compression:

Stored size: 921 Bytes

Contents

/*
** Snapshot handling.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/

#ifndef _LJ_SNAP_H
#define _LJ_SNAP_H

#include "lj_obj.h"
#include "lj_jit.h"

#if LJ_HASJIT
LJ_FUNC void lj_snap_add(jit_State *J);
LJ_FUNC void lj_snap_purge(jit_State *J);
LJ_FUNC void lj_snap_shrink(jit_State *J);
LJ_FUNC IRIns *lj_snap_regspmap(GCtrace *T, SnapNo snapno, IRIns *ir);
LJ_FUNC void lj_snap_replay(jit_State *J, GCtrace *T);
LJ_FUNC const BCIns *lj_snap_restore(jit_State *J, void *exptr);
LJ_FUNC void lj_snap_grow_buf_(jit_State *J, MSize need);
LJ_FUNC void lj_snap_grow_map_(jit_State *J, MSize need);

static LJ_AINLINE void lj_snap_grow_buf(jit_State *J, MSize need)
{
  if (LJ_UNLIKELY(need > J->sizesnap)) lj_snap_grow_buf_(J, need);
}

static LJ_AINLINE void lj_snap_grow_map(jit_State *J, MSize need)
{
  if (LJ_UNLIKELY(need > J->sizesnapmap)) lj_snap_grow_map_(J, need);
}

#endif

#endif

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
immunio-1.2.1 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.19 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.18 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.16 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.15 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.13 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.11 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.10 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.7 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.6 lua-hooks/ext/luajit/src/lj_snap.h
immunio-1.1.5 lua-hooks/ext/luajit/src/lj_snap.h