mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* class.c, gc.c, object.c, variable.c, vm_insnhelper.c,
include/ruby/ruby.h: separate RCLASS_CONST_TBL from RCLASS_IV_TBL. RCLASS_IV_TBL has contained not only instance variable table but also constant table. Now the two table are separated to RCLASS_CONST_TBL and RCLASS_IV_TBL. This is a preparation for private constant (see [ruby-dev:39685][ruby-core:32698]). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6ca3ad34a0
commit
2285a8d813
7 changed files with 78 additions and 40 deletions
|
@ -1169,8 +1169,8 @@ vm_get_ev_const(rb_thread_t *th, const rb_iseq_t *iseq,
|
|||
VALUE am = 0;
|
||||
st_data_t data;
|
||||
search_continue:
|
||||
if (RCLASS_IV_TBL(klass) &&
|
||||
st_lookup(RCLASS_IV_TBL(klass), id, &data)) {
|
||||
if (RCLASS_CONST_TBL(klass) &&
|
||||
st_lookup(RCLASS_CONST_TBL(klass), id, &data)) {
|
||||
val = (st_data_t)data;
|
||||
if (val == Qundef) {
|
||||
if (am == klass) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue