[ruby/win32ole] Undefine allocator of WIN32OLE_VARIABLE to get rid of warning
[ruby-80x24.org.git] / yjit_codegen.h
blobe3b971af3fcfd1c86e313a9b6c0ed42f5e0e6ea0
1 #ifndef YJIT_CODEGEN_H
2 #define YJIT_CODEGEN_H 1
4 typedef enum codegen_status {
5 YJIT_END_BLOCK,
6 YJIT_KEEP_COMPILING,
7 YJIT_CANT_COMPILE
8 } codegen_status_t;
10 // Code generation function signature
11 typedef codegen_status_t (*codegen_fn)(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb);
13 static void jit_ensure_block_entry_exit(jitstate_t *jit);
15 static uint8_t *yjit_entry_prologue(codeblock_t *cb, const rb_iseq_t *iseq);
17 static block_t *gen_single_block(blockid_t blockid, const ctx_t *start_ctx, rb_execution_context_t *ec);
19 static void gen_code_for_exit_from_stub(void);
21 static void yjit_init_codegen(void);
23 #endif // #ifndef YJIT_CODEGEN_H