From 5d834bcf9fb9596fd15f9e657a94caa8716b3f10 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 12 Mar 2021 12:22:19 -0500 Subject: 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 --- yjit_iface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yjit_iface.h') 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 ) -- cgit v1.2.3