[ruby-cvs:59522] ko1:r52371 (trunk): * insns.def (getinlinecache/setinlinecache): compare ic->ic_cref and
ko1 at ruby-lang.org
ko1 at ruby-lang.org
Fri Oct 30 07:43:46 JST 2015
ko1 2015-10-30 07:43:45 +0900 (Fri, 30 Oct 2015)
New Revision: 52371
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52371
Log:
* insns.def (getinlinecache/setinlinecache): compare ic->ic_cref and
current cref only when cached CREF list includes singleton class.
Singleton classes have own namespaces, so that we need to check
cref as a key (#10943).
However, if current CREF list does not include singleton class,
no need to check CREF beacuse it should be same name space.
* vm_insnhelper.c (vm_get_const_key_cref): add a function returns
CREF only when it includes singleton class.
* vm_core.h: constify iseq_inline_cache_entry::ic_cref.
Modified files:
trunk/ChangeLog
trunk/insns.def
trunk/vm_core.h
trunk/vm_insnhelper.c
More information about the ruby-cvs
mailing list