diff options
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -106,14 +106,6 @@ extern int ruby_assert_critical_section_entered; #include "ruby/thread_native.h" -#if USE_SHARED_GC -typedef struct gc_function_map { - void *(*objspace_alloc)(void); -} rb_gc_function_map_t; - -#define rb_gc_functions (&GET_VM()->gc_functions_map) -#endif - /* * implementation selector of get_insn_info algorithm * 0: linear search @@ -427,6 +419,7 @@ struct rb_iseq_constant_body { unsigned int anon_rest: 1; unsigned int anon_kwrest: 1; unsigned int use_block: 1; + unsigned int forwardable: 1; } flags; unsigned int size; @@ -760,9 +753,6 @@ typedef struct rb_vm_struct { int coverage_mode; struct rb_objspace *objspace; -#if USE_SHARED_GC - rb_gc_function_map_t gc_functions_map; -#endif rb_at_exit_list *at_exit; @@ -1209,11 +1199,11 @@ typedef enum { RUBY_SYMBOL_EXPORT_BEGIN /* node -> iseq */ -rb_iseq_t *rb_iseq_new (const VALUE vast, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, enum rb_iseq_type); -rb_iseq_t *rb_iseq_new_top (const VALUE vast, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent); -rb_iseq_t *rb_iseq_new_main (const VALUE vast, VALUE path, VALUE realpath, const rb_iseq_t *parent, int opt); -rb_iseq_t *rb_iseq_new_eval (const VALUE vast, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth); -rb_iseq_t *rb_iseq_new_with_opt(const VALUE vast, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth, +rb_iseq_t *rb_iseq_new (const VALUE ast_value, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, enum rb_iseq_type); +rb_iseq_t *rb_iseq_new_top (const VALUE ast_value, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent); +rb_iseq_t *rb_iseq_new_main (const VALUE ast_value, VALUE path, VALUE realpath, const rb_iseq_t *parent, int opt); +rb_iseq_t *rb_iseq_new_eval (const VALUE ast_value, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth); +rb_iseq_t *rb_iseq_new_with_opt(const VALUE ast_value, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth, enum rb_iseq_type, const rb_compile_option_t*, VALUE script_lines); |