@@ -413,18 +413,6 @@ rb_iseq_set_yjit_payload(const rb_iseq_t *iseq, void *payload)
413413 iseq -> body -> yjit_payload = payload ;
414414}
415415
416- void
417- rb_iseq_reset_jit_func (const rb_iseq_t * iseq )
418- {
419- RUBY_ASSERT_ALWAYS (IMEMO_TYPE_P (iseq , imemo_iseq ));
420- iseq -> body -> jit_entry = NULL ;
421- iseq -> body -> jit_exception = NULL ;
422- // Enable re-compiling this ISEQ. Event when it's invalidated for TracePoint,
423- // we'd like to re-compile ISEQs that haven't been converted to trace_* insns.
424- iseq -> body -> jit_entry_calls = 0 ;
425- iseq -> body -> jit_exception_calls = 0 ;
426- }
427-
428416rb_proc_t *
429417rb_yjit_get_proc_ptr (VALUE procv )
430418{
@@ -643,41 +631,6 @@ rb_yjit_constcache_shareable(const struct iseq_inline_constant_cache_entry *ice)
643631 return (ice -> flags & IMEMO_CONST_CACHE_SHAREABLE ) != 0 ;
644632}
645633
646- // Used for passing a callback and other data over rb_objspace_each_objects
647- struct iseq_callback_data {
648- rb_iseq_callback callback ;
649- void * data ;
650- };
651-
652- // Heap-walking callback for rb_yjit_for_each_iseq().
653- static int
654- for_each_iseq_i (void * vstart , void * vend , size_t stride , void * data )
655- {
656- const struct iseq_callback_data * callback_data = (struct iseq_callback_data * )data ;
657- VALUE v = (VALUE )vstart ;
658- for (; v != (VALUE )vend ; v += stride ) {
659- void * ptr = rb_asan_poisoned_object_p (v );
660- rb_asan_unpoison_object (v , false);
661-
662- if (rb_obj_is_iseq (v )) {
663- rb_iseq_t * iseq = (rb_iseq_t * )v ;
664- callback_data -> callback (iseq , callback_data -> data );
665- }
666-
667- asan_poison_object_if (ptr , v );
668- }
669- return 0 ;
670- }
671-
672- // Iterate through the whole GC heap and invoke a callback for each iseq.
673- // Used for global code invalidation.
674- void
675- rb_yjit_for_each_iseq (rb_iseq_callback callback , void * data )
676- {
677- struct iseq_callback_data callback_data = { .callback = callback , .data = data };
678- rb_objspace_each_objects (for_each_iseq_i , (void * )& callback_data );
679- }
680-
681634// For running write barriers from Rust. Required when we add a new edge in the
682635// object graph from `old` to `young`.
683636void
0 commit comments