summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index a33f6b5ea3..1f591b8323 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -835,6 +835,12 @@ vm_get_cref(const VALUE *ep)
}
}
+rb_cref_t *
+rb_vm_get_cref(const VALUE *ep)
+{
+ return vm_get_cref(ep);
+}
+
static rb_cref_t *
vm_ec_cref(const rb_execution_context_t *ec)
{
@@ -1336,6 +1342,12 @@ vm_getclassvariable(const rb_iseq_t *iseq, const rb_cref_t *cref, const rb_contr
return update_classvariable_cache(iseq, klass, id, ic);
}
+VALUE
+rb_vm_getclassvariable(const rb_iseq_t *iseq, const rb_cref_t *cref, const rb_control_frame_t *cfp, ID id, ICVARC ic)
+{
+ return vm_getclassvariable(iseq, cref, cfp, id, ic);
+}
+
static inline void
vm_setclassvariable(const rb_iseq_t *iseq, const rb_cref_t *cref, const rb_control_frame_t *cfp, ID id, VALUE val, ICVARC ic)
{