mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
YJIT: Remove unused branch_t::src_ctx field
No one reads it at the moment and it's heap allocated.
This commit is contained in:
parent
fbd21a81f3
commit
7e27de2f1e
Notes:
git
2021-12-16 06:13:51 +09:00
Merged: https://github.com/ruby/ruby/pull/5278 Merged-By: XrXr
2 changed files with 3 additions and 2 deletions
|
@ -658,7 +658,7 @@ make_branch_entry(block_t *block, const ctx_t *src_ctx, branchgen_fn gen_fn)
|
|||
branch_t *branch = calloc(1, sizeof(branch_t));
|
||||
|
||||
branch->block = block;
|
||||
branch->src_ctx = *src_ctx;
|
||||
(void)src_ctx; // Unused for now
|
||||
branch->gen_fn = gen_fn;
|
||||
branch->shape = SHAPE_DEFAULT;
|
||||
|
||||
|
|
|
@ -196,7 +196,8 @@ typedef struct yjit_branch_entry
|
|||
uint8_t *end_addr;
|
||||
|
||||
// Context right after the branch instruction
|
||||
ctx_t src_ctx;
|
||||
// Unused for now.
|
||||
// ctx_t src_ctx;
|
||||
|
||||
// Branch target blocks and their contexts
|
||||
blockid_t targets[2];
|
||||
|
|
Loading…
Add table
Reference in a new issue