diff options
author | Takashi Kokubun <[email protected]> | 2024-04-25 07:04:53 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-25 10:04:53 -0400 |
commit | 7ab1a608e7413cdb0f93243eb3e6e20a32cec44e (patch) | |
tree | 29836bd248b0e5bce497ae6969a6b6e7c2055152 /yjit.c | |
parent | f248e1008a8f79cca801b27d512a587f65a0dd36 (diff) |
YJIT: Optimize local variables when EP == BP (take 2) (#10607)
* Revert "Revert "YJIT: Optimize local variables when EP == BP" (#10584)"
This reverts commit c8783441952217c18e523749c821f82cd7e5d222.
* YJIT: Take care of GC references in ISEQ invariants
Co-authored-by: Alan Wu <[email protected]>
---------
Co-authored-by: Alan Wu <[email protected]>
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -629,6 +629,12 @@ rb_get_iseq_body_stack_max(const rb_iseq_t *iseq) return iseq->body->stack_max; } +enum rb_iseq_type +rb_get_iseq_body_type(const rb_iseq_t *iseq) +{ + return iseq->body->type; +} + bool rb_get_iseq_flags_has_lead(const rb_iseq_t *iseq) { |