diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-14 18:43:11 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-14 18:43:11 +0000 |
commit | 3b4e68cfab987575662d3b6fcc593306255773bf (patch) | |
tree | c5890b1f3e6ed65691e455f01c6958793ade4b18 /iseq.h | |
parent | 005ee0e45533e6b11722103418ebee9d3bba4a5d (diff) | |
download | ruby-3b4e68cfab987575662d3b6fcc593306255773bf.tar.gz |
* iseq.h (struct iseq_compile_data): use struct rb_id_table
instead of st_table.
* iseq.c (prepare_iseq_build): don't allocate ivar_cache_table
until it has at least one element.
* iseq.c (compile_data_free): free ivar_cache_table only if it
is allocated.
* compile.c (get_ivar_ic_value): allocate if the table is not
allocated yet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ struct iseq_compile_data { unsigned int ci_index; unsigned int ci_kw_index; const rb_compile_option_t *option; - st_table *ivar_cache_table; + struct rb_id_table *ivar_cache_table; #if SUPPORT_JOKE st_table *labels_table; #endif |