summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-06-27 14:31:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2022-06-29 16:21:48 -0700
commite3ab525f699b5191db70ef095b3d110890441940 (patch)
treeb2dcd5f5dcbaaecc03d18c5fa403469abb96a3f7 /iseq.h
parent66eb58d6bd50dd3ad8691fcc8eb72ad4d45bc04c (diff)
Fix ISeq dump / load in array cases
We need to dump relative offsets for inline storage entries so that loading iseqs as an array works as well. This commit also has some minor refactoring to make computing relative ISE information easier. This should fix the iseq dump / load as array tests we're seeing fail in CI. Co-Authored-By: John Hawthorn <john@hawthorn.email>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6069
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index 46a8b1b010..afec0bae20 100644
--- a/iseq.h
+++ b/iseq.h
@@ -169,6 +169,7 @@ void rb_iseq_init_trace(rb_iseq_t *iseq);
int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line, bool target_bmethod);
int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
+union iseq_inline_storage_entry *ISEQ_IS_ENTRY_START(const struct rb_iseq_constant_body *body, char op_type);
#if VM_INSN_INFO_TABLE_IMPL == 2
unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);