1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/ruby_vm
k0kubun 6dd4657fc2 _mjit_compile_send.erb: retry inlining attr_reader
This reverts r63249 (revert r63212) and fixes a bug in it. The test to
prevent the bug is added as well.

vm_insnhelper.c: add `index` argument to vm_getivar. The argument is
created so that MJIT can pass the value of `cc->aux.index` on compilation
time.  The cache invalidation in _mjit_compile_send_guard.erb is only
working for the cache value on compilation time.
Note: As `index` is always passed as constant and it's force-inlined,
the performance of `vm_getivar` won't be degraded in VM.

_mjit_compile_send_guard.erb: New. Used to invalidate inlined values of cc.
common.mk: update dependencies for _mjit_compile_send_guard.erb

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-03 08:47:32 +00:00
..
controllers dumper.rb: stop getting --destdir option value 2018-01-27 01:59:08 +00:00
helpers Refactor ERB version checking for keyword arguments 2018-02-27 11:12:23 +00:00
loaders tool/ruby_vm support for pre-2.0 BASERUBY 2018-01-12 08:38:12 +00:00
models Reverting r62775, this should fix i686 builds 2018-03-19 18:21:54 +00:00
scripts tool/ruby_vm/scripts/insns2vm.rb: fix typo in r62064 2018-04-06 20:50:28 +00:00
tests new insns.def format (2nd try) 2018-01-12 08:38:07 +00:00
views _mjit_compile_send.erb: retry inlining attr_reader 2018-05-03 08:47:32 +00:00