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

@@ -21,6 +21,8 @@
#include "lj_iropt.h"
#include "lj_trace.h"
#include "lj_record.h"
#include "lj_ffrecord.h"
#include "lj_crecord.h"
#include "lj_dispatch.h"
#include "lj_vm.h"
@@ -55,13 +57,6 @@
** in a common handler.
*/
/* 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;
/* Type of handler to record a fast function. */
typedef void (LJ_FASTCALL *RecordFunc)(jit_State *J, RecordFFData *rd);