diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-13 09:30:23 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-13 09:30:23 +0000 |
commit | 321a2a0920a349bdccac0bb31e3f1ca0126acdd3 (patch) | |
tree | 4a46ed32d9918e8fdbf3d63cdda79a6526032b5b /template | |
parent | 2b1ca5addb362954f5009995b37147e95d5a328f (diff) | |
download | ruby-321a2a0920a349bdccac0bb31e3f1ca0126acdd3.tar.gz ruby-321a2a0920a349bdccac0bb31e3f1ca0126acdd3.tar.xz ruby-321a2a0920a349bdccac0bb31e3f1ca0126acdd3.zip |
* vm_core.h, compile.c: declare struct iseq_inline_cache_entry.
Inline cache (IC) entries are no longer GC managed object.
IC entries are freed when ISeq is freed.
* iseq.c: fix mark, free, memsize functions for above change.
* insns.def: remove rb_gc_write_barrier().
* vm_insnhelper.c (vm_method_search): ditto.
* tool/instruction.rb, template/insns_info.inc.tmpl (insn_iclen):
added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/insns_info.inc.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl index d901c6825..1093e10d0 100644 --- a/template/insns_info.inc.tmpl +++ b/template/insns_info.inc.tmpl @@ -23,6 +23,10 @@ static const int insn_len_info[] = { <%= operands_num_info %> }; +static const int insn_iclen_info[] = { +<%= icoperands_num_info %> +}; + #ifdef USE_INSN_RET_NUM static const int insn_stack_push_num_info[] = { <%= stack_num_info %> @@ -81,3 +85,11 @@ insn_ret_num(int insn) return insn_stack_push_num_info[insn]; } #endif + +#ifdef USE_INSN_ICLEN +static int +insn_iclen(int insn) +{ + return insn_iclen_info[insn]; +} +#endif |