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
@@ -1,15 +0,0 @@
|
|
1
|
-
#include "ruby/assert.h"
|
2
|
-
|
3
|
-
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
|
4
|
-
/* C89 compilers are required to support strings of only 509 chars. */
|
5
|
-
/* can't use RUBY_ASSERT for such compilers. */
|
6
|
-
#include <assert.h>
|
7
|
-
#else
|
8
|
-
#undef assert
|
9
|
-
#define assert RUBY_ASSERT
|
10
|
-
#endif
|
11
|
-
|
12
|
-
#ifdef NDEBUG
|
13
|
-
#undef RUBY_NDEBUG
|
14
|
-
#define RUBY_NDEBUG 1
|
15
|
-
#endif
|
@@ -1,244 +0,0 @@
|
|
1
|
-
#ifndef RUBY_ATOMIC_H
|
2
|
-
#define RUBY_ATOMIC_H
|
3
|
-
|
4
|
-
#if 0
|
5
|
-
#elif defined HAVE_GCC_ATOMIC_BUILTINS
|
6
|
-
typedef unsigned int rb_atomic_t;
|
7
|
-
# define ATOMIC_SET(var, val) (void)__atomic_exchange_n(&(var), (val), __ATOMIC_SEQ_CST)
|
8
|
-
# define ATOMIC_INC(var) __atomic_fetch_add(&(var), 1, __ATOMIC_SEQ_CST)
|
9
|
-
# define ATOMIC_DEC(var) __atomic_fetch_sub(&(var), 1, __ATOMIC_SEQ_CST)
|
10
|
-
# define ATOMIC_OR(var, val) __atomic_fetch_or(&(var), (val), __ATOMIC_SEQ_CST)
|
11
|
-
# define ATOMIC_EXCHANGE(var, val) __atomic_exchange_n(&(var), (val), __ATOMIC_SEQ_CST)
|
12
|
-
# define ATOMIC_CAS(var, oldval, newval) RB_GNUC_EXTENSION_BLOCK( \
|
13
|
-
__typeof__(var) oldvaldup = (oldval); /* oldval should not be modified */ \
|
14
|
-
__atomic_compare_exchange_n(&(var), &oldvaldup, (newval), 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); \
|
15
|
-
oldvaldup )
|
16
|
-
|
17
|
-
# define ATOMIC_SIZE_ADD(var, val) __atomic_fetch_add(&(var), (val), __ATOMIC_SEQ_CST)
|
18
|
-
# define ATOMIC_SIZE_SUB(var, val) __atomic_fetch_sub(&(var), (val), __ATOMIC_SEQ_CST)
|
19
|
-
|
20
|
-
# define RUBY_ATOMIC_GENERIC_MACRO 1
|
21
|
-
|
22
|
-
#elif defined HAVE_GCC_SYNC_BUILTINS
|
23
|
-
/* @shyouhei hack to support atomic operations in case of gcc. Gcc
|
24
|
-
* has its own pseudo-insns to support them. See info, or
|
25
|
-
* http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html */
|
26
|
-
|
27
|
-
typedef unsigned int rb_atomic_t; /* Anything OK */
|
28
|
-
# define ATOMIC_SET(var, val) (void)__sync_lock_test_and_set(&(var), (val))
|
29
|
-
# define ATOMIC_INC(var) __sync_fetch_and_add(&(var), 1)
|
30
|
-
# define ATOMIC_DEC(var) __sync_fetch_and_sub(&(var), 1)
|
31
|
-
# define ATOMIC_OR(var, val) __sync_fetch_and_or(&(var), (val))
|
32
|
-
# define ATOMIC_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val))
|
33
|
-
# define ATOMIC_CAS(var, oldval, newval) __sync_val_compare_and_swap(&(var), (oldval), (newval))
|
34
|
-
|
35
|
-
# define ATOMIC_SIZE_ADD(var, val) __sync_fetch_and_add(&(var), (val))
|
36
|
-
# define ATOMIC_SIZE_SUB(var, val) __sync_fetch_and_sub(&(var), (val))
|
37
|
-
|
38
|
-
# define RUBY_ATOMIC_GENERIC_MACRO 1
|
39
|
-
|
40
|
-
#elif defined _WIN32
|
41
|
-
#if defined _MSC_VER && _MSC_VER > 1200
|
42
|
-
#pragma intrinsic(_InterlockedOr)
|
43
|
-
#endif
|
44
|
-
typedef LONG rb_atomic_t;
|
45
|
-
|
46
|
-
# define ATOMIC_SET(var, val) InterlockedExchange(&(var), (val))
|
47
|
-
# define ATOMIC_INC(var) InterlockedIncrement(&(var))
|
48
|
-
# define ATOMIC_DEC(var) InterlockedDecrement(&(var))
|
49
|
-
#if defined __GNUC__
|
50
|
-
# define ATOMIC_OR(var, val) __asm__("lock\n\t" "orl\t%1, %0" : "=m"(var) : "Ir"(val))
|
51
|
-
#elif defined _MSC_VER && _MSC_VER <= 1200
|
52
|
-
# define ATOMIC_OR(var, val) rb_w32_atomic_or(&(var), (val))
|
53
|
-
static inline void
|
54
|
-
rb_w32_atomic_or(volatile rb_atomic_t *var, rb_atomic_t val)
|
55
|
-
{
|
56
|
-
#ifdef _M_IX86
|
57
|
-
__asm mov eax, var;
|
58
|
-
__asm mov ecx, val;
|
59
|
-
__asm lock or [eax], ecx;
|
60
|
-
#else
|
61
|
-
#error unsupported architecture
|
62
|
-
#endif
|
63
|
-
}
|
64
|
-
#else
|
65
|
-
# define ATOMIC_OR(var, val) _InterlockedOr(&(var), (val))
|
66
|
-
#endif
|
67
|
-
# define ATOMIC_EXCHANGE(var, val) InterlockedExchange(&(var), (val))
|
68
|
-
# define ATOMIC_CAS(var, oldval, newval) InterlockedCompareExchange(&(var), (newval), (oldval))
|
69
|
-
# if defined _MSC_VER && _MSC_VER <= 1200
|
70
|
-
static inline rb_atomic_t
|
71
|
-
rb_w32_atomic_cas(volatile rb_atomic_t *var, rb_atomic_t oldval, rb_atomic_t newval)
|
72
|
-
{
|
73
|
-
return (rb_atomic_t)InterlockedCompareExchange((PVOID *)var, (PVOID)newval, (PVOID)oldval);
|
74
|
-
}
|
75
|
-
# undef ATOMIC_CAS
|
76
|
-
# define ATOMIC_CAS(var, oldval, newval) rb_w32_atomic_cas(&(var), (oldval), (newval))
|
77
|
-
# endif
|
78
|
-
# ifdef _M_AMD64
|
79
|
-
# define ATOMIC_SIZE_ADD(var, val) InterlockedExchangeAdd64((LONG_LONG *)&(var), (val))
|
80
|
-
# define ATOMIC_SIZE_SUB(var, val) InterlockedExchangeAdd64((LONG_LONG *)&(var), -(LONG)(val))
|
81
|
-
# define ATOMIC_SIZE_INC(var) InterlockedIncrement64(&(var))
|
82
|
-
# define ATOMIC_SIZE_DEC(var) InterlockedDecrement64(&(var))
|
83
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) InterlockedExchange64(&(var), (val))
|
84
|
-
# define ATOMIC_SIZE_CAS(var, oldval, newval) InterlockedCompareExchange64(&(var), (newval), (oldval))
|
85
|
-
# else
|
86
|
-
# define ATOMIC_SIZE_ADD(var, val) InterlockedExchangeAdd((LONG *)&(var), (val))
|
87
|
-
# define ATOMIC_SIZE_SUB(var, val) InterlockedExchangeAdd((LONG *)&(var), -(LONG)(val))
|
88
|
-
# define ATOMIC_SIZE_INC(var) InterlockedIncrement((LONG *)&(var))
|
89
|
-
# define ATOMIC_SIZE_DEC(var) InterlockedDecrement((LONG *)&(var))
|
90
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) InterlockedExchange((LONG *)&(var), (val))
|
91
|
-
# endif
|
92
|
-
|
93
|
-
# ifdef InterlockedExchangePointer
|
94
|
-
# define ATOMIC_PTR_EXCHANGE(var, val) InterlockedExchangePointer((PVOID volatile *)&(var), (PVOID)(val))
|
95
|
-
# endif /* See below for definitions of other situations */
|
96
|
-
|
97
|
-
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
|
98
|
-
#include <atomic.h>
|
99
|
-
typedef unsigned int rb_atomic_t;
|
100
|
-
|
101
|
-
# define ATOMIC_SET(var, val) (void)atomic_swap_uint(&(var), (val))
|
102
|
-
# define ATOMIC_INC(var) atomic_inc_uint(&(var))
|
103
|
-
# define ATOMIC_DEC(var) atomic_dec_uint(&(var))
|
104
|
-
# define ATOMIC_OR(var, val) atomic_or_uint(&(var), (val))
|
105
|
-
# define ATOMIC_EXCHANGE(var, val) atomic_swap_uint(&(var), (val))
|
106
|
-
# define ATOMIC_CAS(var, oldval, newval) atomic_cas_uint(&(var), (oldval), (newval))
|
107
|
-
|
108
|
-
# if SIZEOF_SIZE_T == SIZEOF_LONG
|
109
|
-
# define ATOMIC_SIZE_ADD(var, val) atomic_add_long(&(var), (val))
|
110
|
-
# define ATOMIC_SIZE_SUB(var, val) atomic_add_long(&(var), -(val))
|
111
|
-
# define ATOMIC_SIZE_INC(var) atomic_inc_ulong(&(var))
|
112
|
-
# define ATOMIC_SIZE_DEC(var) atomic_dec_ulong(&(var))
|
113
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_ulong(&(var), (val))
|
114
|
-
# define ATOMIC_SIZE_CAS(var, oldval, val) atomic_cas_ulong(&(var), (oldval), (val))
|
115
|
-
# else
|
116
|
-
# define ATOMIC_SIZE_ADD(var, val) atomic_add_int(&(var), (val))
|
117
|
-
# define ATOMIC_SIZE_SUB(var, val) atomic_add_int(&(var), -(val))
|
118
|
-
# define ATOMIC_SIZE_INC(var) atomic_inc_uint(&(var))
|
119
|
-
# define ATOMIC_SIZE_DEC(var) atomic_dec_uint(&(var))
|
120
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_uint(&(var), (val))
|
121
|
-
# endif
|
122
|
-
|
123
|
-
#else
|
124
|
-
typedef int rb_atomic_t;
|
125
|
-
#define NEED_RUBY_ATOMIC_OPS
|
126
|
-
extern rb_atomic_t ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val);
|
127
|
-
extern rb_atomic_t ruby_atomic_compare_and_swap(rb_atomic_t *ptr,
|
128
|
-
rb_atomic_t cmp,
|
129
|
-
rb_atomic_t newval);
|
130
|
-
|
131
|
-
# define ATOMIC_SET(var, val) (void)((var) = (val))
|
132
|
-
# define ATOMIC_INC(var) ((var)++)
|
133
|
-
# define ATOMIC_DEC(var) ((var)--)
|
134
|
-
# define ATOMIC_OR(var, val) ((var) |= (val))
|
135
|
-
# define ATOMIC_EXCHANGE(var, val) ruby_atomic_exchange(&(var), (val))
|
136
|
-
# define ATOMIC_CAS(var, oldval, newval) ruby_atomic_compare_and_swap(&(var), (oldval), (newval))
|
137
|
-
|
138
|
-
# define ATOMIC_SIZE_ADD(var, val) (void)((var) += (val))
|
139
|
-
# define ATOMIC_SIZE_SUB(var, val) (void)((var) -= (val))
|
140
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) ruby_atomic_size_exchange(&(var), (val))
|
141
|
-
static inline size_t
|
142
|
-
ruby_atomic_size_exchange(size_t *ptr, size_t val)
|
143
|
-
{
|
144
|
-
size_t old = *ptr;
|
145
|
-
*ptr = val;
|
146
|
-
return old;
|
147
|
-
}
|
148
|
-
#endif
|
149
|
-
|
150
|
-
#ifndef ATOMIC_SIZE_INC
|
151
|
-
# define ATOMIC_SIZE_INC(var) ATOMIC_INC(var)
|
152
|
-
#endif
|
153
|
-
|
154
|
-
#ifndef ATOMIC_SIZE_DEC
|
155
|
-
# define ATOMIC_SIZE_DEC(var) ATOMIC_DEC(var)
|
156
|
-
#endif
|
157
|
-
|
158
|
-
#ifndef ATOMIC_SIZE_EXCHANGE
|
159
|
-
# define ATOMIC_SIZE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
160
|
-
#endif
|
161
|
-
|
162
|
-
#ifndef ATOMIC_SIZE_CAS
|
163
|
-
# define ATOMIC_SIZE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
164
|
-
#endif
|
165
|
-
|
166
|
-
#if RUBY_ATOMIC_GENERIC_MACRO
|
167
|
-
# ifndef ATOMIC_PTR_EXCHANGE
|
168
|
-
# define ATOMIC_PTR_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
169
|
-
# endif
|
170
|
-
|
171
|
-
# ifndef ATOMIC_PTR_CAS
|
172
|
-
# define ATOMIC_PTR_CAS(var, oldval, newval) ATOMIC_CAS(var, oldval, newval)
|
173
|
-
# endif
|
174
|
-
|
175
|
-
# ifndef ATOMIC_VALUE_EXCHANGE
|
176
|
-
# define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
177
|
-
# endif
|
178
|
-
|
179
|
-
# ifndef ATOMIC_VALUE_CAS
|
180
|
-
# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
181
|
-
# endif
|
182
|
-
#endif
|
183
|
-
|
184
|
-
#ifndef ATOMIC_PTR_EXCHANGE
|
185
|
-
# if SIZEOF_VOIDP == SIZEOF_SIZE_T
|
186
|
-
# define ATOMIC_PTR_EXCHANGE(var, val) (void *)ATOMIC_SIZE_EXCHANGE(*(size_t *)&(var), (size_t)(val))
|
187
|
-
# else
|
188
|
-
# define ATOMIC_PTR_EXCHANGE(var, val) ruby_atomic_ptr_exchange((const void **)&(var), (val))
|
189
|
-
static inline void *
|
190
|
-
ruby_atomic_ptr_exchange(const void **ptr, const void *val)
|
191
|
-
{
|
192
|
-
const void *const old = *ptr;
|
193
|
-
*ptr = val;
|
194
|
-
return (void *)old;
|
195
|
-
}
|
196
|
-
# endif
|
197
|
-
#endif
|
198
|
-
|
199
|
-
#ifndef ATOMIC_PTR_CAS
|
200
|
-
# if SIZEOF_VOIDP == SIZEOF_SIZE_T
|
201
|
-
# define ATOMIC_PTR_CAS(var, oldval, val) (void *)ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val))
|
202
|
-
# else
|
203
|
-
# define ATOMIC_PTR_CAS(var, oldval, val) ruby_atomic_ptr_cas(&(var), (oldval), (val))
|
204
|
-
static inline void *
|
205
|
-
ruby_atomic_ptr_cas(const void **ptr, const void *oldval, const void *val)
|
206
|
-
{
|
207
|
-
const void *const old = *ptr;
|
208
|
-
if (old == oldval) *ptr = val;
|
209
|
-
return (void *)old;
|
210
|
-
}
|
211
|
-
# endif
|
212
|
-
#endif
|
213
|
-
|
214
|
-
#ifndef ATOMIC_VALUE_EXCHANGE
|
215
|
-
# if SIZEOF_VALUE == SIZEOF_SIZE_T
|
216
|
-
# define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_SIZE_EXCHANGE(*(size_t *)&(var), (size_t)(val))
|
217
|
-
# else
|
218
|
-
# define ATOMIC_VALUE_EXCHANGE(var, val) ruby_atomic_value_exchange(&(var), (val))
|
219
|
-
static inline VALUE
|
220
|
-
ruby_atomic_value_exchange(VALUE *ptr, VALUE val)
|
221
|
-
{
|
222
|
-
const VALUE old = *ptr;
|
223
|
-
*ptr = val;
|
224
|
-
return old;
|
225
|
-
}
|
226
|
-
# endif
|
227
|
-
#endif
|
228
|
-
|
229
|
-
#ifndef ATOMIC_VALUE_CAS
|
230
|
-
# if SIZEOF_VALUE == SIZEOF_SIZE_T
|
231
|
-
# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val))
|
232
|
-
# else
|
233
|
-
# define ATOMIC_VALUE_CAS(var, oldval, val) ruby_atomic_value_cas(&(var), (oldval), (val))
|
234
|
-
static inline VALUE
|
235
|
-
ruby_atomic_value_cas(VALUE *ptr, VALUE oldval, VALUE val)
|
236
|
-
{
|
237
|
-
const VALUE old = *ptr;
|
238
|
-
if (old == oldval) *ptr = val;
|
239
|
-
return old;
|
240
|
-
}
|
241
|
-
# endif
|
242
|
-
#endif
|
243
|
-
|
244
|
-
#endif /* RUBY_ATOMIC_H */
|
@@ -1,237 +0,0 @@
|
|
1
|
-
/* -*- c -*- */
|
2
|
-
#if 1 /* enable or disable this optimization */
|
3
|
-
|
4
|
-
/* DO NOT EDIT THIS FILE DIRECTLY
|
5
|
-
*
|
6
|
-
* This file is generated by tool/mk_call_iseq_optimized.rb
|
7
|
-
*/
|
8
|
-
|
9
|
-
static VALUE
|
10
|
-
vm_call_iseq_setup_normal_0start_0params_0locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
11
|
-
{
|
12
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
13
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 0);
|
14
|
-
}
|
15
|
-
|
16
|
-
static VALUE
|
17
|
-
vm_call_iseq_setup_normal_0start_0params_1locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
18
|
-
{
|
19
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
20
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 1);
|
21
|
-
}
|
22
|
-
|
23
|
-
static VALUE
|
24
|
-
vm_call_iseq_setup_normal_0start_0params_2locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
25
|
-
{
|
26
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
27
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 2);
|
28
|
-
}
|
29
|
-
|
30
|
-
static VALUE
|
31
|
-
vm_call_iseq_setup_normal_0start_0params_3locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
32
|
-
{
|
33
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
34
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 3);
|
35
|
-
}
|
36
|
-
|
37
|
-
static VALUE
|
38
|
-
vm_call_iseq_setup_normal_0start_0params_4locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
39
|
-
{
|
40
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
41
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 4);
|
42
|
-
}
|
43
|
-
|
44
|
-
static VALUE
|
45
|
-
vm_call_iseq_setup_normal_0start_0params_5locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
46
|
-
{
|
47
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
48
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 0, 5);
|
49
|
-
}
|
50
|
-
|
51
|
-
static VALUE
|
52
|
-
vm_call_iseq_setup_normal_0start_1params_0locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
53
|
-
{
|
54
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
55
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 0);
|
56
|
-
}
|
57
|
-
|
58
|
-
static VALUE
|
59
|
-
vm_call_iseq_setup_normal_0start_1params_1locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
60
|
-
{
|
61
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
62
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 1);
|
63
|
-
}
|
64
|
-
|
65
|
-
static VALUE
|
66
|
-
vm_call_iseq_setup_normal_0start_1params_2locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
67
|
-
{
|
68
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
69
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 2);
|
70
|
-
}
|
71
|
-
|
72
|
-
static VALUE
|
73
|
-
vm_call_iseq_setup_normal_0start_1params_3locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
74
|
-
{
|
75
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
76
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 3);
|
77
|
-
}
|
78
|
-
|
79
|
-
static VALUE
|
80
|
-
vm_call_iseq_setup_normal_0start_1params_4locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
81
|
-
{
|
82
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
83
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 4);
|
84
|
-
}
|
85
|
-
|
86
|
-
static VALUE
|
87
|
-
vm_call_iseq_setup_normal_0start_1params_5locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
88
|
-
{
|
89
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
90
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 1, 5);
|
91
|
-
}
|
92
|
-
|
93
|
-
static VALUE
|
94
|
-
vm_call_iseq_setup_normal_0start_2params_0locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
95
|
-
{
|
96
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
97
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 0);
|
98
|
-
}
|
99
|
-
|
100
|
-
static VALUE
|
101
|
-
vm_call_iseq_setup_normal_0start_2params_1locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
102
|
-
{
|
103
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
104
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 1);
|
105
|
-
}
|
106
|
-
|
107
|
-
static VALUE
|
108
|
-
vm_call_iseq_setup_normal_0start_2params_2locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
109
|
-
{
|
110
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
111
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 2);
|
112
|
-
}
|
113
|
-
|
114
|
-
static VALUE
|
115
|
-
vm_call_iseq_setup_normal_0start_2params_3locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
116
|
-
{
|
117
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
118
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 3);
|
119
|
-
}
|
120
|
-
|
121
|
-
static VALUE
|
122
|
-
vm_call_iseq_setup_normal_0start_2params_4locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
123
|
-
{
|
124
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
125
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 4);
|
126
|
-
}
|
127
|
-
|
128
|
-
static VALUE
|
129
|
-
vm_call_iseq_setup_normal_0start_2params_5locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
130
|
-
{
|
131
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
132
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 2, 5);
|
133
|
-
}
|
134
|
-
|
135
|
-
static VALUE
|
136
|
-
vm_call_iseq_setup_normal_0start_3params_0locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
137
|
-
{
|
138
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
139
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 0);
|
140
|
-
}
|
141
|
-
|
142
|
-
static VALUE
|
143
|
-
vm_call_iseq_setup_normal_0start_3params_1locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
144
|
-
{
|
145
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
146
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 1);
|
147
|
-
}
|
148
|
-
|
149
|
-
static VALUE
|
150
|
-
vm_call_iseq_setup_normal_0start_3params_2locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
151
|
-
{
|
152
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
153
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 2);
|
154
|
-
}
|
155
|
-
|
156
|
-
static VALUE
|
157
|
-
vm_call_iseq_setup_normal_0start_3params_3locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
158
|
-
{
|
159
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
160
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 3);
|
161
|
-
}
|
162
|
-
|
163
|
-
static VALUE
|
164
|
-
vm_call_iseq_setup_normal_0start_3params_4locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
165
|
-
{
|
166
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
167
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 4);
|
168
|
-
}
|
169
|
-
|
170
|
-
static VALUE
|
171
|
-
vm_call_iseq_setup_normal_0start_3params_5locals(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
|
172
|
-
{
|
173
|
-
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
|
174
|
-
return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, 3, 5);
|
175
|
-
}
|
176
|
-
|
177
|
-
/* vm_call_iseq_handlers[param][local] */
|
178
|
-
static const vm_call_handler vm_call_iseq_handlers[][6] = {
|
179
|
-
{vm_call_iseq_setup_normal_0start_0params_0locals,
|
180
|
-
vm_call_iseq_setup_normal_0start_0params_1locals,
|
181
|
-
vm_call_iseq_setup_normal_0start_0params_2locals,
|
182
|
-
vm_call_iseq_setup_normal_0start_0params_3locals,
|
183
|
-
vm_call_iseq_setup_normal_0start_0params_4locals,
|
184
|
-
vm_call_iseq_setup_normal_0start_0params_5locals},
|
185
|
-
{vm_call_iseq_setup_normal_0start_1params_0locals,
|
186
|
-
vm_call_iseq_setup_normal_0start_1params_1locals,
|
187
|
-
vm_call_iseq_setup_normal_0start_1params_2locals,
|
188
|
-
vm_call_iseq_setup_normal_0start_1params_3locals,
|
189
|
-
vm_call_iseq_setup_normal_0start_1params_4locals,
|
190
|
-
vm_call_iseq_setup_normal_0start_1params_5locals},
|
191
|
-
{vm_call_iseq_setup_normal_0start_2params_0locals,
|
192
|
-
vm_call_iseq_setup_normal_0start_2params_1locals,
|
193
|
-
vm_call_iseq_setup_normal_0start_2params_2locals,
|
194
|
-
vm_call_iseq_setup_normal_0start_2params_3locals,
|
195
|
-
vm_call_iseq_setup_normal_0start_2params_4locals,
|
196
|
-
vm_call_iseq_setup_normal_0start_2params_5locals},
|
197
|
-
{vm_call_iseq_setup_normal_0start_3params_0locals,
|
198
|
-
vm_call_iseq_setup_normal_0start_3params_1locals,
|
199
|
-
vm_call_iseq_setup_normal_0start_3params_2locals,
|
200
|
-
vm_call_iseq_setup_normal_0start_3params_3locals,
|
201
|
-
vm_call_iseq_setup_normal_0start_3params_4locals,
|
202
|
-
vm_call_iseq_setup_normal_0start_3params_5locals}
|
203
|
-
};
|
204
|
-
|
205
|
-
static inline vm_call_handler
|
206
|
-
vm_call_iseq_setup_func(const struct rb_call_info *ci, const int param_size, const int local_size)
|
207
|
-
{
|
208
|
-
if (UNLIKELY(ci->flag & VM_CALL_TAILCALL)) {
|
209
|
-
return &vm_call_iseq_setup_tailcall_0start;
|
210
|
-
}
|
211
|
-
else if (0) { /* to disable optimize */
|
212
|
-
return &vm_call_iseq_setup_normal_0start;
|
213
|
-
}
|
214
|
-
else {
|
215
|
-
if (param_size <= 3 &&
|
216
|
-
local_size <= 5) {
|
217
|
-
VM_ASSERT(local_size >= 0);
|
218
|
-
return vm_call_iseq_handlers[param_size][local_size];
|
219
|
-
}
|
220
|
-
return &vm_call_iseq_setup_normal_0start;
|
221
|
-
}
|
222
|
-
}
|
223
|
-
|
224
|
-
#else
|
225
|
-
|
226
|
-
|
227
|
-
static inline vm_call_handler
|
228
|
-
vm_call_iseq_setup_func(const struct rb_call_info *ci, struct rb_call_cache *cc)
|
229
|
-
{
|
230
|
-
if (UNLIKELY(ci->flag & VM_CALL_TAILCALL)) {
|
231
|
-
return &vm_call_iseq_setup_tailcall_0start;
|
232
|
-
}
|
233
|
-
else {
|
234
|
-
return &vm_call_iseq_setup_normal_0start;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
#endif
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**********************************************************************
|
2
|
-
|
3
|
-
vm_debug.h - YARV Debug function interface
|
4
|
-
|
5
|
-
$Author$
|
6
|
-
created at: 04/08/25 02:33:49 JST
|
7
|
-
|
8
|
-
Copyright (C) 2004-2007 Koichi Sasada
|
9
|
-
|
10
|
-
**********************************************************************/
|
11
|
-
|
12
|
-
#ifndef RUBY_DEBUG_H
|
13
|
-
#define RUBY_DEBUG_H
|
14
|
-
|
15
|
-
#include "ruby/ruby.h"
|
16
|
-
#include "node.h"
|
17
|
-
|
18
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
19
|
-
|
20
|
-
#define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
|
21
|
-
#define dp(v) ruby_debug_print_value(-1, 0, "", (v))
|
22
|
-
#define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
|
23
|
-
#define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
|
24
|
-
|
25
|
-
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
|
26
|
-
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
|
27
|
-
NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
|
28
|
-
int ruby_debug_print_indent(int level, int debug_level, int indent_level);
|
29
|
-
void ruby_debug_gc_check_func(void);
|
30
|
-
void ruby_set_debug_option(const char *str);
|
31
|
-
|
32
|
-
RUBY_SYMBOL_EXPORT_END
|
33
|
-
|
34
|
-
#endif /* RUBY_DEBUG_H */
|