Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

iseq.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 iseq.h -
4
5 $Author$
6 created at: 04/01/01 23:36:57 JST
7
8 Copyright (C) 2004-2008 Koichi Sasada
9
10 **********************************************************************/
11
12 #ifndef RUBY_ISEQ_H
13 #define RUBY_ISEQ_H 1
14
15 RUBY_EXTERN const int ruby_api_version[];
16 #define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
17 #define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
18
19 #ifndef rb_iseq_t
20 typedef struct rb_iseq_struct rb_iseq_t;
21 #define rb_iseq_t rb_iseq_t
22 #endif
23
24 extern const ID rb_iseq_shared_exc_local_tbl[];
25
26 static inline size_t
27 rb_call_info_kw_arg_bytes(int keyword_len)
28 {
29 return rb_size_mul_add_or_raise(
30 keyword_len - 1, sizeof(VALUE), sizeof(struct rb_call_info_kw_arg),
31 rb_eRuntimeError);
32 }
33
34 #define ISEQ_COVERAGE(iseq) iseq->body->variable.coverage
35 #define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE(iseq, &iseq->body->variable.coverage, cov)
36 #define ISEQ_LINE_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_LINES)
37 #define ISEQ_BRANCH_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_BRANCHES)
38
39 #define ISEQ_PC2BRANCHINDEX(iseq) iseq->body->variable.pc2branchindex
40 #define ISEQ_PC2BRANCHINDEX_SET(iseq, h) RB_OBJ_WRITE(iseq, &iseq->body->variable.pc2branchindex, h)
41
42 #define ISEQ_FLIP_CNT(iseq) (iseq)->body->variable.flip_count
43
44 static inline rb_snum_t
45 ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq)
46 {
47 rb_snum_t cnt = iseq->body->variable.flip_count;
48 iseq->body->variable.flip_count += 1;
49 return cnt;
50 }
51
52 static inline VALUE *
53 ISEQ_ORIGINAL_ISEQ(const rb_iseq_t *iseq)
54 {
55 return iseq->body->variable.original_iseq;
56 }
57
58 static inline void
59 ISEQ_ORIGINAL_ISEQ_CLEAR(const rb_iseq_t *iseq)
60 {
61 void *ptr = iseq->body->variable.original_iseq;
62 iseq->body->variable.original_iseq = NULL;
63 if (ptr) {
64 ruby_xfree(ptr);
65 }
66 }
67
68 static inline VALUE *
69 ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
70 {
71 return iseq->body->variable.original_iseq =
72 ALLOC_N(VALUE, size);
73 }
74
75 #define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \
76 RUBY_EVENT_CLASS | \
77 RUBY_EVENT_END | \
78 RUBY_EVENT_CALL | \
79 RUBY_EVENT_RETURN| \
80 RUBY_EVENT_B_CALL| \
81 RUBY_EVENT_B_RETURN| \
82 RUBY_EVENT_COVERAGE_LINE| \
83 RUBY_EVENT_COVERAGE_BRANCH)
84
85 #define ISEQ_NOT_LOADED_YET IMEMO_FL_USER1
86 #define ISEQ_USE_COMPILE_DATA IMEMO_FL_USER2
87 #define ISEQ_TRANSLATED IMEMO_FL_USER3
88 #define ISEQ_MARKABLE_ISEQ IMEMO_FL_USER4
89
90 #define ISEQ_EXECUTABLE_P(iseq) (FL_TEST_RAW((iseq), ISEQ_NOT_LOADED_YET | ISEQ_USE_COMPILE_DATA) == 0)
91
92 struct iseq_compile_data {
93 /* GC is needed */
94 const VALUE err_info;
95 const VALUE catch_table_ary; /* Array */
96
97 /* GC is not needed */
98 struct iseq_label_data *start_label;
99 struct iseq_label_data *end_label;
100 struct iseq_label_data *redo_label;
101 const rb_iseq_t *current_block;
102 struct iseq_compile_data_ensure_node_stack *ensure_node_stack;
103 struct {
104 struct iseq_compile_data_storage *storage_head;
105 struct iseq_compile_data_storage *storage_current;
106 } node;
107 struct {
108 struct iseq_compile_data_storage *storage_head;
109 struct iseq_compile_data_storage *storage_current;
110 } insn;
111 int loopval_popped; /* used by NODE_BREAK */
112 int last_line;
113 int label_no;
114 int node_level;
115 unsigned int ci_index;
116 unsigned int ci_kw_index;
117 const rb_compile_option_t *option;
118 struct rb_id_table *ivar_cache_table;
119 const struct rb_builtin_function *builtin_function_table;
120 #if OPT_SUPPORT_JOKE
121 st_table *labels_table;
122 #endif
123 };
124
125 static inline struct iseq_compile_data *
126 ISEQ_COMPILE_DATA(const rb_iseq_t *iseq)
127 {
128 if (iseq->flags & ISEQ_USE_COMPILE_DATA) {
129 return iseq->aux.compile_data;
130 }
131 else {
132 return NULL;
133 }
134 }
135
136 static inline void
137 ISEQ_COMPILE_DATA_ALLOC(rb_iseq_t *iseq)
138 {
139 iseq->aux.compile_data = ZALLOC(struct iseq_compile_data);
140 iseq->flags |= ISEQ_USE_COMPILE_DATA;
141 }
142
143 static inline void
144 ISEQ_COMPILE_DATA_CLEAR(rb_iseq_t *iseq)
145 {
146 iseq->flags &= ~ISEQ_USE_COMPILE_DATA;
147 iseq->aux.compile_data = NULL;
148 }
149
150 static inline rb_iseq_t *
151 iseq_imemo_alloc(void)
152 {
153 return (rb_iseq_t *)rb_imemo_new(imemo_iseq, 0, 0, 0, 0);
154 }
155
156 VALUE rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt);
157 void rb_ibf_load_iseq_complete(rb_iseq_t *iseq);
158 const rb_iseq_t *rb_iseq_ibf_load(VALUE str);
159 const rb_iseq_t *rb_iseq_ibf_load_bytes(const char *cstr, size_t);
160 VALUE rb_iseq_ibf_load_extra_data(VALUE str);
161 void rb_iseq_init_trace(rb_iseq_t *iseq);
162 int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line);
163 int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
164 const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
165
166 #if VM_INSN_INFO_TABLE_IMPL == 2
167 unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);
168 #endif
169
170 RUBY_SYMBOL_EXPORT_BEGIN
171
172 /* compile.c */
173 VALUE rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node);
174 VALUE rb_iseq_compile_callback(rb_iseq_t *iseq, const struct rb_iseq_new_with_callback_callback_func * ifunc);
175 VALUE *rb_iseq_original_iseq(const rb_iseq_t *iseq);
176 void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc,
177 VALUE locals, VALUE args,
178 VALUE exception, VALUE body);
179 void rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *arena);
180
181 /* iseq.c */
182 VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
183 VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
184 unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
185 void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events);
186 void rb_iseq_trace_set_all(rb_event_flag_t turnon_events);
187 void rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq);
188
189 struct rb_iseq_constant_body *rb_iseq_constant_body_alloc(void);
190 VALUE rb_iseqw_new(const rb_iseq_t *iseq);
191 const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
192
193 VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq); /* obsolete */
194 VALUE rb_iseq_label(const rb_iseq_t *iseq);
195 VALUE rb_iseq_base_label(const rb_iseq_t *iseq);
196 VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq);
197 VALUE rb_iseq_method_name(const rb_iseq_t *iseq);
198 void rb_iseq_code_location(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
199
200 void rb_iseq_remove_coverage_all(void);
201
202 /* proc.c */
203 const rb_iseq_t *rb_method_iseq(VALUE body);
204 const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
205
206 struct rb_compile_option_struct {
207 unsigned int inline_const_cache: 1;
208 unsigned int peephole_optimization: 1;
209 unsigned int tailcall_optimization: 1;
210 unsigned int specialized_instruction: 1;
211 unsigned int operands_unification: 1;
212 unsigned int instructions_unification: 1;
213 unsigned int stack_caching: 1;
214 unsigned int frozen_string_literal: 1;
215 unsigned int debug_frozen_string_literal: 1;
216 unsigned int coverage_enabled: 1;
217 int debug_level;
218 };
219
220 struct iseq_insn_info_entry {
221 int line_no;
222 rb_event_flag_t events;
223 };
224
225 struct iseq_catch_table_entry {
226 enum catch_type {
227 CATCH_TYPE_RESCUE = INT2FIX(1),
228 CATCH_TYPE_ENSURE = INT2FIX(2),
229 CATCH_TYPE_RETRY = INT2FIX(3),
230 CATCH_TYPE_BREAK = INT2FIX(4),
231 CATCH_TYPE_REDO = INT2FIX(5),
232 CATCH_TYPE_NEXT = INT2FIX(6)
233 } type;
234
235 /*
236 * iseq type:
237 * CATCH_TYPE_RESCUE, CATCH_TYPE_ENSURE:
238 * use iseq as continuation.
239 *
240 * CATCH_TYPE_BREAK (iter):
241 * use iseq as key.
242 *
243 * CATCH_TYPE_BREAK (while), CATCH_TYPE_RETRY,
244 * CATCH_TYPE_REDO, CATCH_TYPE_NEXT:
245 * NULL.
246 */
247 rb_iseq_t *iseq;
248
249 unsigned int start;
250 unsigned int end;
251 unsigned int cont;
252 unsigned int sp;
253 };
254
255 PACKED_STRUCT_UNALIGNED(struct iseq_catch_table {
256 unsigned int size;
257 struct iseq_catch_table_entry entries[FLEX_ARY_LEN];
258 });
259
260 static inline int
261 iseq_catch_table_bytes(int n)
262 {
263 enum {
264 catch_table_entry_size = sizeof(struct iseq_catch_table_entry),
265 catch_table_entries_max = (INT_MAX - offsetof(struct iseq_catch_table, entries)) / catch_table_entry_size
266 };
267 if (n > catch_table_entries_max) rb_fatal("too large iseq_catch_table - %d", n);
268 return (int)(offsetof(struct iseq_catch_table, entries) +
269 n * catch_table_entry_size);
270 }
271
272 #define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
273
274 struct iseq_compile_data_storage {
275 struct iseq_compile_data_storage *next;
276 unsigned int pos;
277 unsigned int size;
278 char buff[FLEX_ARY_LEN];
279 };
280
281 /* defined? */
282
283 enum defined_type {
284 DEFINED_NOT_DEFINED,
285 DEFINED_NIL = 1,
286 DEFINED_IVAR,
287 DEFINED_LVAR,
288 DEFINED_GVAR,
289 DEFINED_CVAR,
290 DEFINED_CONST,
291 DEFINED_METHOD,
292 DEFINED_YIELD,
293 DEFINED_ZSUPER,
294 DEFINED_SELF,
295 DEFINED_TRUE,
296 DEFINED_FALSE,
297 DEFINED_ASGN,
298 DEFINED_EXPR,
299 DEFINED_IVAR2,
300 DEFINED_REF,
301 DEFINED_FUNC,
302 DEFINED_CONST_FROM
303 };
304
305 VALUE rb_iseq_defined_string(enum defined_type type);
306
307 /* vm.c */
308 VALUE rb_iseq_local_variables(const rb_iseq_t *iseq);
309
310 RUBY_SYMBOL_EXPORT_END
311
312 #endif /* RUBY_ISEQ_H */
rb_iseq_ibf_load_extra_data
VALUE rb_iseq_ibf_load_extra_data(VALUE str)
Definition: compile.c:11630
ID
unsigned long ID
Definition: ruby.h:103
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
ruby_xfree
void ruby_xfree(void *x)
Definition: gc.c:10150
rb_iseq_local_variables
VALUE rb_iseq_local_variables(const rb_iseq_t *iseq)
Definition: vm.c:849
DEFINED_FUNC
@ DEFINED_FUNC
Definition: iseq.h:301
iseq_compile_data::storage_current
struct iseq_compile_data_storage * storage_current
Definition: iseq.h:105
rb_iseq_add_local_tracepoint_recursively
int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line)
Definition: iseq.c:3202
iseq_compile_data::loopval_popped
int loopval_popped
Definition: iseq.h:111
iseq_catch_table_entry::iseq
rb_iseq_t * iseq
Definition: iseq.h:247
rb_builtin_function
Definition: builtin.h:6
rb_iseq_struct
Definition: vm_core.h:456
rb_iseq_new_with_callback_callback_func
Definition: vm_core.h:1018
iseq_compile_data_storage::buff
char buff[FLEX_ARY_LEN]
Definition: iseq.h:278
rb_iseq_parameters
VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
Definition: iseq.c:2939
iseq_insn_info_entry
Definition: iseq.h:220
INT2FIX
#define INT2FIX(i)
Definition: ruby.h:263
iseq_catch_table_entry::CATCH_TYPE_RESCUE
@ CATCH_TYPE_RESCUE
Definition: iseq.h:227
iseq_compile_data::storage_head
struct iseq_compile_data_storage * storage_head
Definition: iseq.h:104
iseq_catch_table_entry::cont
unsigned int cont
Definition: iseq.h:251
rb_iseq_method_name
VALUE rb_iseq_method_name(const rb_iseq_t *iseq)
Definition: iseq.c:1063
iseq_compile_data::ensure_node_stack
struct iseq_compile_data_ensure_node_stack * ensure_node_stack
Definition: iseq.h:102
VALUE
unsigned long VALUE
Definition: ruby.h:102
ZALLOC
#define ZALLOC(type)
Definition: ruby.h:1666
offsetof
#define offsetof(p_type, field)
Definition: addrinfo.h:186
rb_iseq_compile_callback
VALUE rb_iseq_compile_callback(rb_iseq_t *iseq, const struct rb_iseq_new_with_callback_callback_func *ifunc)
Definition: compile.c:630
iseq_catch_table_entry
Definition: iseq.h:225
imemo_iseq
@ imemo_iseq
Definition: internal.h:1140
rb_iseq_struct::compile_data
struct iseq_compile_data * compile_data
Definition: vm_core.h:463
DEFINED_REF
@ DEFINED_REF
Definition: iseq.h:300
iseq_catch_table_entry::end
unsigned int end
Definition: iseq.h:250
iseq_compile_data_ensure_node_stack
Definition: compile.c:104
iseq_compile_data::ci_kw_index
unsigned int ci_kw_index
Definition: iseq.h:116
rb_iseq_init_trace
void rb_iseq_init_trace(rb_iseq_t *iseq)
Definition: iseq.c:623
rb_id_table
Definition: id_table.c:40
rb_iseq_shared_exc_local_tbl
const ID rb_iseq_shared_exc_local_tbl[]
Definition: compile.c:110
rb_iseq_trace_set_all
void rb_iseq_trace_set_all(rb_event_flag_t turnon_events)
Definition: iseq.c:3315
DEFINED_YIELD
@ DEFINED_YIELD
Definition: iseq.h:292
ptr
struct RIMemo * ptr
Definition: debug.c:74
rb_iseqw_to_iseq
const rb_iseq_t * rb_iseqw_to_iseq(VALUE iseqw)
Definition: iseq.c:1350
rb_iseq_struct::aux
union rb_iseq_struct::@181 aux
NULL
#define NULL
Definition: _sdbm.c:101
iseq_catch_table_entry::CATCH_TYPE_REDO
@ CATCH_TYPE_REDO
Definition: iseq.h:231
DEFINED_TRUE
@ DEFINED_TRUE
Definition: iseq.h:295
rb_iseq_constant_body_alloc
struct rb_iseq_constant_body * rb_iseq_constant_body_alloc(void)
Definition: iseq.c:433
DEFINED_FALSE
@ DEFINED_FALSE
Definition: iseq.h:296
rb_compile_option_struct::coverage_enabled
unsigned int coverage_enabled
Definition: iseq.h:216
rb_iseq_code_location
void rb_iseq_code_location(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column)
Definition: iseq.c:1076
rb_iseq_ibf_load
const rb_iseq_t * rb_iseq_ibf_load(VALUE str)
Definition: compile.c:11602
rb_fatal
void rb_fatal(const char *fmt,...)
Definition: error.c:2720
DEFINED_CVAR
@ DEFINED_CVAR
Definition: iseq.h:289
rb_iseq_load_iseq
const rb_iseq_t * rb_iseq_load_iseq(VALUE fname)
Definition: iseq.c:847
rb_iseq_remove_local_tracepoint_recursively
int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval)
Definition: iseq.c:3258
rb_iseq_constant_body
Definition: vm_core.h:311
rb_iseq_absolute_path
VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq)
Definition: iseq.c:1039
iseq_compile_data_storage
Definition: iseq.h:274
iseq_compile_data::insn
struct iseq_compile_data::@117 insn
rb_imemo_new
VALUE rb_imemo_new(enum imemo_type type, VALUE v1, VALUE v2, VALUE v3, VALUE v0)
Definition: gc.c:2306
rb_snum_t
signed long rb_snum_t
Definition: vm_core.h:182
ALLOC_N
#define ALLOC_N(type, n)
Definition: ruby.h:1663
rb_call_info_kw_arg
Definition: vm_core.h:240
rb_compile_option_struct::specialized_instruction
unsigned int specialized_instruction
Definition: iseq.h:210
iseq_compile_data::node
struct iseq_compile_data::@116 node
rb_iseq_ibf_dump
VALUE rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt)
Definition: compile.c:11378
rb_iseq_remove_coverage_all
void rb_iseq_remove_coverage_all(void)
Definition: iseq.c:1110
rb_iseq_struct::flags
VALUE flags
Definition: vm_core.h:457
iseq_compile_data::node_level
int node_level
Definition: iseq.h:114
rb_iseqw_new
VALUE rb_iseqw_new(const rb_iseq_t *iseq)
Definition: iseq.c:1157
rb_compile_option_struct::frozen_string_literal
unsigned int frozen_string_literal
Definition: iseq.h:214
rb_compile_option_struct
Definition: iseq.h:206
INT_MAX
#define INT_MAX
Definition: rb_mjit_min_header-2.7.0.h:4052
rb_iseq_constant_body::variable
struct rb_iseq_constant_body::@179 variable
rb_compile_option_struct::tailcall_optimization
unsigned int tailcall_optimization
Definition: iseq.h:209
rb_iseq_compile_node
RUBY_SYMBOL_EXPORT_BEGIN VALUE rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node)
Definition: compile.c:644
DEFINED_GVAR
@ DEFINED_GVAR
Definition: iseq.h:288
iseq_compile_data::redo_label
struct iseq_label_data * redo_label
Definition: iseq.h:100
cnt
rb_atomic_t cnt[RUBY_NSIG]
Definition: signal.c:503
rb_iseq_trace_set
void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events)
Definition: iseq.c:3269
rb_iseq_ibf_load_bytes
const rb_iseq_t * rb_iseq_ibf_load_bytes(const char *cstr, size_t)
Definition: compile.c:11616
rb_compile_option_struct::peephole_optimization
unsigned int peephole_optimization
Definition: iseq.h:208
iseq_compile_data::current_block
const rb_iseq_t * current_block
Definition: iseq.h:101
entries
struct iseq_catch_table_entry entries[]
Definition: rb_mjit_min_header-2.7.0.h:10827
rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:920
size
int size
Definition: encoding.c:58
iseq_catch_table_entry::type
enum iseq_catch_table_entry::catch_type type
iseq_compile_data_storage::size
unsigned int size
Definition: iseq.h:277
iseq_catch_table_entry::CATCH_TYPE_BREAK
@ CATCH_TYPE_BREAK
Definition: iseq.h:230
rb_iseq_label
VALUE rb_iseq_label(const rb_iseq_t *iseq)
Definition: iseq.c:1045
rb_compile_option_struct::inline_const_cache
unsigned int inline_const_cache
Definition: iseq.h:207
PACKED_STRUCT_UNALIGNED
PACKED_STRUCT_UNALIGNED(struct iseq_catch_table { unsigned int size;struct iseq_catch_table_entry entries[FLEX_ARY_LEN];})
ruby_api_version
const RUBY_EXTERN int ruby_api_version[]
Definition: iseq.h:15
DEFINED_NOT_DEFINED
@ DEFINED_NOT_DEFINED
Definition: iseq.h:284
ISEQ_USE_COMPILE_DATA
#define ISEQ_USE_COMPILE_DATA
Definition: iseq.h:86
iseq_label_data
Definition: compile.c:62
rb_compile_option_struct::debug_frozen_string_literal
unsigned int debug_frozen_string_literal
Definition: iseq.h:215
rb_compile_option_struct::stack_caching
unsigned int stack_caching
Definition: iseq.h:213
iseq_catch_table_entry::catch_type
catch_type
Definition: iseq.h:226
iseq_compile_data
Definition: iseq.h:92
DEFINED_SELF
@ DEFINED_SELF
Definition: iseq.h:294
rb_event_flag_t
uint32_t rb_event_flag_t
Definition: ruby.h:2278
n
const char size_t n
Definition: rb_mjit_min_header-2.7.0.h:5456
iseq_compile_data_storage::pos
unsigned int pos
Definition: iseq.h:276
rb_compile_option_struct::instructions_unification
unsigned int instructions_unification
Definition: iseq.h:212
iseq_compile_data::ivar_cache_table
struct rb_id_table * ivar_cache_table
Definition: iseq.h:118
rb_iseq_line_no
unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos)
Definition: iseq.c:1761
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48
rb_iseq_mark_insn_storage
void rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *arena)
Definition: compile.c:9197
iseq_compile_data::end_label
struct iseq_label_data * end_label
Definition: iseq.h:99
DEFINED_NIL
@ DEFINED_NIL
Definition: iseq.h:285
rb_iseq_defined_string
VALUE rb_iseq_defined_string(enum defined_type type)
Definition: iseq.c:3033
DEFINED_CONST_FROM
@ DEFINED_CONST_FROM
Definition: iseq.h:302
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
iseq_insn_info_entry::events
rb_event_flag_t events
Definition: iseq.h:222
DEFINED_IVAR2
@ DEFINED_IVAR2
Definition: iseq.h:299
iseq_catch_table_entry::CATCH_TYPE_NEXT
@ CATCH_TYPE_NEXT
Definition: iseq.h:232
rb_compile_option_struct::debug_level
int debug_level
Definition: iseq.h:217
rb_iseq_build_from_ary
void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc, VALUE locals, VALUE args, VALUE exception, VALUE body)
Definition: compile.c:9249
RUBY_EXTERN
#define RUBY_EXTERN
Definition: missing.h:77
DEFINED_EXPR
@ DEFINED_EXPR
Definition: iseq.h:298
rb_proc_get_iseq
const rb_iseq_t * rb_proc_get_iseq(VALUE proc, int *is_proc)
Definition: proc.c:1194
iseq_compile_data::builtin_function_table
const struct rb_builtin_function * builtin_function_table
Definition: iseq.h:119
rb_size_mul_add_or_raise
size_t rb_size_mul_add_or_raise(size_t x, size_t y, size_t z, VALUE exc)
Definition: gc.c:219
DEFINED_CONST
@ DEFINED_CONST
Definition: iseq.h:290
rb_iseq_struct::body
struct rb_iseq_constant_body * body
Definition: vm_core.h:460
iseq_catch_table_entry::sp
unsigned int sp
Definition: iseq.h:252
rb_iseq_insns_info_encode_positions
void rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq)
Definition: iseq.c:595
defined_type
defined_type
Definition: iseq.h:283
iseq_compile_data::catch_table_ary
const VALUE catch_table_ary
Definition: iseq.h:95
FLEX_ARY_LEN
#define FLEX_ARY_LEN
Definition: internal.h:2620
iseq_compile_data::last_line
int last_line
Definition: iseq.h:112
iseq
const rb_iseq_t * iseq
Definition: rb_mjit_min_header-2.7.0.h:13504
iseq_compile_data::ci_index
unsigned int ci_index
Definition: iseq.h:115
rb_method_iseq
const rb_iseq_t * rb_method_iseq(VALUE body)
Definition: proc.c:2679
DEFINED_IVAR
@ DEFINED_IVAR
Definition: iseq.h:286
rb_iseq_load
VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt)
Definition: iseq.c:972
rb_iseq_first_lineno
VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq)
Definition: iseq.c:1057
DEFINED_ZSUPER
@ DEFINED_ZSUPER
Definition: iseq.h:293
iseq_catch_table
Definition: rb_mjit_min_header-2.7.0.h:10860
DEFINED_ASGN
@ DEFINED_ASGN
Definition: iseq.h:297
st_table
Definition: st.h:79
DEFINED_METHOD
@ DEFINED_METHOD
Definition: iseq.h:291
rb_iseq_original_iseq
VALUE * rb_iseq_original_iseq(const rb_iseq_t *iseq)
Definition: compile.c:778
iseq_catch_table_entry::start
unsigned int start
Definition: iseq.h:249
iseq_catch_table_entry::CATCH_TYPE_ENSURE
@ CATCH_TYPE_ENSURE
Definition: iseq.h:228
iseq_compile_data_storage::next
struct iseq_compile_data_storage * next
Definition: iseq.h:275
DEFINED_LVAR
@ DEFINED_LVAR
Definition: iseq.h:287
rb_iseq_constant_body::original_iseq
VALUE * original_iseq
Definition: vm_core.h:432
iseq_compile_data::option
const rb_compile_option_t * option
Definition: iseq.h:117
rb_iseq_constant_body::flip_count
rb_snum_t flip_count
Definition: vm_core.h:429
rb_iseq_insns_info_decode_positions
unsigned int * rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body)
Definition: iseq.c:613
iseq_compile_data::start_label
struct iseq_label_data * start_label
Definition: iseq.h:98
ruby::backward::cxxanyargs::type
VALUE type(ANYARGS)
ANYARGS-ed function type.
Definition: cxxanyargs.hpp:39
iseq_compile_data::err_info
const VALUE err_info
Definition: iseq.h:94
RNode
Definition: node.h:149
rb_ibf_load_iseq_complete
void rb_ibf_load_iseq_complete(rb_iseq_t *iseq)
Definition: compile.c:11436
iseq_insn_info_entry::line_no
int line_no
Definition: iseq.h:221
iseq_catch_table_entry::CATCH_TYPE_RETRY
@ CATCH_TYPE_RETRY
Definition: iseq.h:229
iseq_compile_data::label_no
int label_no
Definition: iseq.h:113
rb_iseq_base_label
VALUE rb_iseq_base_label(const rb_iseq_t *iseq)
Definition: iseq.c:1051
rb_compile_option_struct::operands_unification
unsigned int operands_unification
Definition: iseq.h:211