From 78b5e95e41cefd36702c37293bab95fdede38369 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 21 Sep 2021 18:16:23 -0400 Subject: Add a slowpath for opt_getinlinecache Before this change, when we encounter a constant cache that is specific to a lexical scope, we unconditionally exit. This change falls back to the interpreter's cache in this situation. This should help constant expressions in `class << self`, which is popular at Shopify due to the style guide. This change relies on the cache being warm while compiling to detect the need for checking the lexical scope for simplicity. --- yjit_iface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yjit_iface.h') diff --git a/yjit_iface.h b/yjit_iface.h index 452d27fea8..946ab5bb85 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -82,6 +82,8 @@ YJIT_DECLARE_COUNTERS( oaref_argc_not_one, oaref_arg_not_fixnum, + opt_getinlinecache_miss, + binding_allocations, binding_set, -- cgit v1.2.3