|
Ruby
3.1.4p223 (2023-03-30 revision HEAD)
|
Data Structures | |
| struct | iseq_insn_info |
Public Types | |
| enum | iseq_type { ISEQ_TYPE_TOP , ISEQ_TYPE_METHOD , ISEQ_TYPE_BLOCK , ISEQ_TYPE_CLASS , ISEQ_TYPE_RESCUE , ISEQ_TYPE_ENSURE , ISEQ_TYPE_EVAL , ISEQ_TYPE_MAIN , ISEQ_TYPE_PLAIN } |
Data Fields | |
| enum rb_iseq_constant_body::iseq_type | type |
| unsigned int | iseq_size |
| VALUE * | iseq_encoded |
| struct { | |
| struct { | |
| unsigned int has_lead: 1 | |
| unsigned int has_opt: 1 | |
| unsigned int has_rest: 1 | |
| unsigned int has_post: 1 | |
| unsigned int has_kw: 1 | |
| unsigned int has_kwrest: 1 | |
| unsigned int has_block: 1 | |
| unsigned int ambiguous_param0: 1 | |
| unsigned int accepts_no_kwarg: 1 | |
| unsigned int ruby2_keywords: 1 | |
| } flags | |
| unsigned int size | |
| int lead_num | |
| int opt_num | |
| int rest_start | |
| int post_start | |
| int post_num | |
| int block_start | |
| const VALUE * opt_table | |
| struct rb_iseq_param_keyword { | |
| int num | |
| int required_num | |
| int bits_start | |
| int rest_start | |
| const ID * table | |
| VALUE * default_values | |
| } keyword | |
| } | param |
| parameter information More... | |
| rb_iseq_location_t | location |
| struct rb_iseq_constant_body::iseq_insn_info | insns_info |
| const ID * | local_table |
| struct iseq_catch_table * | catch_table |
| const struct rb_iseq_struct * | parent_iseq |
| struct rb_iseq_struct * | local_iseq |
| union iseq_inline_storage_entry * | is_entries |
| struct rb_call_data * | call_data |
| struct { | |
| rb_snum_t flip_count | |
| VALUE script_lines | |
| VALUE coverage | |
| VALUE pc2branchindex | |
| VALUE * original_iseq | |
| } | variable |
| unsigned int | local_table_size |
| unsigned int | is_size |
| unsigned int | ci_size |
| unsigned int | stack_max |
| char | catch_except_p |
| bool | builtin_inline_p |
| struct rb_id_table * | outer_variables |
| const rb_iseq_t * | mandatory_only_iseq |
| rb_yjit_block_array_array_t | yjit_blocks |
| struct { ... } rb_iseq_constant_body::param |
parameter information
def m(a1, a2, ..., aM, # mandatory b1=(...), b2=(...), ..., bN=(...), # optional *c, # rest d1, d2, ..., dO, # post e1:(...), e2:(...), ..., eK:(...), # keyword **f, # keyword_rest &g) # block =>
lead_num = M opt_num = N rest_start = M+N post_start = M+N+(*1) post_num = O keyword_num = K block_start = M+N+(*1)+O+K keyword_bits = M+N+(*1)+O+K+(&1) size = M+N+O+(*1)+K+(&1)+(**1) // parameter size.