summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-10-21 12:58:51 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-10-21 14:56:48 -0700
commit13bd617ea6fdf72467c593639cf33312a06c330c (patch)
tree9da47089160cfa85d6723256b1e952dcc0843a52 /vm_insnhelper.h
parent87bb0bee6b9843ea32ca6bb48f9e03b1876b7c48 (diff)
Remove unused class serial
Before object shapes, we were using class serial to invalidate inline caches. Now that we use shape_id for inline cache keys, the class serial is unnecessary. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6605
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index fdf47159e8..51929ba4f2 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -16,7 +16,6 @@ MJIT_SYMBOL_EXPORT_BEGIN
RUBY_EXTERN VALUE ruby_vm_const_missing_count;
RUBY_EXTERN rb_serial_t ruby_vm_constant_cache_invalidations;
RUBY_EXTERN rb_serial_t ruby_vm_constant_cache_misses;
-RUBY_EXTERN rb_serial_t ruby_vm_class_serial;
RUBY_EXTERN rb_serial_t ruby_vm_global_cvar_state;
MJIT_SYMBOL_EXPORT_END
@@ -182,8 +181,6 @@ CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enable
} while (0)
#endif
-#define PREV_CLASS_SERIAL() (ruby_vm_class_serial)
-#define NEXT_CLASS_SERIAL() (++ruby_vm_class_serial)
#define GET_GLOBAL_CVAR_STATE() (ruby_vm_global_cvar_state)
#define INC_GLOBAL_CVAR_STATE() (++ruby_vm_global_cvar_state)