ruby-changes:68754
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:26 +0900 (JST)
Subject: [ruby-changes:68754] a391684159 (master): Check for iseq wrapper instead of iseq imemo
https://git.ruby-lang.org/ruby.git/commit/?id=a391684159 From a391684159b5f967f159657b0237ef5100720f51 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Thu, 4 Feb 2021 13:00:29 -0500 Subject: Check for iseq wrapper instead of iseq imemo --- ujit_iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ujit_iface.c b/ujit_iface.c index 98698d4b79..bf36985ff6 100644 --- a/ujit_iface.c +++ b/ujit_iface.c @@ -353,7 +353,7 @@ iseqw_ujit_collect_blocks(st_data_t key, st_data_t value, st_data_t argp) https://github.com/ruby/ruby/blob/trunk/ujit_iface.c#L353 static VALUE ujit_blocks_for(VALUE mod, VALUE rb_iseq) { - if (!rb_obj_is_iseq(rb_iseq)) { + if (CLASS_OF(rb_iseq) != rb_cISeq) { return rb_ary_new(); } const rb_iseq_t *iseq = rb_iseqw_to_iseq(rb_iseq); @@ -370,7 +370,7 @@ ujit_blocks_for(VALUE mod, VALUE rb_iseq) https://github.com/ruby/ruby/blob/trunk/ujit_iface.c#L370 static VALUE ujit_install_entry(VALUE mod, VALUE iseq) { - if (!rb_obj_is_iseq(iseq)) { + if (CLASS_OF(iseq) != rb_cISeq) { rb_raise(rb_eTypeError, "not an InstructionSequence"); } rb_ujit_compile_iseq(rb_iseqw_to_iseq(iseq)); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/