ruby-changes:54464
From: k0kubun <ko1@a...>
Date: Tue, 1 Jan 2019 18:52:19 +0900 (JST)
Subject: [ruby-changes:54464] k0kubun:r66679 (trunk): test_jit.rb: test methodref insn
k0kubun 2019-01-01 18:52:15 +0900 (Tue, 01 Jan 2019) New Revision: 66679 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66679 Log: test_jit.rb: test methodref insn Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 66678) +++ test/ruby/test_jit.rb (revision 66679) @@ -443,6 +443,13 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L443 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/