summaryrefslogtreecommitdiff
path: root/ujit_compile.h
blob: 624f8dc5b7e7142dfcb79fc17c7aa4ae496dee31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef UJIT_COMPILE_H
#define UJIT_COMPILE_H 1

#include "stddef.h"
#include "stdint.h"
#include "stdbool.h"

#ifndef rb_iseq_t
typedef struct rb_iseq_struct rb_iseq_t;
#define rb_iseq_t rb_iseq_t
#endif

void rb_ujit_init(void);
bool rb_ujit_enabled_p(void);
uint8_t* ujit_compile_insn(rb_iseq_t *iseq, unsigned int insn_idx, unsigned int* next_ujit_idx);

#endif