Ruby  2.5.0dev(2017-10-22revision60238)
Public Types | Data Fields
rb_iseq_constant_body Struct Reference

#include <vm_core.h>

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_DEFINED_GUARD
}
 

Data Fields

enum rb_iseq_constant_body::iseq_type type
 
unsigned int iseq_size
 
const VALUEiseq_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
 
   }   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
 
      const VALUE *   default_values
 
   }   keyword
 
param
 parameter information More...
 
rb_iseq_location_t location
 
const struct iseq_line_info_entryline_info_table
 
const IDlocal_table
 
const struct iseq_catch_table * catch_table
 
const struct rb_iseq_structparent_iseq
 
struct rb_iseq_structlocal_iseq
 
union iseq_inline_storage_entryis_entries
 
struct rb_call_infoci_entries
 
struct rb_call_cachecc_entries
 
VALUE mark_ary
 
unsigned int local_table_size
 
unsigned int is_size
 
unsigned int ci_size
 
unsigned int ci_kw_size
 
unsigned int line_info_size
 
unsigned int stack_max
 

Detailed Description

Definition at line 300 of file vm_core.h.

Member Enumeration Documentation

◆ iseq_type

Enumerator
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_DEFINED_GUARD 

Definition at line 301 of file vm_core.h.

Field Documentation

◆ ambiguous_param0

unsigned int rb_iseq_constant_body::ambiguous_param0

Definition at line 349 of file vm_core.h.

◆ bits_start

int rb_iseq_constant_body::bits_start

Definition at line 379 of file vm_core.h.

◆ block_start

int rb_iseq_constant_body::block_start

Definition at line 359 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ catch_table

const struct iseq_catch_table* rb_iseq_constant_body::catch_table

Definition at line 394 of file vm_core.h.

Referenced by rb_iseq_free().

◆ cc_entries

struct rb_call_cache* rb_iseq_constant_body::cc_entries

Definition at line 406 of file vm_core.h.

Referenced by rb_iseq_free().

◆ ci_entries

struct rb_call_info* rb_iseq_constant_body::ci_entries

Definition at line 401 of file vm_core.h.

Referenced by rb_iseq_free().

◆ ci_kw_size

unsigned int rb_iseq_constant_body::ci_kw_size

Definition at line 413 of file vm_core.h.

Referenced by rb_iseq_free().

◆ ci_size

unsigned int rb_iseq_constant_body::ci_size

Definition at line 412 of file vm_core.h.

Referenced by rb_iseq_free().

◆ default_values

const VALUE* rb_iseq_constant_body::default_values

Definition at line 382 of file vm_core.h.

◆ flags

struct { ... } rb_iseq_constant_body::flags

◆ has_block

unsigned int rb_iseq_constant_body::has_block

Definition at line 347 of file vm_core.h.

◆ has_kw

unsigned int rb_iseq_constant_body::has_kw

Definition at line 345 of file vm_core.h.

◆ has_kwrest

unsigned int rb_iseq_constant_body::has_kwrest

Definition at line 346 of file vm_core.h.

◆ has_lead

unsigned int rb_iseq_constant_body::has_lead

Definition at line 341 of file vm_core.h.

◆ has_opt

unsigned int rb_iseq_constant_body::has_opt

Definition at line 342 of file vm_core.h.

◆ has_post

unsigned int rb_iseq_constant_body::has_post

Definition at line 344 of file vm_core.h.

◆ has_rest

unsigned int rb_iseq_constant_body::has_rest

Definition at line 343 of file vm_core.h.

◆ is_entries

union iseq_inline_storage_entry* rb_iseq_constant_body::is_entries

Definition at line 400 of file vm_core.h.

Referenced by rb_iseq_free().

◆ is_size

unsigned int rb_iseq_constant_body::is_size

Definition at line 411 of file vm_core.h.

◆ iseq_encoded

const VALUE* rb_iseq_constant_body::iseq_encoded

◆ iseq_size

unsigned int rb_iseq_constant_body::iseq_size

Definition at line 313 of file vm_core.h.

Referenced by rb_iseq_disasm(), and rb_iseq_translate_threaded_code().

◆ keyword

const { ... } ::rb_iseq_param_keyword * rb_iseq_constant_body::keyword

Referenced by rb_iseq_free(), and rb_iseq_parameters().

◆ lead_num

int rb_iseq_constant_body::lead_num

Definition at line 354 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ line_info_size

unsigned int rb_iseq_constant_body::line_info_size

Definition at line 414 of file vm_core.h.

◆ line_info_table

const struct iseq_line_info_entry* rb_iseq_constant_body::line_info_table

Definition at line 389 of file vm_core.h.

Referenced by rb_iseq_free().

◆ local_iseq

struct rb_iseq_struct* rb_iseq_constant_body::local_iseq

Definition at line 398 of file vm_core.h.

Referenced by iseq_ibf_dump(), and rb_iseq_method_name().

◆ local_table

const ID* rb_iseq_constant_body::local_table

Definition at line 391 of file vm_core.h.

Referenced by rb_insn_operand_intern(), rb_iseq_build_from_ary(), and rb_iseq_free().

◆ local_table_size

unsigned int rb_iseq_constant_body::local_table_size

Definition at line 410 of file vm_core.h.

Referenced by rb_insn_operand_intern(), and rb_iseq_build_from_ary().

◆ location

rb_iseq_location_t rb_iseq_constant_body::location

◆ mark_ary

VALUE rb_iseq_constant_body::mark_ary

Definition at line 408 of file vm_core.h.

Referenced by rb_iseq_mark().

◆ num

int rb_iseq_constant_body::num

Definition at line 377 of file vm_core.h.

◆ opt_num

int rb_iseq_constant_body::opt_num

Definition at line 355 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ opt_table

const VALUE* rb_iseq_constant_body::opt_table

Definition at line 361 of file vm_core.h.

Referenced by rb_iseq_free().

◆ param

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.

Referenced by rb_iseq_build_from_ary(), rb_iseq_free(), and rb_iseq_parameters().

◆ parent_iseq

const struct rb_iseq_struct* rb_iseq_constant_body::parent_iseq

Definition at line 397 of file vm_core.h.

Referenced by iseq_ibf_dump(), rb_insn_operand_intern(), and rb_iseq_mark().

◆ post_num

int rb_iseq_constant_body::post_num

Definition at line 358 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ post_start

int rb_iseq_constant_body::post_start

Definition at line 357 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ required_num

int rb_iseq_constant_body::required_num

Definition at line 378 of file vm_core.h.

◆ rest_start

int rb_iseq_constant_body::rest_start

Definition at line 356 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ size

unsigned int rb_iseq_constant_body::size

Definition at line 352 of file vm_core.h.

Referenced by rb_iseq_parameters().

◆ stack_max

unsigned int rb_iseq_constant_body::stack_max

Definition at line 415 of file vm_core.h.

◆ table

const ID* rb_iseq_constant_body::table

Definition at line 381 of file vm_core.h.

◆ type

enum rb_iseq_constant_body::iseq_type rb_iseq_constant_body::type

Referenced by rb_iseq_method_name().


The documentation for this struct was generated from the following file: