зеркало из https://github.com/github/ruby.git
20 строки
514 B
C
20 строки
514 B
C
#ifndef YJIT_CODEGEN_H
|
|
#define YJIT_CODEGEN_H 1
|
|
|
|
typedef enum codegen_status {
|
|
YJIT_END_BLOCK,
|
|
YJIT_KEEP_COMPILING,
|
|
YJIT_CANT_COMPILE
|
|
} codegen_status_t;
|
|
|
|
// Code generation function signature
|
|
typedef codegen_status_t (*codegen_fn)(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb);
|
|
|
|
static uint8_t *yjit_entry_prologue(codeblock_t *cb, const rb_iseq_t *iseq);
|
|
|
|
static void yjit_gen_block(block_t *block, rb_execution_context_t *ec);
|
|
|
|
static void yjit_init_codegen(void);
|
|
|
|
#endif // #ifndef YJIT_CODEGEN_H
|