summaryrefslogtreecommitdiff
path: root/ujit_codegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'ujit_codegen.h')
-rw-r--r--ujit_codegen.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/ujit_codegen.h b/ujit_codegen.h
deleted file mode 100644
index a3fd53a154..0000000000
--- a/ujit_codegen.h
+++ /dev/null
@@ -1,49 +0,0 @@
-#ifndef UJIT_CODEGEN_H
-#define UJIT_CODEGEN_H 1
-
-#include "stddef.h"
-#include "ujit_core.h"
-
-// Code blocks we generate code into
-extern codeblock_t *cb;
-extern codeblock_t *ocb;
-
-// Code generation state
-typedef struct JITState
-{
- // Block version being compiled
- block_t* block;
-
- // Instruction sequence this is associated with
- const rb_iseq_t *iseq;
-
- // Index of the current instruction being compiled
- uint32_t insn_idx;
-
- // Current PC
- VALUE *pc;
-
-} jitstate_t;
-
-// Code generation function signature
-typedef bool (*codegen_fn)(jitstate_t* jit, ctx_t* ctx);
-
-// Meta-information associated with a given opcode
-typedef struct OpDesc
-{
- // Code generation function
- codegen_fn gen_fn;
-
- // Indicates that this is a branch instruction
- // which terminates a block
- bool is_branch;
-
-} opdesc_t;
-
-uint8_t* ujit_entry_prologue();
-
-void ujit_gen_block(ctx_t* ctx, block_t* block);
-
-void ujit_init_codegen(void);
-
-#endif // #ifndef UJIT_CODEGEN_H