summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2022-12-09 17:12:15 -0500
committerGitHub <noreply@github.com>2022-12-09 14:12:15 -0800
commitdaa893db412c6ae814d0291b4ac6fc62a466d394 (patch)
tree055ea7d05c1b94be296bcb31bf03e28f14d5d885 /vm_insnhelper.c
parent1c057cfc2fd84369a2ebff048c4a5fdf5fa08fff (diff)
downloadruby-daa893db412c6ae814d0291b4ac6fc62a466d394.tar.gz
YJIT: implement `getconstant` YARV instruction (#6884)
* YJIT: implement getconstant YARV instruction * Constant id is not a pointer * Stack operands must be read after jit_prepare_routine_call Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 265088caac..1eed081fea 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1070,6 +1070,12 @@ vm_get_ev_const(rb_execution_context_t *ec, VALUE orig_klass, ID id, bool allow_
}
}
+VALUE
+rb_vm_get_ev_const(rb_execution_context_t *ec, VALUE orig_klass, ID id, VALUE allow_nil)
+{
+ return vm_get_ev_const(ec, orig_klass, id, allow_nil == Qtrue, 0);
+}
+
static inline VALUE
vm_get_ev_const_chain(rb_execution_context_t *ec, const ID *segments)
{