[ruby-cvs:70423] k0kubun:r63333 (trunk): _mjit_compile_send.erb: retry inlining attr_reader

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Thu May 3 17:47:32 JST 2018


k0kubun	2018-05-03 17:47:32 +0900 (Thu, 03 May 2018)

  New Revision: 63333

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63333

  Log:
    _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

  Added files:
    trunk/tool/ruby_vm/views/_mjit_compile_send_guard.erb
  Modified files:
    trunk/common.mk
    trunk/test/ruby/test_jit.rb
    trunk/tool/ruby_vm/views/_mjit_compile_send.erb
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list