test_jit.rb: test methodref insn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e7213f427
commit
11ba186c47
@ -443,6 +443,13 @@ class TestJIT < Test::Unit::TestCase
|
|||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_compile_insn_methodref
|
||||||
|
assert_compile_once("#{<<~"begin;"}\n#{<<~'end;'}", result_inspect: '"main"', insns: %i[methodref])
|
||||||
|
begin;
|
||||||
|
self.:inspect.call
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
|
||||||
def test_compile_insn_inlinecache
|
def test_compile_insn_inlinecache
|
||||||
assert_compile_once('Struct', result_inspect: 'Struct', insns: %i[opt_getinlinecache opt_setinlinecache])
|
assert_compile_once('Struct', result_inspect: 'Struct', insns: %i[opt_getinlinecache opt_setinlinecache])
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user