summaryrefslogtreecommitdiff
path: root/template/insns_info.inc.tmpl
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-24 17:06:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-24 17:06:15 +0000
commitd3f73f45d8342e37a814eeb8c98e1d04f451a3b4 (patch)
treed871b6a106c9320604d208b3c3d49616496dffbb /template/insns_info.inc.tmpl
parentee43611393834f0e10aa982831698a11c3c9ced4 (diff)
* insns.def: Change the operand type of setinlinecache
(OFFSET to IC). This IC must be same as corresponding getinlinecache instruction's IC operand. This change is for a little performance improvement (getting IC directly) and is for the AOT compilation development. * compile.c, iseq.c, insns.def: Change the approach to handling inline cahce (IC) type operand to enable the above change. This change also affects ISeq#to_a method. The inline cache operand will be dumped by fixnum, the index of inline cache, in other words, inline cache identity. * template/insns_info.inc.tmpl, tool/instruction.rb: No need to count inline cache size (insn_iclen()). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/insns_info.inc.tmpl')
-rw-r--r--template/insns_info.inc.tmpl12
1 files changed, 0 insertions, 12 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index 110e6b5..99e4b7b 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -23,10 +23,6 @@ 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 %>
@@ -85,11 +81,3 @@ insn_ret_num(VALUE insn)
return insn_stack_push_num_info[(int)insn];
}
#endif
-
-#ifdef USE_INSN_ICLEN
-static int
-insn_iclen(int insn)
-{
- return insn_iclen_info[insn];
-}
-#endif