diff options
author | Aaron Patterson <[email protected]> | 2021-01-29 14:31:18 -0800 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:28 -0400 |
commit | 863ff14997b8ffd3d3cbf52cf62d671788420c12 (patch) | |
tree | e464b7f346dde76878b8156501bbc806e7707222 /vm.c | |
parent | 05c72d40b7ee907f62701948e1249891a1d008b0 (diff) |
Add a callback in to microjit when a BOP is redefined
This commit adds a callback `rb_ujit_bop_redefined` when a basic
operation is redefined.
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1856,6 +1856,8 @@ rb_vm_check_redefinition_opt_method(const rb_method_entry_t *me, VALUE klass) if (vm_redefinition_check_method_type(me->def)) { if (st_lookup(vm_opt_method_def_table, (st_data_t)me->def, &bop)) { int flag = vm_redefinition_check_flag(klass); + rb_ujit_bop_redefined(klass, me); + ruby_vm_redefined_flag[bop] |= flag; } } |