diff options
-rw-r--r-- | mjit.c | 2 | ||||
-rw-r--r-- | test/ruby/test_jit.rb | 6 |
2 files changed, 1 insertions, 7 deletions
@@ -380,7 +380,7 @@ rb_mjit_iseq_compile_info(const struct rb_iseq_constant_body *body) void rb_mjit_recompile_iseq(const rb_iseq_t *iseq) { - if ((ptrdiff_t)iseq->body->jit_func <= (ptrdiff_t)LAST_JIT_ISEQ_FUNC) + if ((uintptr_t)iseq->body->jit_func <= (uintptr_t)LAST_JIT_ISEQ_FUNC) return; verbose(1, "JIT recompile: %s@%s:%d", RSTRING_PTR(iseq->body->location.label), diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 700497c497..50bfcefac7 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -529,9 +529,6 @@ class TestJIT < Test::Unit::TestCase print block.call(obj) end; - if RUBY_PLATFORM =~ /i686/ - skip 'recompilation is not happening on i686' - end # send call -> optimized call (send JIT) -> optimized call assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '122', success_count: 2, min_calls: 2) begin; @@ -708,9 +705,6 @@ class TestJIT < Test::Unit::TestCase end def test_inlined_undefined_ivar - if RUBY_PLATFORM =~ /i686/ - skip 'recompilation is not happening on i686' - end assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "bbb", success_count: 3, min_calls: 3) begin; class Foo |