debase-ruby_core_source 3.3.1 → 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.idea/vcs.xml +28 -0
- data/CHANGELOG.md +8 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/builtin.h +117 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/darray.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/dln.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/hrtime.h +227 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns.inc +251 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +9215 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/array.h +151 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/basic_operators.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/class.h +277 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/error.h +216 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/gc.h +364 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/imemo.h +240 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/io.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +273 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/object.h +62 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +186 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +25 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/string.h +160 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +78 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/vm.h +136 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal.h +112 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/iseq.h +338 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/method.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node.h +128 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node_name.inc +212 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parse.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/ast.h +4612 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/defines.h +94 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/diagnostic.h +297 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/encoding.h +248 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/node.h +57 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/options.h +204 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/pack.h +152 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/parser.h +716 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prettyprint.h +26 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prism.h +272 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_buffer.h +146 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_char.h +205 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_constant_pool.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_newline_list.h +104 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_state_stack.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string.h +150 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string_list.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strpbrk.h +43 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism_compile.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ractor_core.h +393 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regint.h +1006 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +164 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rubyparser.h +1405 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/shape.h +233 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/symbol.h +118 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_pthread.h +166 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm.inc +5436 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +614 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_core.h +2202 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_debug.h +122 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +261 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +245 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/yjit.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/builtin.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +324 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +237 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +259 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +9530 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +151 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/encoding.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +216 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +334 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +260 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/inits.h +47 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +140 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/numeric.h +274 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/object.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +117 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ruby_parser.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +297 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/signal.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/st.h +11 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +182 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +79 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/iseq.h +340 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +1419 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +255 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node.h +111 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +224 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +6245 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +206 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +433 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/encoding.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +150 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +305 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/pack.h +163 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +891 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prettyprint.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prism.h +347 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +120 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_buffer.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +205 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +226 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +174 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strpbrk.h +46 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +88 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +393 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +1010 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +165 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +1430 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +233 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +118 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +166 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +5643 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +605 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +2236 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_debug.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +272 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +253 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/yjit.h +79 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/darray.h +209 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/dln.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +324 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +237 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id.h +347 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns.inc +265 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns_info.inc +9902 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/array.h +152 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/basic_operators.h +64 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/class.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/error.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/gc.h +322 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/hash.h +192 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/imemo.h +261 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +47 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/io.h +143 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +274 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/parse.h +129 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/sanitizers.h +326 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +11 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/string.h +186 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/thread.h +85 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/vm.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +340 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/known_errors.inc +1419 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/method.h +255 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +111 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +224 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parse.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/ast.h +7524 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/defines.h +242 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/diagnostic.h +450 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/extension.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/node.h +129 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/options.h +396 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +163 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/parser.h +933 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +336 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/regexp.h +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/static_literals.h +121 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_char.h +204 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_constant_pool.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_integer.h +126 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_newline_list.h +113 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_string.h +190 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +46 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism_compile.h +99 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ractor_core.h +382 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regint.h +1006 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +165 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rubyparser.h +1350 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/shape.h +234 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/symbol.h +123 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_pthread.h +168 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm.inc +5840 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_callinfo.h +627 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_core.h +2222 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_insnhelper.h +277 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vmtc.inc +259 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +79 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +436 -6
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* @file pm_strpbrk.h
|
3
|
+
*
|
4
|
+
* A custom strpbrk implementation.
|
5
|
+
*/
|
6
|
+
#ifndef PRISM_STRPBRK_H
|
7
|
+
#define PRISM_STRPBRK_H
|
8
|
+
|
9
|
+
#include "prism/defines.h"
|
10
|
+
#include "prism/parser.h"
|
11
|
+
|
12
|
+
#include <stddef.h>
|
13
|
+
#include <string.h>
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Here we have rolled our own version of strpbrk. The standard library strpbrk
|
17
|
+
* has undefined behavior when the source string is not null-terminated. We want
|
18
|
+
* to support strings that are not null-terminated because pm_parse does not
|
19
|
+
* have the contract that the string is null-terminated. (This is desirable
|
20
|
+
* because it means the extension can call pm_parse with the result of a call to
|
21
|
+
* mmap).
|
22
|
+
*
|
23
|
+
* The standard library strpbrk also does not support passing a maximum length
|
24
|
+
* to search. We want to support this for the reason mentioned above, but we
|
25
|
+
* also don't want it to stop on null bytes. Ruby actually allows null bytes
|
26
|
+
* within strings, comments, regular expressions, etc. So we need to be able to
|
27
|
+
* skip past them.
|
28
|
+
*
|
29
|
+
* Finally, we want to support encodings wherein the charset could contain
|
30
|
+
* characters that are trailing bytes of multi-byte characters. For example, in
|
31
|
+
* Shift-JIS, the backslash character can be a trailing byte. In that case we
|
32
|
+
* need to take a slower path and iterate one multi-byte character at a time.
|
33
|
+
*
|
34
|
+
* @param parser The parser.
|
35
|
+
* @param source The source to search.
|
36
|
+
* @param charset The charset to search for.
|
37
|
+
* @param length The maximum number of bytes to search.
|
38
|
+
* @return A pointer to the first character in the source string that is in the
|
39
|
+
* charset, or NULL if no such character exists.
|
40
|
+
*/
|
41
|
+
const uint8_t * pm_strpbrk(const pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length);
|
42
|
+
|
43
|
+
#endif
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* @file version.h
|
3
|
+
*
|
4
|
+
* The version of the Prism library.
|
5
|
+
*/
|
6
|
+
#ifndef PRISM_VERSION_H
|
7
|
+
#define PRISM_VERSION_H
|
8
|
+
|
9
|
+
/**
|
10
|
+
* The major version of the Prism library as an int.
|
11
|
+
*/
|
12
|
+
#define PRISM_VERSION_MAJOR 0
|
13
|
+
|
14
|
+
/**
|
15
|
+
* The minor version of the Prism library as an int.
|
16
|
+
*/
|
17
|
+
#define PRISM_VERSION_MINOR 19
|
18
|
+
|
19
|
+
/**
|
20
|
+
* The patch version of the Prism library as an int.
|
21
|
+
*/
|
22
|
+
#define PRISM_VERSION_PATCH 0
|
23
|
+
|
24
|
+
/**
|
25
|
+
* The version of the Prism library as a constant string.
|
26
|
+
*/
|
27
|
+
#define PRISM_VERSION "0.19.0"
|
28
|
+
|
29
|
+
#endif
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#include "prism/prism.h"
|
2
|
+
|
3
|
+
// ScopeNodes are helper nodes, and will never be part of the AST. We manually
|
4
|
+
// declare them here to avoid generating them.
|
5
|
+
typedef struct pm_scope_node {
|
6
|
+
pm_node_t base;
|
7
|
+
struct pm_scope_node *previous;
|
8
|
+
pm_node_t *ast_node;
|
9
|
+
pm_node_t *parameters;
|
10
|
+
pm_node_t *body;
|
11
|
+
pm_constant_id_list_t locals;
|
12
|
+
pm_parser_t *parser;
|
13
|
+
|
14
|
+
// The size of the local table
|
15
|
+
// on the iseq which includes
|
16
|
+
// locals and hidden variables
|
17
|
+
int local_table_for_iseq_size;
|
18
|
+
|
19
|
+
ID *constants;
|
20
|
+
st_table *index_lookup_table;
|
21
|
+
|
22
|
+
// Some locals are defined at higher scopes than they are used. We can use
|
23
|
+
// this offset to control which parent scopes local table we should be
|
24
|
+
// referencing from the current scope.
|
25
|
+
unsigned int local_depth_offset;
|
26
|
+
} pm_scope_node_t;
|
27
|
+
|
28
|
+
void pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_t *previous, pm_parser_t *parser);
|
29
|
+
bool *rb_ruby_prism_ptr(void);
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#ifndef RUBY_PROBES_HELPER_H
|
2
|
+
#define RUBY_PROBES_HELPER_H
|
3
|
+
|
4
|
+
#include "ruby/ruby.h"
|
5
|
+
|
6
|
+
struct ruby_dtrace_method_hook_args {
|
7
|
+
const char *classname;
|
8
|
+
const char *methodname;
|
9
|
+
const char *filename;
|
10
|
+
int line_no;
|
11
|
+
volatile VALUE klass;
|
12
|
+
volatile VALUE name;
|
13
|
+
};
|
14
|
+
|
15
|
+
NOINLINE(int rb_dtrace_setup(rb_execution_context_t *, VALUE, ID, struct ruby_dtrace_method_hook_args *));
|
16
|
+
|
17
|
+
#define RUBY_DTRACE_METHOD_HOOK(name, ec, klazz, id) \
|
18
|
+
do { \
|
19
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
20
|
+
struct ruby_dtrace_method_hook_args args; \
|
21
|
+
if (rb_dtrace_setup(ec, klazz, id, &args)) { \
|
22
|
+
RUBY_DTRACE_##name(args.classname, \
|
23
|
+
args.methodname, \
|
24
|
+
args.filename, \
|
25
|
+
args.line_no); \
|
26
|
+
} \
|
27
|
+
} \
|
28
|
+
} while (0)
|
29
|
+
|
30
|
+
#define RUBY_DTRACE_METHOD_ENTRY_HOOK(ec, klass, id) \
|
31
|
+
RUBY_DTRACE_METHOD_HOOK(METHOD_ENTRY, ec, klass, id)
|
32
|
+
|
33
|
+
#define RUBY_DTRACE_METHOD_RETURN_HOOK(ec, klass, id) \
|
34
|
+
RUBY_DTRACE_METHOD_HOOK(METHOD_RETURN, ec, klass, id)
|
35
|
+
|
36
|
+
#define RUBY_DTRACE_CMETHOD_ENTRY_HOOK(ec, klass, id) \
|
37
|
+
RUBY_DTRACE_METHOD_HOOK(CMETHOD_ENTRY, ec, klass, id)
|
38
|
+
|
39
|
+
#define RUBY_DTRACE_CMETHOD_RETURN_HOOK(ec, klass, id) \
|
40
|
+
RUBY_DTRACE_METHOD_HOOK(CMETHOD_RETURN, ec, klass, id)
|
41
|
+
|
42
|
+
#endif /* RUBY_PROBES_HELPER_H */
|
@@ -0,0 +1,393 @@
|
|
1
|
+
#include "internal/gc.h"
|
2
|
+
#include "ruby/ruby.h"
|
3
|
+
#include "ruby/ractor.h"
|
4
|
+
#include "vm_core.h"
|
5
|
+
#include "id_table.h"
|
6
|
+
#include "vm_debug.h"
|
7
|
+
|
8
|
+
#ifndef RACTOR_CHECK_MODE
|
9
|
+
#define RACTOR_CHECK_MODE (VM_CHECK_MODE || RUBY_DEBUG) && (SIZEOF_UINT64_T == SIZEOF_VALUE)
|
10
|
+
#endif
|
11
|
+
|
12
|
+
enum rb_ractor_basket_type {
|
13
|
+
// basket is empty
|
14
|
+
basket_type_none,
|
15
|
+
|
16
|
+
// value is available
|
17
|
+
basket_type_ref,
|
18
|
+
basket_type_copy,
|
19
|
+
basket_type_move,
|
20
|
+
basket_type_will,
|
21
|
+
|
22
|
+
// basket should be deleted
|
23
|
+
basket_type_deleted,
|
24
|
+
|
25
|
+
// basket is reserved
|
26
|
+
basket_type_reserved,
|
27
|
+
|
28
|
+
// take_basket is available
|
29
|
+
basket_type_take_basket,
|
30
|
+
|
31
|
+
// basket is keeping by yielding ractor
|
32
|
+
basket_type_yielding,
|
33
|
+
};
|
34
|
+
|
35
|
+
// per ractor taking configuration
|
36
|
+
struct rb_ractor_selector_take_config {
|
37
|
+
bool closed;
|
38
|
+
bool oneshot;
|
39
|
+
};
|
40
|
+
|
41
|
+
struct rb_ractor_basket {
|
42
|
+
union {
|
43
|
+
enum rb_ractor_basket_type e;
|
44
|
+
rb_atomic_t atomic;
|
45
|
+
} type;
|
46
|
+
VALUE sender;
|
47
|
+
|
48
|
+
union {
|
49
|
+
struct {
|
50
|
+
VALUE v;
|
51
|
+
bool exception;
|
52
|
+
} send;
|
53
|
+
|
54
|
+
struct {
|
55
|
+
struct rb_ractor_basket *basket;
|
56
|
+
struct rb_ractor_selector_take_config *config;
|
57
|
+
} take;
|
58
|
+
} p; // payload
|
59
|
+
};
|
60
|
+
|
61
|
+
static inline bool
|
62
|
+
basket_type_p(struct rb_ractor_basket *b, enum rb_ractor_basket_type type)
|
63
|
+
{
|
64
|
+
return b->type.e == type;
|
65
|
+
}
|
66
|
+
|
67
|
+
static inline bool
|
68
|
+
basket_none_p(struct rb_ractor_basket *b)
|
69
|
+
{
|
70
|
+
return basket_type_p(b, basket_type_none);
|
71
|
+
}
|
72
|
+
|
73
|
+
struct rb_ractor_queue {
|
74
|
+
struct rb_ractor_basket *baskets;
|
75
|
+
int start;
|
76
|
+
int cnt;
|
77
|
+
int size;
|
78
|
+
unsigned int serial;
|
79
|
+
unsigned int reserved_cnt;
|
80
|
+
};
|
81
|
+
|
82
|
+
enum rb_ractor_wait_status {
|
83
|
+
wait_none = 0x00,
|
84
|
+
wait_receiving = 0x01,
|
85
|
+
wait_taking = 0x02,
|
86
|
+
wait_yielding = 0x04,
|
87
|
+
wait_moving = 0x08,
|
88
|
+
};
|
89
|
+
|
90
|
+
enum rb_ractor_wakeup_status {
|
91
|
+
wakeup_none,
|
92
|
+
wakeup_by_send,
|
93
|
+
wakeup_by_yield,
|
94
|
+
wakeup_by_take,
|
95
|
+
wakeup_by_close,
|
96
|
+
wakeup_by_interrupt,
|
97
|
+
wakeup_by_retry,
|
98
|
+
};
|
99
|
+
|
100
|
+
struct rb_ractor_sync {
|
101
|
+
// ractor lock
|
102
|
+
rb_nativethread_lock_t lock;
|
103
|
+
#if RACTOR_CHECK_MODE > 0
|
104
|
+
VALUE locked_by;
|
105
|
+
#endif
|
106
|
+
|
107
|
+
bool incoming_port_closed;
|
108
|
+
bool outgoing_port_closed;
|
109
|
+
|
110
|
+
// All sent messages will be pushed into recv_queue
|
111
|
+
struct rb_ractor_queue recv_queue;
|
112
|
+
|
113
|
+
// The following ractors waiting for the yielding by this ractor
|
114
|
+
struct rb_ractor_queue takers_queue;
|
115
|
+
|
116
|
+
// Enabled if the ractor already terminated and not taken yet.
|
117
|
+
struct rb_ractor_basket will_basket;
|
118
|
+
|
119
|
+
struct ractor_wait {
|
120
|
+
enum rb_ractor_wait_status status;
|
121
|
+
enum rb_ractor_wakeup_status wakeup_status;
|
122
|
+
rb_thread_t *waiting_thread;
|
123
|
+
} wait;
|
124
|
+
|
125
|
+
#ifndef RUBY_THREAD_PTHREAD_H
|
126
|
+
rb_nativethread_cond_t cond;
|
127
|
+
#endif
|
128
|
+
};
|
129
|
+
|
130
|
+
// created
|
131
|
+
// | ready to run
|
132
|
+
// ====================== inserted to vm->ractor
|
133
|
+
// v
|
134
|
+
// blocking <---+ all threads are blocking
|
135
|
+
// | |
|
136
|
+
// v |
|
137
|
+
// running -----+
|
138
|
+
// | all threads are terminated.
|
139
|
+
// ====================== removed from vm->ractor
|
140
|
+
// v
|
141
|
+
// terminated
|
142
|
+
//
|
143
|
+
// status is protected by VM lock (global state)
|
144
|
+
enum ractor_status {
|
145
|
+
ractor_created,
|
146
|
+
ractor_running,
|
147
|
+
ractor_blocking,
|
148
|
+
ractor_terminated,
|
149
|
+
};
|
150
|
+
|
151
|
+
struct rb_ractor_struct {
|
152
|
+
struct rb_ractor_pub pub;
|
153
|
+
|
154
|
+
struct rb_ractor_sync sync;
|
155
|
+
VALUE receiving_mutex;
|
156
|
+
|
157
|
+
// vm wide barrier synchronization
|
158
|
+
rb_nativethread_cond_t barrier_wait_cond;
|
159
|
+
|
160
|
+
// thread management
|
161
|
+
struct {
|
162
|
+
struct ccan_list_head set;
|
163
|
+
unsigned int cnt;
|
164
|
+
unsigned int blocking_cnt;
|
165
|
+
unsigned int sleeper;
|
166
|
+
struct rb_thread_sched sched;
|
167
|
+
rb_execution_context_t *running_ec;
|
168
|
+
rb_thread_t *main;
|
169
|
+
} threads;
|
170
|
+
VALUE thgroup_default;
|
171
|
+
|
172
|
+
VALUE name;
|
173
|
+
VALUE loc;
|
174
|
+
|
175
|
+
enum ractor_status status_;
|
176
|
+
|
177
|
+
struct ccan_list_node vmlr_node;
|
178
|
+
|
179
|
+
// ractor local data
|
180
|
+
|
181
|
+
st_table *local_storage;
|
182
|
+
struct rb_id_table *idkey_local_storage;
|
183
|
+
|
184
|
+
VALUE r_stdin;
|
185
|
+
VALUE r_stdout;
|
186
|
+
VALUE r_stderr;
|
187
|
+
VALUE verbose;
|
188
|
+
VALUE debug;
|
189
|
+
|
190
|
+
rb_ractor_newobj_cache_t newobj_cache;
|
191
|
+
|
192
|
+
// gc.c rb_objspace_reachable_objects_from
|
193
|
+
struct gc_mark_func_data_struct {
|
194
|
+
void *data;
|
195
|
+
void (*mark_func)(VALUE v, void *data);
|
196
|
+
} *mfd;
|
197
|
+
}; // rb_ractor_t is defined in vm_core.h
|
198
|
+
|
199
|
+
|
200
|
+
static inline VALUE
|
201
|
+
rb_ractor_self(const rb_ractor_t *r)
|
202
|
+
{
|
203
|
+
return r->pub.self;
|
204
|
+
}
|
205
|
+
|
206
|
+
rb_ractor_t *rb_ractor_main_alloc(void);
|
207
|
+
void rb_ractor_main_setup(rb_vm_t *vm, rb_ractor_t *main_ractor, rb_thread_t *main_thread);
|
208
|
+
void rb_ractor_atexit(rb_execution_context_t *ec, VALUE result);
|
209
|
+
void rb_ractor_atexit_exception(rb_execution_context_t *ec);
|
210
|
+
void rb_ractor_teardown(rb_execution_context_t *ec);
|
211
|
+
void rb_ractor_receive_parameters(rb_execution_context_t *ec, rb_ractor_t *g, int len, VALUE *ptr);
|
212
|
+
void rb_ractor_send_parameters(rb_execution_context_t *ec, rb_ractor_t *g, VALUE args);
|
213
|
+
|
214
|
+
VALUE rb_thread_create_ractor(rb_ractor_t *g, VALUE args, VALUE proc); // defined in thread.c
|
215
|
+
|
216
|
+
int rb_ractor_living_thread_num(const rb_ractor_t *);
|
217
|
+
VALUE rb_ractor_thread_list(void);
|
218
|
+
bool rb_ractor_p(VALUE rv);
|
219
|
+
|
220
|
+
void rb_ractor_living_threads_init(rb_ractor_t *r);
|
221
|
+
void rb_ractor_living_threads_insert(rb_ractor_t *r, rb_thread_t *th);
|
222
|
+
void rb_ractor_living_threads_remove(rb_ractor_t *r, rb_thread_t *th);
|
223
|
+
void rb_ractor_blocking_threads_inc(rb_ractor_t *r, const char *file, int line); // TODO: file, line only for RUBY_DEBUG_LOG
|
224
|
+
void rb_ractor_blocking_threads_dec(rb_ractor_t *r, const char *file, int line); // TODO: file, line only for RUBY_DEBUG_LOG
|
225
|
+
|
226
|
+
void rb_ractor_vm_barrier_interrupt_running_thread(rb_ractor_t *r);
|
227
|
+
void rb_ractor_terminate_interrupt_main_thread(rb_ractor_t *r);
|
228
|
+
void rb_ractor_terminate_all(void);
|
229
|
+
bool rb_ractor_main_p_(void);
|
230
|
+
void rb_ractor_finish_marking(void);
|
231
|
+
void rb_ractor_atfork(rb_vm_t *vm, rb_thread_t *th);
|
232
|
+
|
233
|
+
VALUE rb_ractor_ensure_shareable(VALUE obj, VALUE name);
|
234
|
+
|
235
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
236
|
+
bool rb_ractor_shareable_p_continue(VALUE obj);
|
237
|
+
|
238
|
+
// THIS FUNCTION SHOULD NOT CALL WHILE INCREMENTAL MARKING!!
|
239
|
+
// This function is for T_DATA::free_func
|
240
|
+
void rb_ractor_local_storage_delkey(rb_ractor_local_key_t key);
|
241
|
+
|
242
|
+
RUBY_SYMBOL_EXPORT_END
|
243
|
+
|
244
|
+
static inline bool
|
245
|
+
rb_ractor_main_p(void)
|
246
|
+
{
|
247
|
+
if (ruby_single_main_ractor) {
|
248
|
+
return true;
|
249
|
+
}
|
250
|
+
else {
|
251
|
+
return rb_ractor_main_p_();
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
static inline bool
|
256
|
+
rb_ractor_status_p(rb_ractor_t *r, enum ractor_status status)
|
257
|
+
{
|
258
|
+
return r->status_ == status;
|
259
|
+
}
|
260
|
+
|
261
|
+
static inline void
|
262
|
+
rb_ractor_sleeper_threads_inc(rb_ractor_t *r)
|
263
|
+
{
|
264
|
+
r->threads.sleeper++;
|
265
|
+
}
|
266
|
+
|
267
|
+
static inline void
|
268
|
+
rb_ractor_sleeper_threads_dec(rb_ractor_t *r)
|
269
|
+
{
|
270
|
+
r->threads.sleeper--;
|
271
|
+
}
|
272
|
+
|
273
|
+
static inline void
|
274
|
+
rb_ractor_sleeper_threads_clear(rb_ractor_t *r)
|
275
|
+
{
|
276
|
+
r->threads.sleeper = 0;
|
277
|
+
}
|
278
|
+
|
279
|
+
static inline int
|
280
|
+
rb_ractor_sleeper_thread_num(rb_ractor_t *r)
|
281
|
+
{
|
282
|
+
return r->threads.sleeper;
|
283
|
+
}
|
284
|
+
|
285
|
+
static inline void
|
286
|
+
rb_ractor_thread_switch(rb_ractor_t *cr, rb_thread_t *th)
|
287
|
+
{
|
288
|
+
RUBY_DEBUG_LOG("th:%d->%u%s",
|
289
|
+
cr->threads.running_ec ? (int)rb_th_serial(cr->threads.running_ec->thread_ptr) : -1,
|
290
|
+
rb_th_serial(th), cr->threads.running_ec == th->ec ? " (same)" : "");
|
291
|
+
|
292
|
+
if (cr->threads.running_ec != th->ec) {
|
293
|
+
if (0) {
|
294
|
+
ruby_debug_printf("rb_ractor_thread_switch ec:%p->%p\n",
|
295
|
+
(void *)cr->threads.running_ec, (void *)th->ec);
|
296
|
+
}
|
297
|
+
}
|
298
|
+
else {
|
299
|
+
return;
|
300
|
+
}
|
301
|
+
|
302
|
+
if (cr->threads.running_ec != th->ec) {
|
303
|
+
th->running_time_us = 0;
|
304
|
+
}
|
305
|
+
|
306
|
+
cr->threads.running_ec = th->ec;
|
307
|
+
|
308
|
+
VM_ASSERT(cr == GET_RACTOR());
|
309
|
+
}
|
310
|
+
|
311
|
+
#define rb_ractor_set_current_ec(cr, ec) rb_ractor_set_current_ec_(cr, ec, __FILE__, __LINE__)
|
312
|
+
|
313
|
+
static inline void
|
314
|
+
rb_ractor_set_current_ec_(rb_ractor_t *cr, rb_execution_context_t *ec, const char *file, int line)
|
315
|
+
{
|
316
|
+
#ifdef RB_THREAD_LOCAL_SPECIFIER
|
317
|
+
|
318
|
+
# ifdef __APPLE__
|
319
|
+
rb_current_ec_set(ec);
|
320
|
+
# else
|
321
|
+
ruby_current_ec = ec;
|
322
|
+
# endif
|
323
|
+
|
324
|
+
#else
|
325
|
+
native_tls_set(ruby_current_ec_key, ec);
|
326
|
+
#endif
|
327
|
+
RUBY_DEBUG_LOG2(file, line, "ec:%p->%p", (void *)cr->threads.running_ec, (void *)ec);
|
328
|
+
VM_ASSERT(ec == NULL || cr->threads.running_ec != ec);
|
329
|
+
cr->threads.running_ec = ec;
|
330
|
+
}
|
331
|
+
|
332
|
+
void rb_vm_ractor_blocking_cnt_inc(rb_vm_t *vm, rb_ractor_t *cr, const char *file, int line);
|
333
|
+
void rb_vm_ractor_blocking_cnt_dec(rb_vm_t *vm, rb_ractor_t *cr, const char *file, int line);
|
334
|
+
|
335
|
+
static inline uint32_t
|
336
|
+
rb_ractor_id(const rb_ractor_t *r)
|
337
|
+
{
|
338
|
+
return r->pub.id;
|
339
|
+
}
|
340
|
+
|
341
|
+
#if RACTOR_CHECK_MODE > 0
|
342
|
+
# define RACTOR_BELONGING_ID(obj) (*(uint32_t *)(((uintptr_t)(obj)) + rb_gc_obj_slot_size(obj)))
|
343
|
+
|
344
|
+
uint32_t rb_ractor_current_id(void);
|
345
|
+
|
346
|
+
static inline void
|
347
|
+
rb_ractor_setup_belonging_to(VALUE obj, uint32_t rid)
|
348
|
+
{
|
349
|
+
RACTOR_BELONGING_ID(obj) = rid;
|
350
|
+
}
|
351
|
+
|
352
|
+
static inline void
|
353
|
+
rb_ractor_setup_belonging(VALUE obj)
|
354
|
+
{
|
355
|
+
rb_ractor_setup_belonging_to(obj, rb_ractor_current_id());
|
356
|
+
}
|
357
|
+
|
358
|
+
static inline uint32_t
|
359
|
+
rb_ractor_belonging(VALUE obj)
|
360
|
+
{
|
361
|
+
if (SPECIAL_CONST_P(obj) || RB_OBJ_SHAREABLE_P(obj)) {
|
362
|
+
return 0;
|
363
|
+
}
|
364
|
+
else {
|
365
|
+
return RACTOR_BELONGING_ID(obj);
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
static inline VALUE
|
370
|
+
rb_ractor_confirm_belonging(VALUE obj)
|
371
|
+
{
|
372
|
+
uint32_t id = rb_ractor_belonging(obj);
|
373
|
+
|
374
|
+
if (id == 0) {
|
375
|
+
if (UNLIKELY(!rb_ractor_shareable_p(obj))) {
|
376
|
+
rp(obj);
|
377
|
+
rb_bug("id == 0 but not shareable");
|
378
|
+
}
|
379
|
+
}
|
380
|
+
else if (UNLIKELY(id != rb_ractor_current_id())) {
|
381
|
+
if (rb_ractor_shareable_p(obj)) {
|
382
|
+
// ok
|
383
|
+
}
|
384
|
+
else {
|
385
|
+
rp(obj);
|
386
|
+
rb_bug("rb_ractor_confirm_belonging object-ractor id:%u, current-ractor id:%u", id, rb_ractor_current_id());
|
387
|
+
}
|
388
|
+
}
|
389
|
+
return obj;
|
390
|
+
}
|
391
|
+
#else
|
392
|
+
#define rb_ractor_confirm_belonging(obj) obj
|
393
|
+
#endif
|