summaryrefslogtreecommitdiff
path: root/ujit_iface.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-01-29 14:31:18 -0800
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:28 -0400
commit863ff14997b8ffd3d3cbf52cf62d671788420c12 (patch)
treee464b7f346dde76878b8156501bbc806e7707222 /ujit_iface.c
parent05c72d40b7ee907f62701948e1249891a1d008b0 (diff)
downloadruby-863ff14997b8ffd3d3cbf52cf62d671788420c12.tar.gz
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 'ujit_iface.c')
-rw-r--r--ujit_iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ujit_iface.c b/ujit_iface.c
index 9acc05181d..e9c617e351 100644
--- a/ujit_iface.c
+++ b/ujit_iface.c
@@ -413,6 +413,13 @@ iseq_end_index(VALUE self)
return INT2NUM(block->end_idx);
}
+/* Called when a basic operation is redefined */
+void
+rb_ujit_bop_redefined(VALUE klass, const rb_method_entry_t *me)
+{
+ //fprintf(stderr, "bop redefined\n");
+}
+
#if HAVE_LIBCAPSTONE
static const rb_data_type_t ujit_disasm_type = {
"UJIT/Disasm",