mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 7 additions and 0 deletions
|
@ -443,6 +443,13 @@ class TestJIT < Test::Unit::TestCase
|
|||
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
|
||||
assert_compile_once('Struct', result_inspect: 'Struct', insns: %i[opt_getinlinecache opt_setinlinecache])
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue