mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ee43611393
commit
d3f73f45d8
6 changed files with 94 additions and 90 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue