mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
Introduce version_t struct. Will be needed for code invalidation.
This commit is contained in:
parent
a251059070
commit
3a74011ff8
7 changed files with 187 additions and 172 deletions
|
@ -15,7 +15,7 @@ typedef struct JITState
|
|||
const rb_iseq_t *iseq;
|
||||
|
||||
// Index in the iseq of the opcode we are replacing
|
||||
uint32_t start_idx;
|
||||
const uint32_t start_idx;
|
||||
|
||||
// Index of the current instruction being compiled
|
||||
uint32_t insn_idx;
|
||||
|
@ -42,7 +42,7 @@ typedef struct OpDesc
|
|||
|
||||
uint8_t* ujit_compile_entry(const rb_iseq_t *iseq, uint32_t insn_idx);
|
||||
|
||||
uint8_t *ujit_compile_block(const rb_iseq_t *iseq, uint32_t insn_idx, ctx_t* ctx, uint32_t* num_instrs);
|
||||
void ujit_compile_block(const rb_iseq_t *iseq, uint32_t insn_idx, ctx_t* ctx, uint32_t* num_instrs);
|
||||
|
||||
void ujit_init_codegen(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue