FFI: Record cdata index operations (preliminary, lots of NYI cases).

This commit is contained in:
Mike Pall
2010-12-08 02:11:18 +01:00
parent 2a917a9d83
commit d778680098
12 changed files with 449 additions and 19 deletions

View File

@@ -10,6 +10,13 @@
#include "lj_jit.h"
#if LJ_HASJIT
/* Data used by handlers to record a fast function. */
typedef struct RecordFFData {
TValue *argv; /* Runtime argument values. */
ptrdiff_t nres; /* Number of returned results (defaults to 1). */
uint32_t data; /* Per-ffid auxiliary data (opcode, literal etc.). */
} RecordFFData;
LJ_FUNC int32_t lj_ffrecord_select_mode(jit_State *J, TRef tr, TValue *tv);
LJ_FUNC void lj_ffrecord_func(jit_State *J);
#endif