mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Treat TS_ICVARC cache as separate from TS_IVC cache
This commit is contained in:
parent
7b77d46671
commit
2913a2f5cf
Notes:
git
2022-02-03 02:21:10 +09:00
5 changed files with 15 additions and 4 deletions
|
@ -2401,6 +2401,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *const anchor)
|
|||
}
|
||||
case TS_IC: /* inline cache */
|
||||
case TS_ISE: /* inline storage entry */
|
||||
case TS_ICVARC: /* inline cvar cache */
|
||||
case TS_IVC: /* inline ivar cache */
|
||||
{
|
||||
unsigned int ic_index = FIX2UINT(operands[j]);
|
||||
|
@ -9900,6 +9901,7 @@ insn_data_to_s_detail(INSN *iobj)
|
|||
break;
|
||||
case TS_IC: /* inline cache */
|
||||
case TS_IVC: /* inline ivar cache */
|
||||
case TS_ICVARC: /* inline cvar cache */
|
||||
case TS_ISE: /* inline storage entry */
|
||||
rb_str_catf(str, "<ic:%d>", FIX2INT(OPERAND_AT(iobj, j)));
|
||||
break;
|
||||
|
@ -10293,6 +10295,7 @@ iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *const anchor,
|
|||
case TS_ISE:
|
||||
case TS_IC:
|
||||
case TS_IVC: /* inline ivar cache */
|
||||
case TS_ICVARC: /* inline cvar cache */
|
||||
argv[j] = op;
|
||||
if (NUM2UINT(op) >= iseq->body->is_size) {
|
||||
iseq->body->is_size = NUM2INT(op) + 1;
|
||||
|
@ -11109,6 +11112,7 @@ ibf_dump_code(struct ibf_dump *dump, const rb_iseq_t *iseq)
|
|||
break;
|
||||
case TS_IC:
|
||||
case TS_IVC:
|
||||
case TS_ICVARC:
|
||||
case TS_ISE:
|
||||
{
|
||||
unsigned int i;
|
||||
|
@ -11215,6 +11219,7 @@ ibf_load_code(const struct ibf_load *load, rb_iseq_t *iseq, ibf_offset_t bytecod
|
|||
case TS_ISE:
|
||||
case TS_IC:
|
||||
case TS_IVC:
|
||||
case TS_ICVARC:
|
||||
{
|
||||
VALUE op = ibf_load_small_value(load, &reading_pos);
|
||||
code[code_index] = (VALUE)&is_entries[op];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue