Generate multiple copies of native code for pop

Insert generated addresses into st_table for mapping native code
addresses back to info about VM instructions. Export `encoded_insn_data`
to do this. Also some style fixes.
This commit is contained in:
Alan Wu 2020-09-11 14:58:32 -04:00
parent 6a12fb2067
commit 4929ba0a5c
3 changed files with 28 additions and 15 deletions

View file

@ -875,7 +875,7 @@ rb_iseq_translate_threaded_code(rb_iseq_t *iseq)
if (native_code_ptr)
encoded[i] = (VALUE)native_code_ptr;
else
encoded[i] = (VALUE)table[insn];
encoded[i] = (VALUE)table[insn];
i += len;
}