2020-12-08 21:54:41 +00:00
|
|
|
#ifndef UJIT_CODEGEN_H
|
|
|
|
#define UJIT_CODEGEN_H 1
|
|
|
|
|
|
|
|
#include "stddef.h"
|
|
|
|
|
2020-12-16 22:07:18 +00:00
|
|
|
// Code generation function signature
|
|
|
|
typedef bool (*codegen_fn)(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx);
|
|
|
|
|
2020-12-14 20:57:55 +00:00
|
|
|
uint8_t *ujit_compile_block(const rb_iseq_t *iseq, uint32_t insn_idx, bool gen_entry);
|
2020-12-08 21:54:41 +00:00
|
|
|
|
|
|
|
void ujit_init_codegen(void);
|
|
|
|
|
|
|
|
#endif // #ifndef UJIT_CODEGEN_H
|