diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2021-09-21 16:09:16 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:41 -0400 |
commit | f1eb48cb23c949ce8163c6b6d2042cecd0d79ea9 (patch) | |
tree | 7b15b82badaf93910f55d75af0fcc4eb7d64a05b /yjit_codegen.h | |
parent | c55d4cafc241706d1255d8609d3d7c6f04d0706a (diff) |
Step 2 to remove the global cb/ocb objects.
Diffstat (limited to 'yjit_codegen.h')
-rw-r--r-- | yjit_codegen.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/yjit_codegen.h b/yjit_codegen.h index 54a8f8023f..75edcc8da8 100644 --- a/yjit_codegen.h +++ b/yjit_codegen.h @@ -9,37 +9,6 @@ extern codeblock_t *cb; extern codeblock_t *ocb; extern uint32_t yjit_codepage_frozen_bytes; -// 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; - - // Opcode for the instruction being compiled - int opcode; - - // PC of the instruction being compiled - VALUE *pc; - - // Side exit to the instruction being compiled. See :side-exit:. - uint8_t *side_exit_for_pc; - - // Execution context when compilation started - // This allows us to peek at run-time values - rb_execution_context_t *ec; - - // Whether we need to record the code address at - // the end of this bytecode instruction for global invalidation - bool record_boundary_patch_point; - -} jitstate_t; - typedef enum codegen_status { YJIT_END_BLOCK, YJIT_KEEP_COMPILING, |