debase-ruby_core_source 3.3.6 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of debase-ruby_core_source might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/builtin.h +7 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/darray.h +1 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/id.h +5 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns.inc +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns_info.inc +310 -175
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/basic_operators.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/bits.h +82 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/encoding.h +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/error.h +26 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/fixnum.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/gc.h +14 -6
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/imemo.h +6 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/io.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/parse.h +2 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/proc.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/ractor.h +4 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/sanitizers.h +31 -39
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/string.h +22 -10
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/thread.h +23 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/vm.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/method.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/optunifs.inc +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/parse.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/ast.h +427 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/defines.h +8 -7
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/diagnostic.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/extension.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prism.h +47 -11
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/version.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism_compile.h +5 -5
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/ractor_core.h +6 -6
- data/lib/debase/ruby_core_source/ruby-3.4.0/revision.h +5 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/rubyparser.h +3 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/thread_pthread.h +0 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/version.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm.inc +151 -88
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_core.h +40 -12
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_sync.h +3 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vmtc.inc +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/yjit.h +1 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +147 -293
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +0 -343
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +0 -151
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +0 -568
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +0 -283
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +0 -216
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +0 -184
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +0 -334
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +0 -191
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +0 -260
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +0 -140
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +0 -117
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +0 -6
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +0 -297
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +0 -182
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +0 -79
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +0 -137
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +0 -255
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +0 -6245
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +0 -206
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +0 -433
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +0 -150
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +0 -305
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +0 -891
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +0 -120
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +0 -205
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +0 -226
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +0 -119
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +0 -102
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +0 -174
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +0 -88
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +0 -393
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +0 -1430
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +0 -233
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +0 -166
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +0 -2236
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +0 -40
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +0 -142
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +0 -791
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +0 -17
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +0 -39
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +0 -244
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +0 -65
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +0 -107
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +0 -35
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +0 -18
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +0 -21
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +0 -33
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +0 -38
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +0 -47
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +0 -18
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +0 -274
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +0 -30
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +0 -124
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +0 -17
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +0 -40
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +0 -71
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +0 -28
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +0 -102
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +0 -24
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +0 -11
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +0 -127
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +0 -45
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +0 -27
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +0 -72
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +0 -108
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +0 -340
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +0 -111
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +0 -162
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +0 -106
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +0 -283
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +0 -163
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +0 -218
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +0 -97
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +0 -32
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +0 -46
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +0 -14
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +0 -21
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +0 -124
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +0 -67
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/addr2line.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/check_type/check_type.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/container_of/container_of.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/list/list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/str/str.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/constant.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/debug_counter.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/dln.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/encindex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/eval_intern.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/hrtime.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/id_table.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/array.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/bignum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/class.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cmdlineopt.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compar.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compile.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compilers.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/complex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cont.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/dir.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enumerator.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/eval.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/file.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/hash.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/inits.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/load.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/loadpath.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/math.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/missing.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/numeric.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/object.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/process.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/random.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/range.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/rational.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/re.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/ruby_parser.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/serial.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/signal.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/st.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/static_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/struct.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/symbol.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/time.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/transcode.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/util.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/variable.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/warnings.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/iseq.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/known_errors.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node_name.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/optinsn.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_bits.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_st.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_value.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/encoding.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/options.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/pack.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/parser.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prettyprint.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/regexp.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/static_literals.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_buffer.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_char.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_constant_pool.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_integer.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_memchr.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_newline_list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_string.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/probes_helper.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regenc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/regint.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regparse.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit_c.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_atomic.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/shape.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/siphash.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/symbol.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_none.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_win32.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/timev.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/transcode_data.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/variable.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_call_iseq_optimized.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_callinfo.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_debug.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_exec.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_insnhelper.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_opts.h +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_RJIT_H
|
|
2
|
-
#define RUBY_RJIT_H 1
|
|
3
|
-
/**********************************************************************
|
|
4
|
-
|
|
5
|
-
rjit.h - Interface to RJIT
|
|
6
|
-
|
|
7
|
-
Copyright (C) 2023 Takashi Kokubun <k0kubun@ruby-lang.org>.
|
|
8
|
-
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
|
|
11
|
-
#include "ruby/internal/config.h" // defines USE_RJIT
|
|
12
|
-
#include "ruby/internal/stdbool.h"
|
|
13
|
-
#include "vm_core.h"
|
|
14
|
-
|
|
15
|
-
# if USE_RJIT
|
|
16
|
-
|
|
17
|
-
#include "ruby.h"
|
|
18
|
-
#include "vm_core.h"
|
|
19
|
-
|
|
20
|
-
// RJIT options which can be defined on the MRI command line.
|
|
21
|
-
struct rb_rjit_options {
|
|
22
|
-
// Converted from "rjit" feature flag to tell the enablement
|
|
23
|
-
// information to ruby_show_version().
|
|
24
|
-
bool on;
|
|
25
|
-
// Size of executable memory block in MiB
|
|
26
|
-
unsigned int exec_mem_size;
|
|
27
|
-
// Number of calls to trigger JIT compilation
|
|
28
|
-
unsigned int call_threshold;
|
|
29
|
-
// Collect RJIT statistics
|
|
30
|
-
bool stats;
|
|
31
|
-
// Do not start RJIT until RJIT.enable is called
|
|
32
|
-
bool disable;
|
|
33
|
-
// Allow TracePoint during JIT compilation
|
|
34
|
-
bool trace;
|
|
35
|
-
// Trace side exit locations
|
|
36
|
-
bool trace_exits;
|
|
37
|
-
// Enable disasm of all JIT code
|
|
38
|
-
bool dump_disasm;
|
|
39
|
-
// Verify context objects
|
|
40
|
-
bool verify_ctx;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
44
|
-
RUBY_EXTERN struct rb_rjit_options rb_rjit_opts;
|
|
45
|
-
RUBY_EXTERN bool rb_rjit_call_p;
|
|
46
|
-
|
|
47
|
-
#define rb_rjit_call_threshold() rb_rjit_opts.call_threshold
|
|
48
|
-
|
|
49
|
-
extern void rb_rjit_compile(const rb_iseq_t *iseq);
|
|
50
|
-
RUBY_SYMBOL_EXPORT_END
|
|
51
|
-
|
|
52
|
-
extern void rb_rjit_cancel_all(const char *reason);
|
|
53
|
-
extern void rb_rjit_init(const struct rb_rjit_options *opts);
|
|
54
|
-
extern void rb_rjit_free_iseq(const rb_iseq_t *iseq);
|
|
55
|
-
extern void rb_rjit_iseq_update_references(struct rb_iseq_constant_body *const body);
|
|
56
|
-
extern void rb_rjit_mark(void);
|
|
57
|
-
extern void rb_rjit_iseq_mark(VALUE rjit_blocks);
|
|
58
|
-
extern void rjit_notify_waitpid(int exit_code);
|
|
59
|
-
|
|
60
|
-
extern void rb_rjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop);
|
|
61
|
-
extern void rb_rjit_cme_invalidate(rb_callable_method_entry_t *cme);
|
|
62
|
-
extern void rb_rjit_before_ractor_spawn(void);
|
|
63
|
-
extern void rb_rjit_constant_state_changed(ID id);
|
|
64
|
-
extern void rb_rjit_constant_ic_update(const rb_iseq_t *const iseq, IC ic, unsigned insn_idx);
|
|
65
|
-
extern void rb_rjit_tracing_invalidate_all(rb_event_flag_t new_iseq_events);
|
|
66
|
-
|
|
67
|
-
extern void rb_rjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop);
|
|
68
|
-
extern void rb_rjit_before_ractor_spawn(void);
|
|
69
|
-
extern void rb_rjit_tracing_invalidate_all(rb_event_flag_t new_iseq_events);
|
|
70
|
-
extern void rb_rjit_collect_vm_usage_insn(int insn);
|
|
71
|
-
|
|
72
|
-
extern bool rb_rjit_enabled;
|
|
73
|
-
extern bool rb_rjit_stats_enabled;
|
|
74
|
-
extern bool rb_rjit_trace_exits_enabled;
|
|
75
|
-
|
|
76
|
-
# else // USE_RJIT
|
|
77
|
-
|
|
78
|
-
static inline void rb_rjit_compile(const rb_iseq_t *iseq){}
|
|
79
|
-
|
|
80
|
-
static inline void rb_rjit_cancel_all(const char *reason){}
|
|
81
|
-
static inline void rb_rjit_free_iseq(const rb_iseq_t *iseq){}
|
|
82
|
-
static inline void rb_rjit_mark(void){}
|
|
83
|
-
|
|
84
|
-
static inline void rb_rjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop) {}
|
|
85
|
-
static inline void rb_rjit_cme_invalidate(rb_callable_method_entry_t *cme) {}
|
|
86
|
-
static inline void rb_rjit_before_ractor_spawn(void) {}
|
|
87
|
-
static inline void rb_rjit_constant_state_changed(ID id) {}
|
|
88
|
-
static inline void rb_rjit_constant_ic_update(const rb_iseq_t *const iseq, IC ic, unsigned insn_idx) {}
|
|
89
|
-
static inline void rb_rjit_tracing_invalidate_all(rb_event_flag_t new_iseq_events) {}
|
|
90
|
-
|
|
91
|
-
#define rb_rjit_enabled false
|
|
92
|
-
#define rb_rjit_call_p false
|
|
93
|
-
#define rb_rjit_stats_enabled false
|
|
94
|
-
#define rb_rjit_trace_exits_enabled false
|
|
95
|
-
|
|
96
|
-
#define rb_rjit_call_threshold() UINT_MAX
|
|
97
|
-
|
|
98
|
-
static inline void rb_rjit_collect_vm_usage_insn(int insn) {}
|
|
99
|
-
|
|
100
|
-
# endif // USE_RJIT
|
|
101
|
-
#endif // RUBY_RJIT_H
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
// This file is parsed by tool/rjit/generate.rb to generate rjit_c.rb
|
|
2
|
-
#ifndef RJIT_C_H
|
|
3
|
-
#define RJIT_C_H
|
|
4
|
-
|
|
5
|
-
#include "ruby/internal/config.h"
|
|
6
|
-
#include "internal/string.h"
|
|
7
|
-
#include "internal/struct.h"
|
|
8
|
-
#include "internal/variable.h"
|
|
9
|
-
#include "vm_core.h"
|
|
10
|
-
#include "vm_callinfo.h"
|
|
11
|
-
#include "builtin.h"
|
|
12
|
-
#include "ccan/list/list.h"
|
|
13
|
-
#include "rjit.h"
|
|
14
|
-
#include "shape.h"
|
|
15
|
-
|
|
16
|
-
extern uint8_t *rb_rjit_mem_block;
|
|
17
|
-
|
|
18
|
-
#define RJIT_RUNTIME_COUNTERS(...) struct rb_rjit_runtime_counters { size_t __VA_ARGS__; };
|
|
19
|
-
RJIT_RUNTIME_COUNTERS(
|
|
20
|
-
rjit_insns_count,
|
|
21
|
-
|
|
22
|
-
send_args_splat_kw_splat,
|
|
23
|
-
send_args_splat,
|
|
24
|
-
send_args_splat_not_array,
|
|
25
|
-
send_args_splat_length_not_equal,
|
|
26
|
-
send_args_splat_cfunc_var_args,
|
|
27
|
-
send_args_splat_arity_error,
|
|
28
|
-
send_args_splat_ruby2_hash,
|
|
29
|
-
send_args_splat_cfunc_zuper,
|
|
30
|
-
send_args_splat_cfunc_ruby2_keywords,
|
|
31
|
-
send_kw_splat,
|
|
32
|
-
send_kwarg,
|
|
33
|
-
send_klass_megamorphic,
|
|
34
|
-
send_missing_cme,
|
|
35
|
-
send_private,
|
|
36
|
-
send_protected_check_failed,
|
|
37
|
-
send_tailcall,
|
|
38
|
-
send_notimplemented,
|
|
39
|
-
send_missing,
|
|
40
|
-
send_bmethod,
|
|
41
|
-
send_alias,
|
|
42
|
-
send_undef,
|
|
43
|
-
send_zsuper,
|
|
44
|
-
send_refined,
|
|
45
|
-
send_stackoverflow,
|
|
46
|
-
send_arity,
|
|
47
|
-
send_c_tracing,
|
|
48
|
-
send_is_a_class_mismatch,
|
|
49
|
-
send_instance_of_class_mismatch,
|
|
50
|
-
send_keywords,
|
|
51
|
-
|
|
52
|
-
send_blockiseq,
|
|
53
|
-
send_block_handler,
|
|
54
|
-
send_block_setup,
|
|
55
|
-
send_block_not_nil,
|
|
56
|
-
send_block_not_proxy,
|
|
57
|
-
send_block_arg,
|
|
58
|
-
|
|
59
|
-
send_iseq_kwparam,
|
|
60
|
-
send_iseq_accepts_no_kwarg,
|
|
61
|
-
send_iseq_has_opt,
|
|
62
|
-
send_iseq_has_kwrest,
|
|
63
|
-
send_iseq_ruby2_keywords,
|
|
64
|
-
send_iseq_has_rest_and_captured,
|
|
65
|
-
send_iseq_has_rest_and_kw_supplied,
|
|
66
|
-
send_iseq_has_no_kw,
|
|
67
|
-
send_iseq_zsuper,
|
|
68
|
-
send_iseq_materialized_block,
|
|
69
|
-
send_iseq_has_rest,
|
|
70
|
-
send_iseq_block_arg0_splat,
|
|
71
|
-
send_iseq_kw_call,
|
|
72
|
-
send_iseq_kw_splat,
|
|
73
|
-
send_iseq_splat,
|
|
74
|
-
send_iseq_has_rest_and_optional,
|
|
75
|
-
send_iseq_arity_error,
|
|
76
|
-
send_iseq_missing_optional_kw,
|
|
77
|
-
send_iseq_too_many_kwargs,
|
|
78
|
-
send_iseq_kwargs_mismatch,
|
|
79
|
-
send_iseq_splat_with_kw,
|
|
80
|
-
send_iseq_splat_arity_error,
|
|
81
|
-
send_iseq_has_rest_and_splat_not_equal,
|
|
82
|
-
|
|
83
|
-
send_cfunc_variadic,
|
|
84
|
-
send_cfunc_too_many_args,
|
|
85
|
-
send_cfunc_ruby_array_varg,
|
|
86
|
-
send_cfunc_splat_with_kw,
|
|
87
|
-
send_cfunc_tracing,
|
|
88
|
-
send_cfunc_argc_mismatch,
|
|
89
|
-
send_cfunc_toomany_args,
|
|
90
|
-
|
|
91
|
-
send_attrset_splat,
|
|
92
|
-
send_attrset_kwarg,
|
|
93
|
-
send_attrset_method,
|
|
94
|
-
|
|
95
|
-
send_ivar_splat,
|
|
96
|
-
send_ivar_opt_send,
|
|
97
|
-
|
|
98
|
-
send_optimized_send_no_args,
|
|
99
|
-
send_optimized_send_not_sym_or_str,
|
|
100
|
-
send_optimized_send_mid_class_changed,
|
|
101
|
-
send_optimized_send_mid_id_changed,
|
|
102
|
-
send_optimized_send_null_mid,
|
|
103
|
-
send_optimized_send_send,
|
|
104
|
-
send_optimized_call_block,
|
|
105
|
-
send_optimized_call_kwarg,
|
|
106
|
-
send_optimized_call_splat,
|
|
107
|
-
send_optimized_struct_aref_error,
|
|
108
|
-
|
|
109
|
-
send_optimized_block_call,
|
|
110
|
-
send_optimized_struct_aset,
|
|
111
|
-
|
|
112
|
-
send_bmethod_not_iseq,
|
|
113
|
-
send_bmethod_blockarg,
|
|
114
|
-
|
|
115
|
-
invokesuper_me_changed,
|
|
116
|
-
invokesuper_block,
|
|
117
|
-
|
|
118
|
-
invokeblock_none,
|
|
119
|
-
invokeblock_symbol,
|
|
120
|
-
invokeblock_proc,
|
|
121
|
-
invokeblock_tag_changed,
|
|
122
|
-
invokeblock_iseq_block_changed,
|
|
123
|
-
invokeblock_iseq_arity,
|
|
124
|
-
invokeblock_iseq_arg0_splat,
|
|
125
|
-
invokeblock_ifunc_args_splat,
|
|
126
|
-
invokeblock_ifunc_kw_splat,
|
|
127
|
-
invokeblock_iseq_arg0_args_splat,
|
|
128
|
-
invokeblock_iseq_arg0_has_kw,
|
|
129
|
-
|
|
130
|
-
getivar_megamorphic,
|
|
131
|
-
getivar_not_heap,
|
|
132
|
-
getivar_special_const,
|
|
133
|
-
getivar_too_complex,
|
|
134
|
-
|
|
135
|
-
optaref_arg_not_fixnum,
|
|
136
|
-
optaref_argc_not_one,
|
|
137
|
-
optaref_recv_not_array,
|
|
138
|
-
optaref_recv_not_hash,
|
|
139
|
-
optaref_send,
|
|
140
|
-
|
|
141
|
-
optgetconst_not_cached,
|
|
142
|
-
optgetconst_cref,
|
|
143
|
-
optgetconst_cache_miss,
|
|
144
|
-
|
|
145
|
-
setivar_frozen,
|
|
146
|
-
setivar_not_heap,
|
|
147
|
-
setivar_megamorphic,
|
|
148
|
-
setivar_too_complex,
|
|
149
|
-
|
|
150
|
-
expandarray_splat,
|
|
151
|
-
expandarray_postarg,
|
|
152
|
-
expandarray_not_array,
|
|
153
|
-
expandarray_rhs_too_small,
|
|
154
|
-
|
|
155
|
-
getblockpp_block_param_modified,
|
|
156
|
-
getblockpp_block_handler_none,
|
|
157
|
-
getblockpp_not_gc_guarded,
|
|
158
|
-
getblockpp_not_iseq_block,
|
|
159
|
-
|
|
160
|
-
compiled_block_count
|
|
161
|
-
)
|
|
162
|
-
#undef RJIT_RUNTIME_COUNTERS
|
|
163
|
-
extern struct rb_rjit_runtime_counters rb_rjit_counters;
|
|
164
|
-
|
|
165
|
-
#endif /* RJIT_C_H */
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_TOPLEVEL_ASSERT_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define RUBY_TOPLEVEL_ASSERT_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
*/
|
|
10
|
-
#include "ruby/assert.h"
|
|
11
|
-
#undef assert
|
|
12
|
-
#define assert RUBY_ASSERT_NDEBUG
|
|
13
|
-
|
|
14
|
-
#endif /* RUBY_TOPLEVEL_ASSERT_H */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#include "ruby/atomic.h"
|
|
2
|
-
|
|
3
|
-
/* shim macros only */
|
|
4
|
-
#define ATOMIC_ADD(var, val) RUBY_ATOMIC_ADD(var, val)
|
|
5
|
-
#define ATOMIC_CAS(var, oldval, newval) RUBY_ATOMIC_CAS(var, oldval, newval)
|
|
6
|
-
#define ATOMIC_DEC(var) RUBY_ATOMIC_DEC(var)
|
|
7
|
-
#define ATOMIC_EXCHANGE(var, val) RUBY_ATOMIC_EXCHANGE(var, val)
|
|
8
|
-
#define ATOMIC_FETCH_ADD(var, val) RUBY_ATOMIC_FETCH_ADD(var, val)
|
|
9
|
-
#define ATOMIC_FETCH_SUB(var, val) RUBY_ATOMIC_FETCH_SUB(var, val)
|
|
10
|
-
#define ATOMIC_INC(var) RUBY_ATOMIC_INC(var)
|
|
11
|
-
#define ATOMIC_OR(var, val) RUBY_ATOMIC_OR(var, val)
|
|
12
|
-
#define ATOMIC_PTR_CAS(var, oldval, newval) RUBY_ATOMIC_PTR_CAS(var, oldval, newval)
|
|
13
|
-
#define ATOMIC_PTR_EXCHANGE(var, val) RUBY_ATOMIC_PTR_EXCHANGE(var, val)
|
|
14
|
-
#define ATOMIC_SET(var, val) RUBY_ATOMIC_SET(var, val)
|
|
15
|
-
#define ATOMIC_SIZE_ADD(var, val) RUBY_ATOMIC_SIZE_ADD(var, val)
|
|
16
|
-
#define ATOMIC_SIZE_CAS(var, oldval, newval) RUBY_ATOMIC_SIZE_CAS(var, oldval, newval)
|
|
17
|
-
#define ATOMIC_SIZE_DEC(var) RUBY_ATOMIC_SIZE_DEC(var)
|
|
18
|
-
#define ATOMIC_SIZE_EXCHANGE(var, val) RUBY_ATOMIC_SIZE_EXCHANGE(var, val)
|
|
19
|
-
#define ATOMIC_SIZE_INC(var) RUBY_ATOMIC_SIZE_INC(var)
|
|
20
|
-
#define ATOMIC_SIZE_SUB(var, val) RUBY_ATOMIC_SIZE_SUB(var, val)
|
|
21
|
-
#define ATOMIC_SUB(var, val) RUBY_ATOMIC_SUB(var, val)
|
|
22
|
-
#define ATOMIC_VALUE_CAS(var, oldval, val) RUBY_ATOMIC_VALUE_CAS(var, oldval, val)
|
|
23
|
-
#define ATOMIC_VALUE_EXCHANGE(var, val) RUBY_ATOMIC_VALUE_EXCHANGE(var, val)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#ifndef SIPHASH_H
|
|
2
|
-
#define SIPHASH_H 1
|
|
3
|
-
#include <stdlib.h>
|
|
4
|
-
#ifdef HAVE_STDINT_H
|
|
5
|
-
#include <stdint.h>
|
|
6
|
-
#endif
|
|
7
|
-
#ifdef HAVE_INTTYPES_H
|
|
8
|
-
#include <inttypes.h>
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
#ifndef HAVE_UINT64_T
|
|
12
|
-
typedef struct {
|
|
13
|
-
uint32_t u32[2];
|
|
14
|
-
} sip_uint64_t;
|
|
15
|
-
#define uint64_t sip_uint64_t
|
|
16
|
-
#else
|
|
17
|
-
typedef uint64_t sip_uint64_t;
|
|
18
|
-
#endif
|
|
19
|
-
|
|
20
|
-
typedef struct {
|
|
21
|
-
int c;
|
|
22
|
-
int d;
|
|
23
|
-
uint64_t v[4];
|
|
24
|
-
uint8_t buf[sizeof(uint64_t)];
|
|
25
|
-
uint8_t buflen;
|
|
26
|
-
uint8_t msglen_byte;
|
|
27
|
-
} sip_state;
|
|
28
|
-
|
|
29
|
-
typedef struct sip_interface_st sip_interface;
|
|
30
|
-
|
|
31
|
-
typedef struct {
|
|
32
|
-
sip_state state[1];
|
|
33
|
-
const sip_interface *methods;
|
|
34
|
-
} sip_hash;
|
|
35
|
-
|
|
36
|
-
sip_hash *sip_hash_new(const uint8_t key[16], int c, int d);
|
|
37
|
-
sip_hash *sip_hash_init(sip_hash *h, const uint8_t key[16], int c, int d);
|
|
38
|
-
int sip_hash_update(sip_hash *h, const uint8_t *data, size_t len);
|
|
39
|
-
int sip_hash_final(sip_hash *h, uint8_t **digest, size_t *len);
|
|
40
|
-
int sip_hash_final_integer(sip_hash *h, uint64_t *digest);
|
|
41
|
-
int sip_hash_digest(sip_hash *h, const uint8_t *data, size_t data_len, uint8_t **digest, size_t *digest_len);
|
|
42
|
-
int sip_hash_digest_integer(sip_hash *h, const uint8_t *data, size_t data_len, uint64_t *digest);
|
|
43
|
-
void sip_hash_free(sip_hash *h);
|
|
44
|
-
void sip_hash_dump(sip_hash *h);
|
|
45
|
-
|
|
46
|
-
NO_SANITIZE("unsigned-integer-overflow", uint64_t sip_hash13(const uint8_t key[16], const uint8_t *data, size_t len));
|
|
47
|
-
|
|
48
|
-
#endif
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_THREAD_NONE_H
|
|
2
|
-
#define RUBY_THREAD_NONE_H
|
|
3
|
-
|
|
4
|
-
#define RB_NATIVETHREAD_LOCK_INIT (void)(0)
|
|
5
|
-
#define RB_NATIVETHREAD_COND_INIT (void)(0)
|
|
6
|
-
|
|
7
|
-
// no-thread impl doesn't use TLS but define this to avoid using tls key
|
|
8
|
-
// based implementation in vm.c
|
|
9
|
-
#define RB_THREAD_LOCAL_SPECIFIER
|
|
10
|
-
|
|
11
|
-
struct rb_native_thread {
|
|
12
|
-
void *thread_id; // NULL
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
struct rb_thread_sched_item {};
|
|
16
|
-
struct rb_thread_sched {};
|
|
17
|
-
|
|
18
|
-
RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;
|
|
19
|
-
NOINLINE(struct rb_execution_context_struct *rb_current_ec_noinline(void)); // for assertions
|
|
20
|
-
|
|
21
|
-
#endif /* RUBY_THREAD_NONE_H */
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_THREAD_WIN32_H
|
|
2
|
-
#define RUBY_THREAD_WIN32_H
|
|
3
|
-
/**********************************************************************
|
|
4
|
-
|
|
5
|
-
thread_win32.h -
|
|
6
|
-
|
|
7
|
-
$Author$
|
|
8
|
-
|
|
9
|
-
Copyright (C) 2004-2007 Koichi Sasada
|
|
10
|
-
|
|
11
|
-
**********************************************************************/
|
|
12
|
-
|
|
13
|
-
/* interface */
|
|
14
|
-
|
|
15
|
-
# ifdef __CYGWIN__
|
|
16
|
-
# undef _WIN32
|
|
17
|
-
# endif
|
|
18
|
-
|
|
19
|
-
#define USE_VM_CLOCK 1
|
|
20
|
-
|
|
21
|
-
WINBASEAPI BOOL WINAPI
|
|
22
|
-
TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
|
|
23
|
-
|
|
24
|
-
struct rb_native_thread {
|
|
25
|
-
HANDLE thread_id;
|
|
26
|
-
HANDLE interrupt_event;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
struct rb_thread_sched_item {
|
|
30
|
-
void *vm_stack;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
struct rb_thread_sched {
|
|
34
|
-
HANDLE lock;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
typedef DWORD native_tls_key_t; // TLS index
|
|
38
|
-
|
|
39
|
-
static inline void *
|
|
40
|
-
native_tls_get(native_tls_key_t key)
|
|
41
|
-
{
|
|
42
|
-
// return value should be checked by caller.
|
|
43
|
-
return TlsGetValue(key);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static inline void
|
|
47
|
-
native_tls_set(native_tls_key_t key, void *ptr)
|
|
48
|
-
{
|
|
49
|
-
if (UNLIKELY(TlsSetValue(key, ptr) == 0)) {
|
|
50
|
-
rb_bug("TlsSetValue() error");
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
55
|
-
RUBY_EXTERN native_tls_key_t ruby_current_ec_key;
|
|
56
|
-
RUBY_SYMBOL_EXPORT_END
|
|
57
|
-
|
|
58
|
-
#endif /* RUBY_THREAD_WIN32_H */
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_TIMEV_H
|
|
2
|
-
#define RUBY_TIMEV_H
|
|
3
|
-
#include "ruby/ruby.h"
|
|
4
|
-
|
|
5
|
-
struct vtm {
|
|
6
|
-
VALUE year; /* 2000 for example. Integer. */
|
|
7
|
-
VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */
|
|
8
|
-
VALUE utc_offset; /* -3600 as -01:00 for example. possibly Rational. */
|
|
9
|
-
VALUE zone; /* "JST", "EST", "EDT", etc. as String */
|
|
10
|
-
unsigned int yday:9; /* 1..366 */
|
|
11
|
-
unsigned int mon:4; /* 1..12 */
|
|
12
|
-
unsigned int mday:5; /* 1..31 */
|
|
13
|
-
unsigned int hour:5; /* 0..23 */
|
|
14
|
-
unsigned int min:6; /* 0..59 */
|
|
15
|
-
unsigned int sec:6; /* 0..60 */
|
|
16
|
-
unsigned int wday:3; /* 0:Sunday, 1:Monday, ..., 6:Saturday 7:init */
|
|
17
|
-
unsigned int isdst:2; /* 0:StandardTime 1:DayLightSavingTime 3:init */
|
|
18
|
-
|
|
19
|
-
/* Flags for struct time_object */
|
|
20
|
-
unsigned int tzmode:3; /* 0:localtime 1:utc 2:fixoff 3:uninitialized */
|
|
21
|
-
unsigned int tm_got:1;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
#define TIME_SCALE 1000000000
|
|
25
|
-
|
|
26
|
-
#ifndef TYPEOF_TIMEVAL_TV_SEC
|
|
27
|
-
# define TYPEOF_TIMEVAL_TV_SEC time_t
|
|
28
|
-
#endif
|
|
29
|
-
#ifndef TYPEOF_TIMEVAL_TV_USEC
|
|
30
|
-
# if INT_MAX >= 1000000
|
|
31
|
-
# define TYPEOF_TIMEVAL_TV_USEC int
|
|
32
|
-
# else
|
|
33
|
-
# define TYPEOF_TIMEVAL_TV_USEC long
|
|
34
|
-
# endif
|
|
35
|
-
#endif
|
|
36
|
-
|
|
37
|
-
#if SIZEOF_TIME_T == SIZEOF_LONG
|
|
38
|
-
typedef unsigned long unsigned_time_t;
|
|
39
|
-
#elif SIZEOF_TIME_T == SIZEOF_INT
|
|
40
|
-
typedef unsigned int unsigned_time_t;
|
|
41
|
-
#elif SIZEOF_TIME_T == SIZEOF_LONG_LONG
|
|
42
|
-
typedef unsigned LONG_LONG unsigned_time_t;
|
|
43
|
-
#else
|
|
44
|
-
# error cannot find integer type which size is same as time_t.
|
|
45
|
-
#endif
|
|
46
|
-
|
|
47
|
-
/* strftime.c */
|
|
48
|
-
#ifdef RUBY_ENCODING_H
|
|
49
|
-
VALUE rb_strftime_timespec(const char *format, size_t format_len, rb_encoding *enc,
|
|
50
|
-
VALUE time, const struct vtm *vtm, struct timespec *ts, int gmt);
|
|
51
|
-
VALUE rb_strftime(const char *format, size_t format_len, rb_encoding *enc,
|
|
52
|
-
VALUE time, const struct vtm *vtm, VALUE timev, int gmt);
|
|
53
|
-
#endif
|
|
54
|
-
|
|
55
|
-
/* time.c */
|
|
56
|
-
VALUE rb_time_zone_abbreviation(VALUE zone, VALUE time);
|
|
57
|
-
|
|
58
|
-
#endif
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_TRANSCODE_DATA_H
|
|
2
|
-
#define RUBY_TRANSCODE_DATA_H 1
|
|
3
|
-
/**********************************************************************
|
|
4
|
-
|
|
5
|
-
transcode_data.h -
|
|
6
|
-
|
|
7
|
-
$Author$
|
|
8
|
-
created at: Mon 10 Dec 2007 14:01:47 JST 2007
|
|
9
|
-
|
|
10
|
-
Copyright (C) 2007 Martin Duerst
|
|
11
|
-
|
|
12
|
-
**********************************************************************/
|
|
13
|
-
|
|
14
|
-
#include "ruby/ruby.h"
|
|
15
|
-
|
|
16
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
17
|
-
|
|
18
|
-
#define WORDINDEX_SHIFT_BITS 2
|
|
19
|
-
#define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
|
|
20
|
-
#define INFO2WORDINDEX(info) ((info) >> WORDINDEX_SHIFT_BITS)
|
|
21
|
-
#define BYTE_LOOKUP_BASE(bl) ((bl)[0])
|
|
22
|
-
#define BYTE_LOOKUP_INFO(bl) ((bl)[1])
|
|
23
|
-
|
|
24
|
-
#define PType (unsigned int)
|
|
25
|
-
|
|
26
|
-
#define NOMAP (PType 0x01) /* direct map */
|
|
27
|
-
#define ONEbt (0x02) /* one byte payload */
|
|
28
|
-
#define TWObt (0x03) /* two bytes payload */
|
|
29
|
-
#define THREEbt (0x05) /* three bytes payload */
|
|
30
|
-
#define FOURbt (0x06) /* four bytes payload, UTF-8 only, macros start at getBT0 */
|
|
31
|
-
#define INVALID (PType 0x07) /* invalid byte sequence */
|
|
32
|
-
#define UNDEF (PType 0x09) /* legal but undefined */
|
|
33
|
-
#define ZERObt (PType 0x0A) /* zero bytes of payload, i.e. remove */
|
|
34
|
-
#define FUNii (PType 0x0B) /* function from info to info */
|
|
35
|
-
#define FUNsi (PType 0x0D) /* function from start to info */
|
|
36
|
-
#define FUNio (PType 0x0E) /* function from info to output */
|
|
37
|
-
#define FUNso (PType 0x0F) /* function from start to output */
|
|
38
|
-
#define STR1 (PType 0x11) /* string 4 <= len <= 259 bytes: 1byte length + content */
|
|
39
|
-
#define GB4bt (PType 0x12) /* GB18030 four bytes payload */
|
|
40
|
-
#define FUNsio (PType 0x13) /* function from start and info to output */
|
|
41
|
-
|
|
42
|
-
#define STR1_LENGTH(byte_addr) (unsigned int)(*(byte_addr) + 4)
|
|
43
|
-
#define STR1_BYTEINDEX(w) ((w) >> 6)
|
|
44
|
-
#define makeSTR1(bi) (((bi) << 6) | STR1)
|
|
45
|
-
#define makeSTR1LEN(len) ((len)-4)
|
|
46
|
-
|
|
47
|
-
#define o1(b1) (PType((((unsigned char)(b1))<<8)|ONEbt))
|
|
48
|
-
#define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|\
|
|
49
|
-
(((unsigned char)(b2))<<16)|\
|
|
50
|
-
TWObt))
|
|
51
|
-
#define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
|
|
52
|
-
(((unsigned char)(b2))<<16)|\
|
|
53
|
-
(((unsigned int)(unsigned char)(b3))<<24)|\
|
|
54
|
-
THREEbt)&\
|
|
55
|
-
0xffffffffU))
|
|
56
|
-
#define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
|
|
57
|
-
(((unsigned char)(b2))<<16)|\
|
|
58
|
-
(((unsigned int)(unsigned char)(b3))<<24)|\
|
|
59
|
-
((((unsigned char)(b0))&0x07)<<5)|\
|
|
60
|
-
FOURbt)&\
|
|
61
|
-
0xffffffffU))
|
|
62
|
-
#define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|\
|
|
63
|
-
(((unsigned char)(b2))<<16)|\
|
|
64
|
-
((((unsigned char)(b1))&0x0f)<<24)|\
|
|
65
|
-
((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|\
|
|
66
|
-
GB4bt)&\
|
|
67
|
-
0xffffffffU))
|
|
68
|
-
#define funsio(diff) (PType((((unsigned int)(diff))<<8)|FUNsio))
|
|
69
|
-
|
|
70
|
-
#define getBT1(a) ((unsigned char)((a)>> 8))
|
|
71
|
-
#define getBT2(a) ((unsigned char)((a)>>16))
|
|
72
|
-
#define getBT3(a) ((unsigned char)((a)>>24))
|
|
73
|
-
#define getBT0(a) (((unsigned char)((a)>> 5)&0x07)|0xF0) /* for UTF-8 only!!! */
|
|
74
|
-
|
|
75
|
-
#define getGB4bt0(a) ((unsigned char)((a)>> 8))
|
|
76
|
-
#define getGB4bt1(a) (((unsigned char)((a)>>24)&0x0F)|0x30)
|
|
77
|
-
#define getGB4bt2(a) ((unsigned char)((a)>>16))
|
|
78
|
-
#define getGB4bt3(a) (((unsigned char)((a)>>28)&0x0F)|0x30)
|
|
79
|
-
|
|
80
|
-
#define o2FUNii(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|FUNii))
|
|
81
|
-
|
|
82
|
-
/* do we need these??? maybe not, can be done with simple tables */
|
|
83
|
-
#define ONETRAIL /* legal but undefined if one more trailing UTF-8 */
|
|
84
|
-
#define TWOTRAIL /* legal but undefined if two more trailing UTF-8 */
|
|
85
|
-
#define THREETRAIL /* legal but undefined if three more trailing UTF-8 */
|
|
86
|
-
|
|
87
|
-
typedef enum {
|
|
88
|
-
asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
|
|
89
|
-
asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
|
|
90
|
-
asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
|
|
91
|
-
/* ASCII-incompatible -> ASCII-incompatible is intentionally omitted. */
|
|
92
|
-
} rb_transcoder_asciicompat_type_t;
|
|
93
|
-
|
|
94
|
-
typedef struct rb_transcoder rb_transcoder;
|
|
95
|
-
|
|
96
|
-
/* static structure, one per supported encoding pair */
|
|
97
|
-
struct rb_transcoder {
|
|
98
|
-
const char *src_encoding;
|
|
99
|
-
const char *dst_encoding;
|
|
100
|
-
unsigned int conv_tree_start;
|
|
101
|
-
const unsigned char *byte_array;
|
|
102
|
-
unsigned int byte_array_length;
|
|
103
|
-
const unsigned int *word_array;
|
|
104
|
-
unsigned int word_array_length;
|
|
105
|
-
int word_size;
|
|
106
|
-
int input_unit_length;
|
|
107
|
-
int max_input;
|
|
108
|
-
int max_output;
|
|
109
|
-
rb_transcoder_asciicompat_type_t asciicompat_type;
|
|
110
|
-
size_t state_size;
|
|
111
|
-
int (*state_init_func)(void*); /* ret==0:success ret!=0:failure(errno) */
|
|
112
|
-
int (*state_fini_func)(void*); /* ret==0:success ret!=0:failure(errno) */
|
|
113
|
-
VALUE (*func_ii)(void*, VALUE); /* info -> info */
|
|
114
|
-
VALUE (*func_si)(void*, const unsigned char*, size_t); /* start -> info */
|
|
115
|
-
ssize_t (*func_io)(void*, VALUE, const unsigned char*, size_t); /* info -> output */
|
|
116
|
-
ssize_t (*func_so)(void*, const unsigned char*, size_t, unsigned char*, size_t); /* start -> output */
|
|
117
|
-
ssize_t (*finish_func)(void*, unsigned char*, size_t); /* -> output */
|
|
118
|
-
ssize_t (*resetsize_func)(void*); /* -> len */
|
|
119
|
-
ssize_t (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
|
|
120
|
-
ssize_t (*func_sio)(void*, const unsigned char*, size_t, VALUE, unsigned char*, size_t); /* start -> output */
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
|
|
124
|
-
void rb_register_transcoder(const rb_transcoder *);
|
|
125
|
-
|
|
126
|
-
/*
|
|
127
|
-
* To get rid of collision of initializer symbols in statically-linked encodings
|
|
128
|
-
* and transcoders
|
|
129
|
-
*/
|
|
130
|
-
#if defined(EXTSTATIC) && EXTSTATIC
|
|
131
|
-
# define TRANS_INIT(name) void Init_trans_ ## name(void)
|
|
132
|
-
#else
|
|
133
|
-
# define TRANS_INIT(name) void Init_ ## name(void)
|
|
134
|
-
#endif
|
|
135
|
-
|
|
136
|
-
RUBY_SYMBOL_EXPORT_END
|
|
137
|
-
|
|
138
|
-
#endif /* RUBY_TRANSCODE_DATA_H */
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#ifndef RUBY_TOPLEVEL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define RUBY_TOPLEVEL_VARIABLE_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/* per-object */
|
|
12
|
-
|
|
13
|
-
#include "shape.h"
|
|
14
|
-
|
|
15
|
-
struct gen_ivtbl {
|
|
16
|
-
#if !SHAPE_IN_BASIC_FLAGS
|
|
17
|
-
uint16_t shape_id;
|
|
18
|
-
#endif
|
|
19
|
-
union {
|
|
20
|
-
struct {
|
|
21
|
-
uint32_t numiv;
|
|
22
|
-
VALUE ivptr[1];
|
|
23
|
-
} shape;
|
|
24
|
-
struct {
|
|
25
|
-
st_table *table;
|
|
26
|
-
} complex;
|
|
27
|
-
} as;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
int rb_ivar_generic_ivtbl_lookup(VALUE obj, struct gen_ivtbl **);
|
|
31
|
-
|
|
32
|
-
#if !SHAPE_IN_BASIC_FLAGS
|
|
33
|
-
shape_id_t rb_generic_shape_id(VALUE obj);
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
void rb_free_rb_global_tbl(void);
|
|
37
|
-
void rb_free_generic_iv_tbl_(void);
|
|
38
|
-
|
|
39
|
-
#endif /* RUBY_TOPLEVEL_VARIABLE_H */
|