summaryrefslogtreecommitdiff
path: root/method.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-03-11 11:48:02 -0800
committerJohn Hawthorn <john@hawthorn.email>2022-06-21 18:33:51 -0700
commit9312f4bf62224cc0a11175cb6f9b7d0dd840a491 (patch)
tree39b12c41eeb08852b8aee3977cd07fd7e17f612f /method.h
parenta580dd77377c87754b437efb1a02cccc1554dafd (diff)
downloadruby-9312f4bf62224cc0a11175cb6f9b7d0dd840a491.tar.gz
Allow method caching of protected FCALLs
Diffstat (limited to 'method.h')
-rw-r--r--method.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/method.h b/method.h
index 2f4504bfec..16d212a1c8 100644
--- a/method.h
+++ b/method.h
@@ -75,7 +75,6 @@ typedef struct rb_callable_method_entry_struct { /* same fields with rb_method_e
#define METHOD_ENTRY_CACHED_SET(me) ((me)->flags |= IMEMO_FL_USER4)
#define METHOD_ENTRY_INVALIDATED(me) ((me)->flags & IMEMO_FL_USER5)
#define METHOD_ENTRY_INVALIDATED_SET(me) ((me)->flags |= IMEMO_FL_USER5)
-#define METHOD_ENTRY_CACHEABLE(me) !(METHOD_ENTRY_VISI(me) == METHOD_VISI_PROTECTED)
static inline void
METHOD_ENTRY_VISI_SET(rb_method_entry_t *me, rb_method_visibility_t visi)