Skip to content

Commit

Permalink
Extract imemo functions from gc.c into imemo.c
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Feb 22, 2024
1 parent e041461 commit e65315a
Show file tree
Hide file tree
Showing 6 changed files with 836 additions and 555 deletions.
205 changes: 205 additions & 0 deletions common.mk
Expand Up @@ -132,6 +132,7 @@ COMMONOBJS = array.$(OBJEXT) \
gc.$(OBJEXT) \
hash.$(OBJEXT) \
inits.$(OBJEXT) \
imemo.$(OBJEXT) \
io.$(OBJEXT) \
io_buffer.$(OBJEXT) \
iseq.$(OBJEXT) \
Expand Down Expand Up @@ -7921,6 +7922,210 @@ hash.$(OBJEXT): {$(VPATH)}vm_core.h
hash.$(OBJEXT): {$(VPATH)}vm_debug.h
hash.$(OBJEXT): {$(VPATH)}vm_opts.h
hash.$(OBJEXT): {$(VPATH)}vm_sync.h
imemo.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
imemo.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
imemo.$(OBJEXT): $(CCAN_DIR)/list/list.h
imemo.$(OBJEXT): $(CCAN_DIR)/str/str.h
imemo.$(OBJEXT): $(hdrdir)/ruby/ruby.h
imemo.$(OBJEXT): $(top_srcdir)/internal/array.h
imemo.$(OBJEXT): $(top_srcdir)/internal/basic_operators.h
imemo.$(OBJEXT): $(top_srcdir)/internal/class.h
imemo.$(OBJEXT): $(top_srcdir)/internal/compilers.h
imemo.$(OBJEXT): $(top_srcdir)/internal/gc.h
imemo.$(OBJEXT): $(top_srcdir)/internal/imemo.h
imemo.$(OBJEXT): $(top_srcdir)/internal/sanitizers.h
imemo.$(OBJEXT): $(top_srcdir)/internal/serial.h
imemo.$(OBJEXT): $(top_srcdir)/internal/static_assert.h
imemo.$(OBJEXT): $(top_srcdir)/internal/variable.h
imemo.$(OBJEXT): $(top_srcdir)/internal/vm.h
imemo.$(OBJEXT): $(top_srcdir)/internal/warnings.h
imemo.$(OBJEXT): {$(VPATH)}assert.h
imemo.$(OBJEXT): {$(VPATH)}atomic.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/assume.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/attributes.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/bool.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/gcc_version_since.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/inttypes.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/limits.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/long_long.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/stdalign.h
imemo.$(OBJEXT): {$(VPATH)}backward/2/stdarg.h
imemo.$(OBJEXT): {$(VPATH)}config.h
imemo.$(OBJEXT): {$(VPATH)}constant.h
imemo.$(OBJEXT): {$(VPATH)}debug_counter.h
imemo.$(OBJEXT): {$(VPATH)}defines.h
imemo.$(OBJEXT): {$(VPATH)}encoding.h
imemo.$(OBJEXT): {$(VPATH)}id.h
imemo.$(OBJEXT): {$(VPATH)}id_table.h
imemo.$(OBJEXT): {$(VPATH)}imemo.c
imemo.$(OBJEXT): {$(VPATH)}intern.h
imemo.$(OBJEXT): {$(VPATH)}internal.h
imemo.$(OBJEXT): {$(VPATH)}internal/abi.h
imemo.$(OBJEXT): {$(VPATH)}internal/anyargs.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/char.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/double.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/fixnum.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/gid_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/int.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/intptr_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/long.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/long_long.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/mode_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/off_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/pid_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/short.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/size_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/st_data_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/arithmetic/uid_t.h
imemo.$(OBJEXT): {$(VPATH)}internal/assume.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/alloc_size.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/artificial.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/cold.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/const.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/constexpr.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/deprecated.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/diagnose_if.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/enum_extensibility.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/error.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/flag_enum.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/forceinline.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/format.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/maybe_unused.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/noalias.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/nodiscard.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/noexcept.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/noinline.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/nonnull.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/noreturn.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/packed_struct.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/pure.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/restrict.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/returns_nonnull.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/warning.h
imemo.$(OBJEXT): {$(VPATH)}internal/attr/weakref.h
imemo.$(OBJEXT): {$(VPATH)}internal/cast.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/apple.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/clang.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/gcc.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/intel.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/msvc.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_is/sunpro.h
imemo.$(OBJEXT): {$(VPATH)}internal/compiler_since.h
imemo.$(OBJEXT): {$(VPATH)}internal/config.h
imemo.$(OBJEXT): {$(VPATH)}internal/constant_p.h
imemo.$(OBJEXT): {$(VPATH)}internal/core.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rarray.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rbasic.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rbignum.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rclass.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rdata.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rfile.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rhash.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/robject.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rregexp.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rstring.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rstruct.h
imemo.$(OBJEXT): {$(VPATH)}internal/core/rtypeddata.h
imemo.$(OBJEXT): {$(VPATH)}internal/ctype.h
imemo.$(OBJEXT): {$(VPATH)}internal/dllexport.h
imemo.$(OBJEXT): {$(VPATH)}internal/dosish.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/coderange.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/ctype.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/encoding.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/pathname.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/re.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/sprintf.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/string.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/symbol.h
imemo.$(OBJEXT): {$(VPATH)}internal/encoding/transcode.h
imemo.$(OBJEXT): {$(VPATH)}internal/error.h
imemo.$(OBJEXT): {$(VPATH)}internal/eval.h
imemo.$(OBJEXT): {$(VPATH)}internal/event.h
imemo.$(OBJEXT): {$(VPATH)}internal/fl_type.h
imemo.$(OBJEXT): {$(VPATH)}internal/gc.h
imemo.$(OBJEXT): {$(VPATH)}internal/glob.h
imemo.$(OBJEXT): {$(VPATH)}internal/globals.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/attribute.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/builtin.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/c_attribute.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/cpp_attribute.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/declspec_attribute.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/extension.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/feature.h
imemo.$(OBJEXT): {$(VPATH)}internal/has/warning.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/array.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/bignum.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/class.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/compar.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/complex.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/cont.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/dir.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/enum.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/enumerator.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/error.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/eval.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/file.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/hash.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/io.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/load.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/marshal.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/numeric.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/object.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/parse.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/proc.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/process.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/random.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/range.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/rational.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/re.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/ruby.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/select.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/select/largesize.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/signal.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/sprintf.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/string.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/struct.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/thread.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/time.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/variable.h
imemo.$(OBJEXT): {$(VPATH)}internal/intern/vm.h
imemo.$(OBJEXT): {$(VPATH)}internal/interpreter.h
imemo.$(OBJEXT): {$(VPATH)}internal/iterator.h
imemo.$(OBJEXT): {$(VPATH)}internal/memory.h
imemo.$(OBJEXT): {$(VPATH)}internal/method.h
imemo.$(OBJEXT): {$(VPATH)}internal/module.h
imemo.$(OBJEXT): {$(VPATH)}internal/newobj.h
imemo.$(OBJEXT): {$(VPATH)}internal/scan_args.h
imemo.$(OBJEXT): {$(VPATH)}internal/special_consts.h
imemo.$(OBJEXT): {$(VPATH)}internal/static_assert.h
imemo.$(OBJEXT): {$(VPATH)}internal/stdalign.h
imemo.$(OBJEXT): {$(VPATH)}internal/stdbool.h
imemo.$(OBJEXT): {$(VPATH)}internal/symbol.h
imemo.$(OBJEXT): {$(VPATH)}internal/value.h
imemo.$(OBJEXT): {$(VPATH)}internal/value_type.h
imemo.$(OBJEXT): {$(VPATH)}internal/variable.h
imemo.$(OBJEXT): {$(VPATH)}internal/warning_push.h
imemo.$(OBJEXT): {$(VPATH)}internal/xmalloc.h
imemo.$(OBJEXT): {$(VPATH)}method.h
imemo.$(OBJEXT): {$(VPATH)}missing.h
imemo.$(OBJEXT): {$(VPATH)}node.h
imemo.$(OBJEXT): {$(VPATH)}onigmo.h
imemo.$(OBJEXT): {$(VPATH)}oniguruma.h
imemo.$(OBJEXT): {$(VPATH)}ruby_assert.h
imemo.$(OBJEXT): {$(VPATH)}ruby_atomic.h
imemo.$(OBJEXT): {$(VPATH)}rubyparser.h
imemo.$(OBJEXT): {$(VPATH)}shape.h
imemo.$(OBJEXT): {$(VPATH)}st.h
imemo.$(OBJEXT): {$(VPATH)}subst.h
imemo.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
imemo.$(OBJEXT): {$(VPATH)}thread_native.h
imemo.$(OBJEXT): {$(VPATH)}vm_callinfo.h
imemo.$(OBJEXT): {$(VPATH)}vm_core.h
imemo.$(OBJEXT): {$(VPATH)}vm_debug.h
imemo.$(OBJEXT): {$(VPATH)}vm_opts.h
imemo.$(OBJEXT): {$(VPATH)}vm_sync.h
inits.$(OBJEXT): $(hdrdir)/ruby.h
inits.$(OBJEXT): $(hdrdir)/ruby/ruby.h
inits.$(OBJEXT): $(top_srcdir)/internal/compilers.h
Expand Down

0 comments on commit e65315a

Please sign in to comment.