summaryrefslogtreecommitdiff
path: root/tool/instruction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/instruction.rb')
-rw-r--r--tool/instruction.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 4e60f04..8d55683 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