summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/insns.def b/insns.def
index a062a9f119..2690539085 100644
--- a/insns.def
+++ b/insns.def
@@ -702,6 +702,16 @@ checktype
ret = (TYPE(val) == (int)type) ? Qtrue : Qfalse;
}
+/* get method reference. */
+DEFINE_INSN
+methodref
+(ID id)
+(VALUE val)
+(VALUE ret)
+{
+ ret = rb_obj_method(val, ID2SYM(id));
+}
+
/**********************************************************/
/* deal with control flow 1: class/module */
/**********************************************************/