diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-03-12 12:22:19 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:31 -0400 |
commit | 5d834bcf9fb9596fd15f9e657a94caa8716b3f10 (patch) | |
tree | 6ae91f07eb1172c40966f7631e204d827a0f17f0 /yjit_iface.h | |
parent | 439db7b81b588a1ee12475568cab7b8dab4e2cd3 (diff) |
YJIT: lazy polymorphic getinstancevariable
Lazily compile out a chain of checks for different known classes and
whether `self` embeds its ivars or not.
* Remove trailing whitespaces
* Get proper addresss in Capstone disassembly
* Lowercase address in Capstone disassembly
Capstone uses lowercase for jump targets in generated listings. Let's
match it.
* Use the same successor in getivar guard chains
Cuts down on duplication
* Address reviews
* Fix copypasta error
* Add a comment
Diffstat (limited to 'yjit_iface.h')
-rw-r--r-- | yjit_iface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit_iface.h b/yjit_iface.h index 88e65322eb..5a5ba1c448 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -47,6 +47,10 @@ YJIT_DECLARE_COUNTERS( leave_se_finish_frame, leave_se_interrupt, + getivar_se_self_not_heap, + getivar_idx_out_of_range, + getivar_undef, + // Member with known name for iterating over counters last_member ) |