diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2022-12-09 17:12:15 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-09 14:12:15 -0800 |
commit | daa893db412c6ae814d0291b4ac6fc62a466d394 (patch) | |
tree | 055ea7d05c1b94be296bcb31bf03e28f14d5d885 /vm_insnhelper.c | |
parent | 1c057cfc2fd84369a2ebff048c4a5fdf5fa08fff (diff) |
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 <[email protected]>
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 6 |
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) { |