From 321a2a0920a349bdccac0bb31e3f1ca0126acdd3 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 13 Jul 2009 09:30:23 +0000 Subject: * 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 --- tool/instruction.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tool') diff --git a/tool/instruction.rb b/tool/instruction.rb index 4e60f04f6..8d55683da 100644 --- a/tool/instruction.rb +++ b/tool/instruction.rb @@ -977,6 +977,8 @@ class RubyVM # operands info operands_info = '' operands_num_info = '' + icoperands_num_info = '' + @insns.each{|insn| opes = insn.opes operands_info << ' ' @@ -987,6 +989,12 @@ class RubyVM num = opes.size + 1 operands_num_info << " #{num},\n" + + icnum = 0 + opes.each{|e| + icnum += 1 if e[0] == 'IC' + } + icoperands_num_info << " #{icnum},\n" } # stack num -- cgit