From d405410e3c6ecfdefe345f2b78cf740effe784a1 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 2 Aug 2023 07:15:29 -0700 Subject: YJIT: Move ROBJECT_OFFSET_* to yjit.c (#8157) --- include/ruby/internal/core/robject.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/ruby/internal/core/robject.h') diff --git a/include/ruby/internal/core/robject.h b/include/ruby/internal/core/robject.h index dc1faad89f..c2bcae6306 100644 --- a/include/ruby/internal/core/robject.h +++ b/include/ruby/internal/core/robject.h @@ -119,13 +119,6 @@ struct RObject { } as; }; -/* Offsets for YJIT */ -#ifndef __cplusplus -static const int32_t ROBJECT_OFFSET_AS_HEAP_IVPTR = offsetof(struct RObject, as.heap.ivptr); -static const int32_t ROBJECT_OFFSET_AS_HEAP_IV_INDEX_TBL = offsetof(struct RObject, as.heap.iv_index_tbl); -static const int32_t ROBJECT_OFFSET_AS_ARY = offsetof(struct RObject, as.ary); -#endif - RBIMPL_ATTR_PURE_UNLESS_DEBUG() RBIMPL_ATTR_ARTIFICIAL() /** -- cgit v1.2.3