diff options
author | Takashi Kokubun <[email protected]> | 2023-03-06 21:34:31 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-06 21:59:23 -0800 |
commit | 233ddfac541749a0da80ea27913dc1ef4ea700bb (patch) | |
tree | d0b0d5939225ed1ebbb03c1dbeae7f0d3548092b /internal | |
parent | 31f4b2d86bfbc753cec9be376719acc4b120e944 (diff) |
Stop exporting symbols for MJIT
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7459
Diffstat (limited to 'internal')
-rw-r--r-- | internal/array.h | 2 | ||||
-rw-r--r-- | internal/basic_operators.h | 2 | ||||
-rw-r--r-- | internal/bignum.h | 2 | ||||
-rw-r--r-- | internal/class.h | 2 | ||||
-rw-r--r-- | internal/compile.h | 2 | ||||
-rw-r--r-- | internal/gc.h | 2 | ||||
-rw-r--r-- | internal/hash.h | 2 | ||||
-rw-r--r-- | internal/numeric.h | 2 | ||||
-rw-r--r-- | internal/object.h | 2 | ||||
-rw-r--r-- | internal/proc.h | 2 | ||||
-rw-r--r-- | internal/re.h | 2 | ||||
-rw-r--r-- | internal/string.h | 2 | ||||
-rw-r--r-- | internal/thread.h | 2 | ||||
-rw-r--r-- | internal/variable.h | 2 | ||||
-rw-r--r-- | internal/vm.h | 8 |
15 files changed, 0 insertions, 36 deletions
diff --git a/internal/array.h b/internal/array.h index a0d16dec3f..3aeb1be2dd 100644 --- a/internal/array.h +++ b/internal/array.h @@ -42,7 +42,6 @@ static inline bool ARY_PTR_USING_P(VALUE ary); static inline void RARY_TRANSIENT_SET(VALUE ary); static inline void RARY_TRANSIENT_UNSET(VALUE ary); -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *); VALUE rb_check_to_array(VALUE ary); VALUE rb_ary_behead(VALUE, long); @@ -50,7 +49,6 @@ VALUE rb_ary_aref1(VALUE ary, VALUE i); struct rb_execution_context_struct; VALUE rb_ec_ary_new_from_values(struct rb_execution_context_struct *ec, long n, const VALUE *elts); -MJIT_SYMBOL_EXPORT_END // YJIT needs this function to never allocate and never raise static inline VALUE diff --git a/internal/basic_operators.h b/internal/basic_operators.h index 2cd9f50073..12a0475990 100644 --- a/internal/basic_operators.h +++ b/internal/basic_operators.h @@ -40,9 +40,7 @@ enum ruby_basic_operators { BOP_LAST_ }; -MJIT_SYMBOL_EXPORT_BEGIN RUBY_EXTERN short ruby_vm_redefined_flag[BOP_LAST_]; -MJIT_SYMBOL_EXPORT_END /* optimize insn */ #define INTEGER_REDEFINED_OP_FLAG (1 << 0) diff --git a/internal/bignum.h b/internal/bignum.h index 5cd35ede8a..db8d3aee83 100644 --- a/internal/bignum.h +++ b/internal/bignum.h @@ -163,11 +163,9 @@ VALUE rb_str2big_gmp(VALUE arg, int base, int badcheck); VALUE rb_int_parse_cstr(const char *str, ssize_t len, char **endp, size_t *ndigits, int base, int flags); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN #if defined(HAVE_INT128_T) VALUE rb_int128t2big(int128_t n); #endif -MJIT_SYMBOL_EXPORT_END /* sign: positive:1, negative:0 */ static inline bool diff --git a/internal/class.h b/internal/class.h index 9905e4e388..9e47a339c1 100644 --- a/internal/class.h +++ b/internal/class.h @@ -148,10 +148,8 @@ static inline VALUE RCLASS_SUPER(VALUE klass); static inline VALUE RCLASS_SET_SUPER(VALUE klass, VALUE super); static inline void RCLASS_SET_INCLUDER(VALUE iclass, VALUE klass); -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_class_inherited(VALUE, VALUE); VALUE rb_keyword_error_new(const char *, VALUE); -MJIT_SYMBOL_EXPORT_END static inline rb_alloc_func_t RCLASS_ALLOCATOR(VALUE klass) diff --git a/internal/compile.h b/internal/compile.h index 8670785b7b..eebb7605cd 100644 --- a/internal/compile.h +++ b/internal/compile.h @@ -29,9 +29,7 @@ int rb_vm_insn_addr2insn(const void *); int rb_vm_insn_decode(const VALUE encoded); extern bool ruby_vm_keep_script_lines; -MJIT_SYMBOL_EXPORT_BEGIN /* iseq.c (export) */ rb_event_flag_t rb_iseq_event_flags(const struct rb_iseq_struct *iseq, size_t pos); -MJIT_SYMBOL_EXPORT_END #endif /* INTERNAL_COMPILE_H */ diff --git a/internal/gc.h b/internal/gc.h index dc55de1c03..749b73005c 100644 --- a/internal/gc.h +++ b/internal/gc.h @@ -291,11 +291,9 @@ void *ruby_sized_xrealloc2(void *ptr, size_t new_count, size_t element_size, siz void ruby_sized_xfree(void *x, size_t size); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN int rb_ec_stack_check(struct rb_execution_context_struct *ec); void rb_gc_writebarrier_remember(VALUE obj); const char *rb_obj_info(VALUE obj); -MJIT_SYMBOL_EXPORT_END #if defined(HAVE_MALLOC_USABLE_SIZE) || defined(HAVE_MALLOC_SIZE) || defined(_WIN32) diff --git a/internal/hash.h b/internal/hash.h index dff421137a..275c5167e4 100644 --- a/internal/hash.h +++ b/internal/hash.h @@ -107,7 +107,6 @@ VALUE rb_ident_hash_new(void); int rb_hash_stlike_foreach(VALUE hash, st_foreach_callback_func *func, st_data_t arg); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_hash_new_with_size(st_index_t size); VALUE rb_hash_resurrect(VALUE hash); int rb_hash_stlike_lookup(VALUE hash, st_data_t key, st_data_t *pval); @@ -117,7 +116,6 @@ VALUE rb_hash_compare_by_id_p(VALUE hash); st_table *rb_hash_tbl_raw(VALUE hash, const char *file, int line); #define RHASH_TBL_RAW(h) rb_hash_tbl_raw(h, __FILE__, __LINE__) -MJIT_SYMBOL_EXPORT_END VALUE rb_hash_compare_by_id(VALUE hash); diff --git a/internal/numeric.h b/internal/numeric.h index 89bc54b307..f7b8d0ad2d 100644 --- a/internal/numeric.h +++ b/internal/numeric.h @@ -111,7 +111,6 @@ RUBY_SYMBOL_EXPORT_BEGIN /* numeric.c (export) */ RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_flo_div_flo(VALUE x, VALUE y); double ruby_float_mod(double x, double y); VALUE rb_float_equal(VALUE x, VALUE y); @@ -125,7 +124,6 @@ VALUE rb_int_abs(VALUE num); VALUE rb_int_bit_length(VALUE num); VALUE rb_int_uminus(VALUE num); VALUE rb_int_comp(VALUE num); -MJIT_SYMBOL_EXPORT_END static inline bool INT_POSITIVE_P(VALUE num) diff --git a/internal/object.h b/internal/object.h index 7b54e13dd2..58e989562a 100644 --- a/internal/object.h +++ b/internal/object.h @@ -27,7 +27,6 @@ RUBY_SYMBOL_EXPORT_BEGIN int rb_opts_exception_p(VALUE opts, int default_value); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN CONSTFUNC(VALUE rb_obj_equal(VALUE obj1, VALUE obj2)); CONSTFUNC(VALUE rb_obj_not(VALUE obj)); VALUE rb_obj_not_equal(VALUE obj1, VALUE obj2); @@ -36,7 +35,6 @@ VALUE rb_false(VALUE obj); VALUE rb_convert_type_with_id(VALUE v, int t, const char* nam, ID mid); VALUE rb_obj_size(VALUE self, VALUE args, VALUE obj); VALUE rb_get_freeze_opt(int argc, VALUE *argv); -MJIT_SYMBOL_EXPORT_END static inline void RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass) diff --git a/internal/proc.h b/internal/proc.h index 2416c31e14..c75f15b283 100644 --- a/internal/proc.h +++ b/internal/proc.h @@ -22,11 +22,9 @@ int rb_block_min_max_arity(int *max); VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info); VALUE rb_callable_receiver(VALUE); -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val); VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc); VALUE rb_iseq_location(const struct rb_iseq_struct *iseq); VALUE rb_sym_to_proc(VALUE sym); -MJIT_SYMBOL_EXPORT_END #endif /* INTERNAL_PROC_H */ diff --git a/internal/re.h b/internal/re.h index 8b31b3d8a5..7b2505b9a8 100644 --- a/internal/re.h +++ b/internal/re.h @@ -23,8 +23,6 @@ void rb_backref_set_string(VALUE string, long pos, long len); void rb_match_unbusy(VALUE); int rb_match_count(VALUE match); int rb_match_nth_defined(int nth, VALUE match); -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_reg_new_ary(VALUE ary, int options); -MJIT_SYMBOL_EXPORT_END #endif /* INTERNAL_RE_H */ diff --git a/internal/string.h b/internal/string.h index 12edbff2b1..5f59d9621b 100644 --- a/internal/string.h +++ b/internal/string.h @@ -67,7 +67,6 @@ bool rb_str_reembeddable_p(VALUE); void rb_str_update_shared_ary(VALUE str, VALUE old_root, VALUE new_root); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_fstring_new(const char *ptr, long len); VALUE rb_obj_as_string_result(VALUE str, VALUE obj); VALUE rb_str_opt_plus(VALUE x, VALUE y); @@ -78,7 +77,6 @@ VALUE rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE struct rb_execution_context_struct; VALUE rb_ec_str_resurrect(struct rb_execution_context_struct *ec, VALUE str); -MJIT_SYMBOL_EXPORT_END #define rb_fstring_lit(str) rb_fstring_new((str), rb_strlen_lit(str)) #define rb_fstring_literal(str) rb_fstring_lit(str) diff --git a/internal/thread.h b/internal/thread.h index c3e54de683..2bcc2d242e 100644 --- a/internal/thread.h +++ b/internal/thread.h @@ -49,8 +49,6 @@ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, in int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */ RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing); -MJIT_SYMBOL_EXPORT_END #endif /* INTERNAL_THREAD_H */ diff --git a/internal/variable.h b/internal/variable.h index e012b1196e..4436cd789c 100644 --- a/internal/variable.h +++ b/internal/variable.h @@ -49,7 +49,6 @@ int rb_class_ivar_set(VALUE klass, ID vid, VALUE value); void rb_iv_tbl_copy(VALUE dst, VALUE src); RUBY_SYMBOL_EXPORT_END -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef); VALUE rb_gvar_get(ID); VALUE rb_gvar_set(ID, VALUE); @@ -59,7 +58,6 @@ rb_shape_t * rb_grow_iv_list(VALUE obj); void rb_ensure_iv_list_size(VALUE obj, uint32_t len, uint32_t newsize); struct gen_ivtbl *rb_ensure_generic_iv_list_size(VALUE obj, rb_shape_t *shape, uint32_t newsize); attr_index_t rb_obj_ivar_set(VALUE obj, ID id, VALUE val); -MJIT_SYMBOL_EXPORT_END static inline bool ROBJ_TRANSIENT_P(VALUE obj) diff --git a/internal/vm.h b/internal/vm.h index cf245c6579..cfb8923572 100644 --- a/internal/vm.h +++ b/internal/vm.h @@ -58,9 +58,7 @@ VALUE rb_yield_refine_block(VALUE refinement, VALUE refinements); MJIT_STATIC VALUE ruby_vm_special_exception_copy(VALUE); PUREFUNC(st_table *rb_vm_fstring_table(void)); -MJIT_SYMBOL_EXPORT_BEGIN VALUE vm_exec(struct rb_execution_context_struct *, bool); /* used in JIT-ed code */ -MJIT_SYMBOL_EXPORT_END /* vm_eval.c */ VALUE rb_current_realfilepath(void); @@ -85,15 +83,11 @@ VALUE rb_equal_opt(VALUE obj1, VALUE obj2); VALUE rb_eql_opt(VALUE obj1, VALUE obj2); struct rb_iseq_struct; -MJIT_SYMBOL_EXPORT_BEGIN const struct rb_callcache *rb_vm_search_method_slowpath(const struct rb_callinfo *ci, VALUE klass); -MJIT_SYMBOL_EXPORT_END /* vm_method.c */ struct rb_execution_context_struct; -MJIT_SYMBOL_EXPORT_BEGIN int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID id, int priv); -MJIT_SYMBOL_EXPORT_END void rb_clear_constant_cache(void); @@ -115,10 +109,8 @@ int rb_frame_info_p(VALUE obj); int rb_get_node_id_from_frame_info(VALUE obj); const struct rb_iseq_struct *rb_get_iseq_from_frame_info(VALUE obj); -MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec); void rb_backtrace_use_iseq_first_lineno_for_last_location(VALUE self); -MJIT_SYMBOL_EXPORT_END #define RUBY_DTRACE_CREATE_HOOK(name, arg) \ RUBY_DTRACE_HOOK(name##_CREATE, arg) |