debase-ruby_core_source 0.10.9 → 0.10.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/Rakefile +6 -3
- data/debase-ruby_core_source.gemspec +2 -1
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/addr2line.h +2 -3
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/builtin.h +17 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/ccan/build_assert/build_assert.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/ccan/check_type/check_type.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/ccan/container_of/container_of.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/ccan/list/list.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/ccan/str/str.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/constant.h +10 -5
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/debug_counter.h +127 -48
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/dln.h +3 -18
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/encindex.h +3 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/eval_intern.h +16 -7
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/gc.h +13 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/hrtime.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/id.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/id_table.h +2 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/insns.inc +0 -4
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/insns_info.inc +323 -536
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/array.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/bignum.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/bits.h +566 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/class.h +174 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/compar.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/compile.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/compilers.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/cont.h +25 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/dir.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/enc.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/encoding.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/enum.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/enumerator.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/error.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/file.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/fixnum.h +185 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/gc.h +161 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/hash.h +241 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/imemo.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/inits.h +51 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/io.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/load.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/loadpath.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/math.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/numeric.h +255 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/object.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/parse.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/proc.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/process.h +136 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/range.h +41 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/re.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/sanitizers.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/scheduler.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/serial.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/signal.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/static_assert.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/string.h +140 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/struct.h +154 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/symbol.h +41 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/thread.h +54 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/time.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/transcode.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/util.h +31 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/variable.h +84 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/vm.h +136 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal/warnings.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/internal.h +107 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/iseq.h +11 -18
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/known_errors.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/method.h +21 -8
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/mjit.h +89 -48
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/mjit_compile.inc +2746 -2288
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/node.h +32 -24
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/node_name.inc +2 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/opt_sc.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/optinsn.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/optunifs.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/parse.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/probes_helper.h +2 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/ractor_core.h +343 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/regenc.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/regint.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/regparse.h +0 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/revision.h +2 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/ruby_assert.h +15 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/siphash.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/symbol.h +4 -4
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/thread_pthread.h +45 -5
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/thread_win32.h +28 -3
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/timev.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/transcode_data.h +2 -3
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/transient_heap.h +6 -3
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/variable.h +22 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/version.h +23 -11
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/vm.inc +707 -671
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/vm_call_iseq_optimized.inc +93 -86
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/vm_callinfo.h +456 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/vm_core.h +262 -194
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/vm_debug.h +116 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/vm_exec.h +9 -6
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.0.0-p0}/vm_insnhelper.h +28 -26
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/vm_opts.h +6 -5
- data/lib/debase/ruby_core_source/ruby-3.0.0-p0/vm_sync.h +136 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.0.0-p0}/vmtc.inc +0 -4
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/addr2line.h +2 -3
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/builtin.h +83 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/ccan/build_assert/build_assert.h +13 -13
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/ccan/check_type/check_type.h +17 -17
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/ccan/container_of/container_of.h +63 -63
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/ccan/list/list.h +262 -262
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/ccan/str/str.h +4 -4
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/constant.h +10 -9
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/darray.h +198 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/debug_counter.h +137 -48
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/dln.h +3 -23
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/encindex.h +3 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/eval_intern.h +34 -41
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/gc.h +24 -11
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/hrtime.h +9 -9
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/id.h +4 -3
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/id_table.h +3 -1
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/insns.inc +6 -8
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/insns_info.inc +1907 -2543
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/array.h +113 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/bignum.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/bits.h +565 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/class.h +188 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compar.h +49 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compile.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/cont.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/encoding.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/error.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/eval.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/gc.h +175 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/hash.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/imemo.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/inits.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/io.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/missing.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/numeric.h +271 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/object.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/parse.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/proc.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/process.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/random.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/rational.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/re.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/sanitizers.h +190 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/signal.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/string.h +141 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/struct.h +153 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/symbol.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/thread.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/transcode.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/variable.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/vm.h +132 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal.h +109 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/iseq.h +44 -35
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/known_errors.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/method.h +21 -4
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/mjit.h +231 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/mjit_compile.inc +3322 -2940
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/node.h +39 -23
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/node_name.inc +210 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/opt_sc.inc +0 -2
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/optinsn.inc +7 -7
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/optunifs.inc +1 -1
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/parse.h +9 -5
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/probes_helper.h +9 -7
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ractor_core.h +346 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/regenc.h +8 -8
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/regint.h +16 -12
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/regparse.h +2 -2
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/revision.h +2 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/siphash.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/symbol.h +14 -14
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/thread_pthread.h +45 -5
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/thread_win32.h +30 -5
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/timev.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/transcode_data.h +49 -50
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/transient_heap.h +6 -3
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/variable.h +21 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/version.h +15 -4
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/vm.inc +1033 -887
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_callinfo.h +454 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/vm_core.h +508 -362
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_debug.h +119 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/vm_exec.h +22 -18
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview3 → ruby-3.1.0-preview1}/vm_insnhelper.h +42 -32
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/vm_opts.h +8 -5
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/{ruby-2.7.0-preview2 → ruby-3.1.0-preview1}/vmtc.inc +6 -8
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_asm.h +392 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_codegen.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_core.h +302 -0
- data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_iface.h +38 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- data/lib/debase/ruby_core_source.rb +0 -2
- metadata +240 -110
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/internal.h +0 -2682
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/revision.h +0 -2
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ruby_assert.h +0 -15
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ruby_atomic.h +0 -244
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_call_iseq_optimized.inc +0 -237
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_debug.h +0 -34
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/internal.h +0 -2657
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/mjit.h +0 -175
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/node_name.inc +0 -208
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/revision.h +0 -2
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ruby_assert.h +0 -15
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ruby_atomic.h +0 -244
- data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_debug.h +0 -34
@@ -0,0 +1,24 @@
|
|
1
|
+
#ifndef INTERNAL_SERIAL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_SERIAL_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for rb_serial_t.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h" /* for HAVE_LONG_LONG */
|
13
|
+
#include "ruby/defines.h" /* for LONG_LONG */
|
14
|
+
|
15
|
+
#ifndef HAVE_LONG_LONG
|
16
|
+
# error need C99+
|
17
|
+
#endif
|
18
|
+
|
19
|
+
typedef unsigned LONG_LONG rb_serial_t;
|
20
|
+
#define SERIALT2NUM ULL2NUM
|
21
|
+
#define PRI_SERIALT_PREFIX PRI_LL_PREFIX
|
22
|
+
#define SIZEOF_SERIAL_T SIZEOF_LONG_LONG
|
23
|
+
|
24
|
+
#endif /* INTERNAL_SERIAL_H */
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#ifndef INTERNAL_SIGNAL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_SIGNAL_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for SignalException.
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* signal.c */
|
14
|
+
extern int ruby_enable_coredump;
|
15
|
+
int rb_get_next_signal(void);
|
16
|
+
|
17
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
18
|
+
/* signal.c (export) */
|
19
|
+
int rb_grantpt(int fd);
|
20
|
+
RUBY_SYMBOL_EXPORT_END
|
21
|
+
|
22
|
+
#endif /* INTERNAL_SIGNAL_H */
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#ifndef INTERNAL_STATIC_ASSERT_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_STATIC_ASSERT_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief C11 shim for _Static_assert.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/static_assert.h"
|
13
|
+
#ifndef STATIC_ASSERT
|
14
|
+
# define STATIC_ASSERT RBIMPL_STATIC_ASSERT
|
15
|
+
#endif
|
16
|
+
|
17
|
+
#endif /* INTERNAL_STATIC_ASSERT_H */
|
@@ -0,0 +1,140 @@
|
|
1
|
+
#ifndef INTERNAL_STRING_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_STRING_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for String.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h"
|
13
|
+
#include <stddef.h> /* for size_t */
|
14
|
+
#include "internal/compilers.h" /* for __has_builtin */
|
15
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
16
|
+
#include "ruby/encoding.h" /* for rb_encoding */
|
17
|
+
#include "ruby/ruby.h" /* for VALUE */
|
18
|
+
|
19
|
+
#define STR_NOEMBED FL_USER1
|
20
|
+
#define STR_SHARED FL_USER2 /* = ELTS_SHARED */
|
21
|
+
|
22
|
+
#ifdef rb_fstring_cstr
|
23
|
+
# undef rb_fstring_cstr
|
24
|
+
#endif
|
25
|
+
|
26
|
+
/* string.c */
|
27
|
+
VALUE rb_fstring(VALUE);
|
28
|
+
VALUE rb_fstring_cstr(const char *str);
|
29
|
+
VALUE rb_fstring_enc_new(const char *ptr, long len, rb_encoding *enc);
|
30
|
+
int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
|
31
|
+
int rb_str_symname_p(VALUE);
|
32
|
+
VALUE rb_str_quote_unprintable(VALUE);
|
33
|
+
char *rb_str_fill_terminator(VALUE str, const int termlen);
|
34
|
+
void rb_str_change_terminator_length(VALUE str, const int oldtermlen, const int termlen);
|
35
|
+
VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
|
36
|
+
VALUE rb_str_chomp_string(VALUE str, VALUE chomp);
|
37
|
+
VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc);
|
38
|
+
VALUE rb_str_cat_conv_enc_opts(VALUE newstr, long ofs, const char *ptr, long len,
|
39
|
+
rb_encoding *from, int ecflags, VALUE ecopts);
|
40
|
+
VALUE rb_enc_str_scrub(rb_encoding *enc, VALUE str, VALUE repl);
|
41
|
+
VALUE rb_str_initialize(VALUE str, const char *ptr, long len, rb_encoding *enc);
|
42
|
+
size_t rb_str_memsize(VALUE);
|
43
|
+
char *rb_str_to_cstr(VALUE str);
|
44
|
+
const char *ruby_escaped_char(int c);
|
45
|
+
void rb_str_make_independent(VALUE str);
|
46
|
+
|
47
|
+
static inline bool STR_EMBED_P(VALUE str);
|
48
|
+
static inline bool STR_SHARED_P(VALUE str);
|
49
|
+
static inline VALUE QUOTE(VALUE v);
|
50
|
+
static inline VALUE QUOTE_ID(ID v);
|
51
|
+
static inline bool is_ascii_string(VALUE str);
|
52
|
+
static inline bool is_broken_string(VALUE str);
|
53
|
+
static inline VALUE rb_str_eql_internal(const VALUE str1, const VALUE str2);
|
54
|
+
|
55
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
56
|
+
/* string.c (export) */
|
57
|
+
VALUE rb_str_tmp_frozen_acquire(VALUE str);
|
58
|
+
void rb_str_tmp_frozen_release(VALUE str, VALUE tmp);
|
59
|
+
VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc);
|
60
|
+
VALUE rb_str_upto_each(VALUE, VALUE, int, int (*each)(VALUE, VALUE), VALUE);
|
61
|
+
VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
|
62
|
+
RUBY_SYMBOL_EXPORT_END
|
63
|
+
|
64
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
65
|
+
VALUE rb_fstring_new(const char *ptr, long len);
|
66
|
+
VALUE rb_obj_as_string_result(VALUE str, VALUE obj);
|
67
|
+
VALUE rb_str_opt_plus(VALUE x, VALUE y);
|
68
|
+
VALUE rb_str_concat_literals(size_t num, const VALUE *strary);
|
69
|
+
VALUE rb_str_eql(VALUE str1, VALUE str2);
|
70
|
+
VALUE rb_id_quote_unprintable(ID);
|
71
|
+
VALUE rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE passed_proc);
|
72
|
+
|
73
|
+
struct rb_execution_context_struct;
|
74
|
+
VALUE rb_ec_str_resurrect(struct rb_execution_context_struct *ec, VALUE str);
|
75
|
+
MJIT_SYMBOL_EXPORT_END
|
76
|
+
|
77
|
+
#define rb_fstring_lit(str) rb_fstring_new((str), rb_strlen_lit(str))
|
78
|
+
#define rb_fstring_literal(str) rb_fstring_lit(str)
|
79
|
+
#define rb_fstring_enc_lit(str, enc) rb_fstring_enc_new((str), rb_strlen_lit(str), (enc))
|
80
|
+
#define rb_fstring_enc_literal(str, enc) rb_fstring_enc_lit(str, enc)
|
81
|
+
|
82
|
+
static inline VALUE
|
83
|
+
QUOTE(VALUE v)
|
84
|
+
{
|
85
|
+
return rb_str_quote_unprintable(v);
|
86
|
+
}
|
87
|
+
|
88
|
+
static inline VALUE
|
89
|
+
QUOTE_ID(ID i)
|
90
|
+
{
|
91
|
+
return rb_id_quote_unprintable(i);
|
92
|
+
}
|
93
|
+
|
94
|
+
static inline bool
|
95
|
+
STR_EMBED_P(VALUE str)
|
96
|
+
{
|
97
|
+
return ! FL_TEST_RAW(str, STR_NOEMBED);
|
98
|
+
}
|
99
|
+
|
100
|
+
static inline bool
|
101
|
+
STR_SHARED_P(VALUE str)
|
102
|
+
{
|
103
|
+
return FL_ALL_RAW(str, STR_NOEMBED | ELTS_SHARED);
|
104
|
+
}
|
105
|
+
|
106
|
+
static inline bool
|
107
|
+
is_ascii_string(VALUE str)
|
108
|
+
{
|
109
|
+
return rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT;
|
110
|
+
}
|
111
|
+
|
112
|
+
static inline bool
|
113
|
+
is_broken_string(VALUE str)
|
114
|
+
{
|
115
|
+
return rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN;
|
116
|
+
}
|
117
|
+
|
118
|
+
/* expect tail call optimization */
|
119
|
+
static inline VALUE
|
120
|
+
rb_str_eql_internal(const VALUE str1, const VALUE str2)
|
121
|
+
{
|
122
|
+
const long len = RSTRING_LEN(str1);
|
123
|
+
const char *ptr1, *ptr2;
|
124
|
+
|
125
|
+
if (len != RSTRING_LEN(str2)) return Qfalse;
|
126
|
+
if (!rb_str_comparable(str1, str2)) return Qfalse;
|
127
|
+
if ((ptr1 = RSTRING_PTR(str1)) == (ptr2 = RSTRING_PTR(str2)))
|
128
|
+
return Qtrue;
|
129
|
+
if (memcmp(ptr1, ptr2, len) == 0)
|
130
|
+
return Qtrue;
|
131
|
+
return Qfalse;
|
132
|
+
}
|
133
|
+
|
134
|
+
#if __has_builtin(__builtin_constant_p)
|
135
|
+
# define rb_fstring_cstr(str) \
|
136
|
+
(__builtin_constant_p(str) ? \
|
137
|
+
rb_fstring_new((str), (long)strlen(str)) : \
|
138
|
+
(rb_fstring_cstr)(str))
|
139
|
+
#endif
|
140
|
+
#endif /* INTERNAL_STRING_H */
|
@@ -0,0 +1,154 @@
|
|
1
|
+
#ifndef INTERNAL_STRUCT_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_STRUCT_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for Struct.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
13
|
+
#include "internal/gc.h" /* for RB_OBJ_WRITE */
|
14
|
+
#include "ruby/ruby.h" /* for struct RBasic */
|
15
|
+
|
16
|
+
enum {
|
17
|
+
RSTRUCT_EMBED_LEN_MAX = RVALUE_EMBED_LEN_MAX,
|
18
|
+
RSTRUCT_EMBED_LEN_MASK = (RUBY_FL_USER2|RUBY_FL_USER1),
|
19
|
+
RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1),
|
20
|
+
RSTRUCT_TRANSIENT_FLAG = FL_USER3,
|
21
|
+
};
|
22
|
+
|
23
|
+
struct RStruct {
|
24
|
+
struct RBasic basic;
|
25
|
+
union {
|
26
|
+
struct {
|
27
|
+
long len;
|
28
|
+
const VALUE *ptr;
|
29
|
+
} heap;
|
30
|
+
const VALUE ary[RSTRUCT_EMBED_LEN_MAX];
|
31
|
+
} as;
|
32
|
+
};
|
33
|
+
|
34
|
+
#define RSTRUCT(obj) ((struct RStruct *)(obj))
|
35
|
+
|
36
|
+
#ifdef RSTRUCT_LEN
|
37
|
+
# undef RSTRUCT_LEN
|
38
|
+
#endif
|
39
|
+
|
40
|
+
#ifdef RSTRUCT_PTR
|
41
|
+
# undef RSTRUCT_PTR
|
42
|
+
#endif
|
43
|
+
|
44
|
+
#ifdef RSTRUCT_SET
|
45
|
+
# undef RSTRUCT_SET
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#ifdef RSTRUCT_GET
|
49
|
+
# undef RSTRUCT_GET
|
50
|
+
#endif
|
51
|
+
|
52
|
+
#define RSTRUCT_LEN internal_RSTRUCT_LEN
|
53
|
+
#define RSTRUCT_SET internal_RSTRUCT_SET
|
54
|
+
#define RSTRUCT_GET internal_RSTRUCT_GET
|
55
|
+
|
56
|
+
/* struct.c */
|
57
|
+
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
58
|
+
VALUE rb_struct_lookup(VALUE s, VALUE idx);
|
59
|
+
VALUE rb_struct_s_keyword_init(VALUE klass);
|
60
|
+
static inline const VALUE *rb_struct_const_heap_ptr(VALUE st);
|
61
|
+
static inline bool RSTRUCT_TRANSIENT_P(VALUE st);
|
62
|
+
static inline void RSTRUCT_TRANSIENT_SET(VALUE st);
|
63
|
+
static inline void RSTRUCT_TRANSIENT_UNSET(VALUE st);
|
64
|
+
static inline long RSTRUCT_EMBED_LEN(VALUE st);
|
65
|
+
static inline long RSTRUCT_LEN(VALUE st);
|
66
|
+
static inline int RSTRUCT_LENINT(VALUE st);
|
67
|
+
static inline const VALUE *RSTRUCT_CONST_PTR(VALUE st);
|
68
|
+
static inline void RSTRUCT_SET(VALUE st, long k, VALUE v);
|
69
|
+
static inline VALUE RSTRUCT_GET(VALUE st, long k);
|
70
|
+
|
71
|
+
static inline bool
|
72
|
+
RSTRUCT_TRANSIENT_P(VALUE st)
|
73
|
+
{
|
74
|
+
#if USE_TRANSIENT_HEAP
|
75
|
+
return FL_TEST_RAW(st, RSTRUCT_TRANSIENT_FLAG);
|
76
|
+
#else
|
77
|
+
return false;
|
78
|
+
#endif
|
79
|
+
}
|
80
|
+
|
81
|
+
static inline void
|
82
|
+
RSTRUCT_TRANSIENT_SET(VALUE st)
|
83
|
+
{
|
84
|
+
#if USE_TRANSIENT_HEAP
|
85
|
+
FL_SET_RAW(st, RSTRUCT_TRANSIENT_FLAG);
|
86
|
+
#endif
|
87
|
+
}
|
88
|
+
|
89
|
+
static inline void
|
90
|
+
RSTRUCT_TRANSIENT_UNSET(VALUE st)
|
91
|
+
{
|
92
|
+
#if USE_TRANSIENT_HEAP
|
93
|
+
FL_UNSET_RAW(st, RSTRUCT_TRANSIENT_FLAG);
|
94
|
+
#endif
|
95
|
+
}
|
96
|
+
|
97
|
+
static inline long
|
98
|
+
RSTRUCT_EMBED_LEN(VALUE st)
|
99
|
+
{
|
100
|
+
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
|
101
|
+
ret >>= RSTRUCT_EMBED_LEN_SHIFT;
|
102
|
+
return ret;
|
103
|
+
}
|
104
|
+
|
105
|
+
static inline long
|
106
|
+
RSTRUCT_LEN(VALUE st)
|
107
|
+
{
|
108
|
+
if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
|
109
|
+
return RSTRUCT_EMBED_LEN(st);
|
110
|
+
}
|
111
|
+
else {
|
112
|
+
return RSTRUCT(st)->as.heap.len;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
static inline int
|
117
|
+
RSTRUCT_LENINT(VALUE st)
|
118
|
+
{
|
119
|
+
return rb_long2int(RSTRUCT_LEN(st));
|
120
|
+
}
|
121
|
+
|
122
|
+
static inline const VALUE *
|
123
|
+
RSTRUCT_CONST_PTR(VALUE st)
|
124
|
+
{
|
125
|
+
const struct RStruct *p = RSTRUCT(st);
|
126
|
+
|
127
|
+
if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
|
128
|
+
return p->as.ary;
|
129
|
+
}
|
130
|
+
else {
|
131
|
+
return p->as.heap.ptr;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
static inline void
|
136
|
+
RSTRUCT_SET(VALUE st, long k, VALUE v)
|
137
|
+
{
|
138
|
+
RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[k], v);
|
139
|
+
}
|
140
|
+
|
141
|
+
static inline VALUE
|
142
|
+
RSTRUCT_GET(VALUE st, long k)
|
143
|
+
{
|
144
|
+
return RSTRUCT_CONST_PTR(st)[k];
|
145
|
+
}
|
146
|
+
|
147
|
+
static inline const VALUE *
|
148
|
+
rb_struct_const_heap_ptr(VALUE st)
|
149
|
+
{
|
150
|
+
/* TODO: check embed on debug mode */
|
151
|
+
return RSTRUCT(st)->as.heap.ptr;
|
152
|
+
}
|
153
|
+
|
154
|
+
#endif /* INTERNAL_STRUCT_H */
|
@@ -0,0 +1,41 @@
|
|
1
|
+
#ifndef INTERNAL_SYMBOL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_SYMBOL_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for Symbol.
|
11
|
+
*/
|
12
|
+
#include "ruby/ruby.h" /* for VALUE */
|
13
|
+
#include "ruby/encoding.h" /* for rb_encoding */
|
14
|
+
#include "internal/compilers.h" /* for __has_builtin */
|
15
|
+
|
16
|
+
#ifdef rb_sym_intern_ascii_cstr
|
17
|
+
# undef rb_sym_intern_ascii_cstr
|
18
|
+
#endif
|
19
|
+
|
20
|
+
/* symbol.c */
|
21
|
+
VALUE rb_to_symbol_type(VALUE obj);
|
22
|
+
VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
|
23
|
+
VALUE rb_sym_intern_ascii(const char *ptr, long len);
|
24
|
+
VALUE rb_sym_intern_ascii_cstr(const char *ptr);
|
25
|
+
int rb_is_const_name(VALUE name);
|
26
|
+
int rb_is_class_name(VALUE name);
|
27
|
+
int rb_is_instance_name(VALUE name);
|
28
|
+
int rb_is_local_name(VALUE name);
|
29
|
+
PUREFUNC(int rb_is_const_sym(VALUE sym));
|
30
|
+
PUREFUNC(int rb_is_attrset_sym(VALUE sym));
|
31
|
+
ID rb_make_internal_id(void);
|
32
|
+
void rb_gc_free_dsymbol(VALUE);
|
33
|
+
|
34
|
+
#if __has_builtin(__builtin_constant_p)
|
35
|
+
#define rb_sym_intern_ascii_cstr(ptr) \
|
36
|
+
(__builtin_constant_p(ptr) ? \
|
37
|
+
rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
|
38
|
+
rb_sym_intern_ascii_cstr(ptr))
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif /* INTERNAL_SYMBOL_H */
|
@@ -0,0 +1,54 @@
|
|
1
|
+
#ifndef INTERNAL_THREAD_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_THREAD_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for Thread.
|
11
|
+
*/
|
12
|
+
#include "ruby/ruby.h" /* for VALUE */
|
13
|
+
#include "ruby/intern.h" /* for rb_blocking_function_t */
|
14
|
+
|
15
|
+
struct rb_thread_struct; /* in vm_core.h */
|
16
|
+
|
17
|
+
/* thread.c */
|
18
|
+
#define COVERAGE_INDEX_LINES 0
|
19
|
+
#define COVERAGE_INDEX_BRANCHES 1
|
20
|
+
#define COVERAGE_TARGET_LINES 1
|
21
|
+
#define COVERAGE_TARGET_BRANCHES 2
|
22
|
+
#define COVERAGE_TARGET_METHODS 4
|
23
|
+
#define COVERAGE_TARGET_ONESHOT_LINES 8
|
24
|
+
|
25
|
+
VALUE rb_obj_is_mutex(VALUE obj);
|
26
|
+
VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
|
27
|
+
void rb_thread_execute_interrupts(VALUE th);
|
28
|
+
VALUE rb_get_coverages(void);
|
29
|
+
int rb_get_coverage_mode(void);
|
30
|
+
VALUE rb_default_coverage(int);
|
31
|
+
VALUE rb_thread_shield_new(void);
|
32
|
+
VALUE rb_thread_shield_wait(VALUE self);
|
33
|
+
VALUE rb_thread_shield_release(VALUE self);
|
34
|
+
VALUE rb_thread_shield_destroy(VALUE self);
|
35
|
+
int rb_thread_to_be_killed(VALUE thread);
|
36
|
+
void rb_mutex_allow_trap(VALUE self, int val);
|
37
|
+
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
|
38
|
+
VALUE rb_mutex_owned_p(VALUE self);
|
39
|
+
|
40
|
+
int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
|
41
|
+
|
42
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
43
|
+
/* Temporary. This API will be removed (renamed). */
|
44
|
+
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
|
45
|
+
|
46
|
+
/* thread.c (export) */
|
47
|
+
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
|
48
|
+
RUBY_SYMBOL_EXPORT_END
|
49
|
+
|
50
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
51
|
+
int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
|
52
|
+
MJIT_SYMBOL_EXPORT_END
|
53
|
+
|
54
|
+
#endif /* INTERNAL_THREAD_H */
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_TIME_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for Time.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
|
13
|
+
#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
|
14
|
+
#include "ruby/ruby.h" /* for VALUE */
|
15
|
+
|
16
|
+
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
|
17
|
+
# define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
|
18
|
+
# define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
|
19
|
+
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
|
20
|
+
# define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
|
21
|
+
# define TIMET_MIN ((time_t)0)
|
22
|
+
#endif
|
23
|
+
|
24
|
+
struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
|
25
|
+
|
26
|
+
/* time.c */
|
27
|
+
struct timeval rb_time_timeval(VALUE);
|
28
|
+
|
29
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
30
|
+
/* time.c (export) */
|
31
|
+
void ruby_reset_leap_second_info(void);
|
32
|
+
void ruby_reset_timezone(void);
|
33
|
+
RUBY_SYMBOL_EXPORT_END
|
34
|
+
|
35
|
+
#endif /* INTERNAL_TIME_H */
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#ifndef INTERNAL_TRANSCODE_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_TRANSCODE_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for Encoding::Converter.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h"
|
13
|
+
#include <stddef.h> /* for size_t */
|
14
|
+
#include "ruby/ruby.h" /* for VALUE */
|
15
|
+
#include "ruby/encoding.h" /* for rb_econv_t */
|
16
|
+
|
17
|
+
/* transcode.c */
|
18
|
+
extern VALUE rb_cEncodingConverter;
|
19
|
+
size_t rb_econv_memsize(rb_econv_t *);
|
20
|
+
|
21
|
+
#endif /* INTERNAL_TRANSCODE_H */
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_UTIL_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header corresponding util.c.
|
11
|
+
* @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
|
12
|
+
*/
|
13
|
+
#include "ruby/internal/config.h"
|
14
|
+
#include <stddef.h> /* for size_t */
|
15
|
+
|
16
|
+
#ifdef HAVE_SYS_TYPES_H
|
17
|
+
# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
|
18
|
+
#endif /* `#define`d in ruby/config.h) */
|
19
|
+
|
20
|
+
/* util.c */
|
21
|
+
char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
|
22
|
+
char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
|
23
|
+
|
24
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
25
|
+
/* util.c (export) */
|
26
|
+
extern const signed char ruby_digit36_to_number_table[];
|
27
|
+
extern const char ruby_hexdigits[];
|
28
|
+
extern unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow);
|
29
|
+
RUBY_SYMBOL_EXPORT_END
|
30
|
+
|
31
|
+
#endif /* INTERNAL_UTIL_H */
|
@@ -0,0 +1,84 @@
|
|
1
|
+
#ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_VARIABLE_H
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
9
|
+
* file COPYING are met. Consult the file for details.
|
10
|
+
* @brief Internal header for variables.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h"
|
13
|
+
#include <stddef.h> /* for size_t */
|
14
|
+
#include "constant.h" /* for rb_const_entry_t */
|
15
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
16
|
+
#include "ruby/ruby.h" /* for VALUE */
|
17
|
+
|
18
|
+
/* global variable */
|
19
|
+
|
20
|
+
#define ROBJECT_TRANSIENT_FLAG FL_USER13
|
21
|
+
|
22
|
+
/* variable.c */
|
23
|
+
void rb_gc_mark_global_tbl(void);
|
24
|
+
void rb_gc_update_global_tbl(void);
|
25
|
+
size_t rb_generic_ivar_memsize(VALUE);
|
26
|
+
VALUE rb_search_class_path(VALUE);
|
27
|
+
VALUE rb_attr_delete(VALUE, ID);
|
28
|
+
VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
|
29
|
+
void rb_autoload_str(VALUE mod, ID id, VALUE file);
|
30
|
+
VALUE rb_autoload_at_p(VALUE, ID, int);
|
31
|
+
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
32
|
+
rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
|
33
|
+
rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
|
34
|
+
void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
|
35
|
+
void rb_gvar_ractor_local(const char *name);
|
36
|
+
static inline bool ROBJ_TRANSIENT_P(VALUE obj);
|
37
|
+
static inline void ROBJ_TRANSIENT_SET(VALUE obj);
|
38
|
+
static inline void ROBJ_TRANSIENT_UNSET(VALUE obj);
|
39
|
+
|
40
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
41
|
+
/* variable.c (export) */
|
42
|
+
void rb_mark_generic_ivar(VALUE);
|
43
|
+
void rb_mv_generic_ivar(VALUE src, VALUE dst);
|
44
|
+
VALUE rb_const_missing(VALUE klass, VALUE name);
|
45
|
+
int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
|
46
|
+
void rb_iv_tbl_copy(VALUE dst, VALUE src);
|
47
|
+
void rb_deprecate_constant(VALUE mod, const char *name);
|
48
|
+
RUBY_SYMBOL_EXPORT_END
|
49
|
+
|
50
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
51
|
+
VALUE rb_gvar_get(ID);
|
52
|
+
VALUE rb_gvar_set(ID, VALUE);
|
53
|
+
VALUE rb_gvar_defined(ID);
|
54
|
+
void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
|
55
|
+
void rb_init_iv_list(VALUE obj);
|
56
|
+
MJIT_SYMBOL_EXPORT_END
|
57
|
+
|
58
|
+
static inline bool
|
59
|
+
ROBJ_TRANSIENT_P(VALUE obj)
|
60
|
+
{
|
61
|
+
#if USE_TRANSIENT_HEAP
|
62
|
+
return FL_TEST_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
63
|
+
#else
|
64
|
+
return false;
|
65
|
+
#endif
|
66
|
+
}
|
67
|
+
|
68
|
+
static inline void
|
69
|
+
ROBJ_TRANSIENT_SET(VALUE obj)
|
70
|
+
{
|
71
|
+
#if USE_TRANSIENT_HEAP
|
72
|
+
FL_SET_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
73
|
+
#endif
|
74
|
+
}
|
75
|
+
|
76
|
+
static inline void
|
77
|
+
ROBJ_TRANSIENT_UNSET(VALUE obj)
|
78
|
+
{
|
79
|
+
#if USE_TRANSIENT_HEAP
|
80
|
+
FL_UNSET_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
81
|
+
#endif
|
82
|
+
}
|
83
|
+
|
84
|
+
#endif /* INTERNAL_VARIABLE_H */
|