~ubuntu-branches/ubuntu/wily/sysdig/wily

« back to all changes in this revision

Viewing changes to third-party/LuaJIT-2.0.2/src/lj_snap.h

  • Committer: Package Import Robot
  • Author(s): Evgeni Golov
  • Date: 2014-05-01 14:53:09 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140501145309-yy0hkts9nlu43omp
Tags: 0.1.81-1
* New upstream release
* Add B-D on zlib1g-dev and use it for building
* drop LuaJIT from debian/copyright, upstream does not ship the
  copy anymore
* Only require and execute dh_dkms when building arch-independent
  stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
** Snapshot handling.
3
 
** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
4
 
*/
5
 
 
6
 
#ifndef _LJ_SNAP_H
7
 
#define _LJ_SNAP_H
8
 
 
9
 
#include "lj_obj.h"
10
 
#include "lj_jit.h"
11
 
 
12
 
#if LJ_HASJIT
13
 
LJ_FUNC void lj_snap_add(jit_State *J);
14
 
LJ_FUNC void lj_snap_purge(jit_State *J);
15
 
LJ_FUNC void lj_snap_shrink(jit_State *J);
16
 
LJ_FUNC IRIns *lj_snap_regspmap(GCtrace *T, SnapNo snapno, IRIns *ir);
17
 
LJ_FUNC void lj_snap_replay(jit_State *J, GCtrace *T);
18
 
LJ_FUNC const BCIns *lj_snap_restore(jit_State *J, void *exptr);
19
 
LJ_FUNC void lj_snap_grow_buf_(jit_State *J, MSize need);
20
 
LJ_FUNC void lj_snap_grow_map_(jit_State *J, MSize need);
21
 
 
22
 
static LJ_AINLINE void lj_snap_grow_buf(jit_State *J, MSize need)
23
 
{
24
 
  if (LJ_UNLIKELY(need > J->sizesnap)) lj_snap_grow_buf_(J, need);
25
 
}
26
 
 
27
 
static LJ_AINLINE void lj_snap_grow_map(jit_State *J, MSize need)
28
 
{
29
 
  if (LJ_UNLIKELY(need > J->sizesnapmap)) lj_snap_grow_map_(J, need);
30
 
}
31
 
 
32
 
#endif
33
 
 
34
 
#endif