summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-02-02 09:14:59 -0500
committerAaron Patterson <aaron.patterson@gmail.com>2022-02-02 09:20:34 -0800
commit2913a2f5cfceb6d6b411e165d9c723bd2435eacd (patch)
treef5f7cd1deb656219e108de980f13291778d8eb9a /compile.c
parent7b77d46671685c837adc33b39ae0210e04cd8b24 (diff)
Treat TS_ICVARC cache as separate from TS_IVC cache
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5519
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 8fd1fd65f8..4b7d0e5a22 100644
--- a/compile.c
+++ b/compile.c
@@ -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];