8000 Check for iseq wrapper instead of iseq imemo · github/ruby@a73b9cd · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a73b9cd

Browse files
committed
Check for iseq wrapper instead of iseq imemo
1 parent 7551179 commit a73b9cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ujit_iface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ iseqw_ujit_collect_blocks(st_data_t key, st_data_t value, st_data_t argp)
353353
static VALUE
354354
ujit_blocks_for(VALUE mod, VALUE rb_iseq)
355355
{
356-
if (!rb_obj_is_iseq(rb_iseq)) {
356+
if (CLASS_OF(rb_iseq) != rb_cISeq) {
357357
return rb_ary_new();
358358
}
359359
const rb_iseq_t *iseq = rb_iseqw_to_iseq(rb_iseq);
@@ -370,7 +370,7 @@ ujit_blocks_for(VALUE mod, VALUE rb_iseq)
370370
static VALUE
371371
ujit_install_entry(VALUE mod, VALUE iseq)
372372
{
373-
if (!rb_obj_is_iseq(iseq)) {
373+
if (CLASS_OF(iseq) != rb_cISeq) {
374374
rb_raise(rb_eTypeError, "not an InstructionSequence");
375375
}
376376
rb_ujit_compile_iseq(rb_iseqw_to_iseq(iseq));

0 commit comments

Comments
 (0)
0