datadog-ruby_core_source 3.3.6 → 3.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.datadog.md +7 -1
- data/datadog-ruby_core_source.gemspec +6 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/id.h +7 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/array.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/basic_operators.h +2 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/bits.h +82 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/class.h +1 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/encoding.h +2 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/error.h +2 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/fixnum.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/gc.h +23 -28
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/hash.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/imemo.h +7 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/io.h +4 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/parse.h +14 -2
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/ractor.h +4 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/sanitizers.h +36 -3
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/string.h +34 -18
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/thread.h +29 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/vm.h +3 -3
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/method.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/ast.h +2146 -453
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/defines.h +44 -7
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/diagnostic.h +24 -6
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/extension.h +2 -2
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/node.h +0 -21
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/options.h +94 -3
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/parser.h +82 -40
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/prism.h +47 -11
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/regexp.h +43 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/static_literals.h +3 -2
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_char.h +1 -2
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_constant_pool.h +0 -8
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_integer.h +22 -15
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_newline_list.h +11 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_string.h +28 -12
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/version.h +3 -3
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism_compile.h +23 -12
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ractor_core.h +8 -20
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/rubyparser.h +168 -249
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/shape.h +2 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/thread_pthread.h +26 -25
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_core.h +62 -48
- data/lib/datadog/ruby_core_source/version.rb +1 -1
- data/lib/datadog/ruby_core_source.rb +14 -1
- metadata +109 -372
- data/.github/workflows/publish.yml +0 -18
- data/.gitignore +0 -7
- data/.idea/vcs.xml +0 -28
- data/CHANGELOG.md +0 -284
- data/CONTRIBUTING.md +0 -2
- data/Gemfile +0 -4
- data/Rakefile +0 -73
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/addr2line.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/constant.h +0 -50
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/debug_counter.h +0 -109
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/dln.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/encindex.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/eval_intern.h +0 -334
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/gc.h +0 -116
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/id_table.h +0 -31
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/insns.inc +0 -217
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/insns_info.inc +0 -1570
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/known_errors.inc +0 -746
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/node_name.inc +0 -198
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/opt_sc.inc +0 -1601
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/optinsn.inc +0 -103
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/optunifs.inc +0 -61
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/parse.h +0 -206
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/probes_helper.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regint.h +0 -938
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regparse.h +0 -370
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/revision.h +0 -1
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/symbol.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/thread_win32.h +0 -36
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/timev.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/transcode_data.h +0 -139
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/version.h +0 -73
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm.inc +0 -3667
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_call_iseq_optimized.inc +0 -213
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_exec.h +0 -192
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_insnhelper.h +0 -255
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vmtc.inc +0 -214
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/addr2line.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/constant.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/debug_counter.h +0 -109
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/dln.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/encindex.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/eval_intern.h +0 -334
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/gc.h +0 -116
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/id_table.h +0 -31
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/insns.inc +0 -217
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/insns_info.inc +0 -1570
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/known_errors.inc +0 -746
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/node_name.inc +0 -198
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/opt_sc.inc +0 -1601
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/optinsn.inc +0 -103
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/optunifs.inc +0 -61
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/parse.h +0 -206
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/probes_helper.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regint.h +0 -938
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regparse.h +0 -370
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/revision.h +0 -1
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/symbol.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/thread_win32.h +0 -36
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/timev.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/transcode_data.h +0 -139
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/version.h +0 -73
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm.inc +0 -3667
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_call_iseq_optimized.inc +0 -213
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_exec.h +0 -192
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_insnhelper.h +0 -255
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vmtc.inc +0 -214
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/addr2line.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/constant.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/debug_counter.h +0 -109
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/dln.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/encindex.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/eval_intern.h +0 -334
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/gc.h +0 -116
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/id_table.h +0 -31
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/insns.inc +0 -217
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/insns_info.inc +0 -1570
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/known_errors.inc +0 -746
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/node_name.inc +0 -198
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/opt_sc.inc +0 -1601
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/optinsn.inc +0 -103
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/optunifs.inc +0 -61
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/parse.h +0 -200
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/probes_helper.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regint.h +0 -938
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regparse.h +0 -370
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/revision.h +0 -1
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/symbol.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/thread_win32.h +0 -36
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/timev.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/transcode_data.h +0 -139
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/version.h +0 -73
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm.inc +0 -3667
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_call_iseq_optimized.inc +0 -213
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_exec.h +0 -192
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_insnhelper.h +0 -255
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vmtc.inc +0 -214
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/addr2line.h +0 -22
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/builtin.h +0 -117
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/constant.h +0 -53
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/darray.h +0 -246
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/debug_counter.h +0 -423
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/dln.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/encindex.h +0 -70
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/eval_intern.h +0 -343
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/hrtime.h +0 -227
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/insns.inc +0 -251
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/insns_info.inc +0 -9215
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/known_errors.inc +0 -791
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/node_name.inc +0 -212
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/optinsn.inc +0 -128
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/optunifs.inc +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parse.h +0 -243
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parser_bits.h +0 -564
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parser_node.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/probes_helper.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regint.h +0 -1004
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regparse.h +0 -371
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/revision.h +0 -5
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/rjit.h +0 -101
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/rjit_c.h +0 -164
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/symbol.h +0 -118
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/thread_win32.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/timev.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/transcode_data.h +0 -138
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/variable.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/version.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm.inc +0 -5436
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_call_iseq_optimized.inc +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_callinfo.h +0 -619
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_exec.h +0 -199
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_insnhelper.h +0 -261
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_sync.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vmtc.inc +0 -245
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/yjit.h +0 -72
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/addr2line.h +0 -22
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/builtin.h +0 -117
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/constant.h +0 -53
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/darray.h +0 -246
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +0 -423
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/dln.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/encindex.h +0 -70
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +0 -343
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/hrtime.h +0 -227
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/insns.inc +0 -251
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +0 -9215
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +0 -791
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/node_name.inc +0 -212
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +0 -128
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parse.h +0 -243
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +0 -564
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parser_node.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regint.h +0 -1006
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regparse.h +0 -371
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/revision.h +0 -5
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/rjit.h +0 -101
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +0 -164
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/symbol.h +0 -118
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/timev.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +0 -138
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/variable.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/version.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm.inc +0 -5436
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +0 -614
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +0 -199
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +0 -261
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +0 -245
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/yjit.h +0 -72
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +0 -22
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/builtin.h +0 -119
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/constant.h +0 -53
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/encindex.h +0 -70
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +0 -324
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +0 -237
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +0 -224
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +0 -128
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +0 -564
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regparse.h +0 -371
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/rjit.h +0 -101
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +0 -165
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/timev.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +0 -138
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/variable.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +0 -199
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/yjit.h +0 -79
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/darray.h +0 -209
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/debug_counter.h +0 -423
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/dln.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/insns.inc +0 -265
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/insns_info.inc +0 -9902
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/known_errors.inc +0 -1419
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/optunifs.inc +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parse.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regint.h +0 -1006
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/symbol.h +0 -123
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/version.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm.inc +0 -5840
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_callinfo.h +0 -627
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_insnhelper.h +0 -277
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_sync.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vmtc.inc +0 -259
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/check_type/check_type.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/container_of/container_of.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/list/list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/str/str.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/id_table.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/bignum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/cmdlineopt.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compar.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compilers.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/complex.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/cont.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/dir.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enumerator.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/eval.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/file.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/inits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/load.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/loadpath.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/math.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/missing.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/numeric.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/object.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/proc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/process.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/random.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/range.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/rational.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/re.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/ruby_parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/serial.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/signal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/static_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/struct.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/symbol.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/time.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/transcode.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/util.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/variable.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/warnings.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/iseq.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/parser_st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/parser_value.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/pack.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/prettyprint.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_buffer.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_memchr.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ruby_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ruby_atomic.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/thread_none.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_debug.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_opts.h +0 -0
@@ -1,199 +0,0 @@
|
|
1
|
-
#ifndef RUBY_VM_EXEC_H
|
2
|
-
#define RUBY_VM_EXEC_H
|
3
|
-
/**********************************************************************
|
4
|
-
|
5
|
-
vm.h -
|
6
|
-
|
7
|
-
$Author$
|
8
|
-
created at: 04/01/01 16:56:59 JST
|
9
|
-
|
10
|
-
Copyright (C) 2004-2007 Koichi Sasada
|
11
|
-
|
12
|
-
**********************************************************************/
|
13
|
-
|
14
|
-
typedef long OFFSET;
|
15
|
-
typedef unsigned long lindex_t;
|
16
|
-
typedef VALUE GENTRY;
|
17
|
-
typedef rb_iseq_t *ISEQ;
|
18
|
-
|
19
|
-
#if VMDEBUG > 0
|
20
|
-
#define debugs printf
|
21
|
-
#define DEBUG_ENTER_INSN(insn) \
|
22
|
-
rb_vmdebug_debug_print_pre(ec, GET_CFP(), GET_PC());
|
23
|
-
|
24
|
-
#define SC_REGS()
|
25
|
-
|
26
|
-
#define DEBUG_END_INSN() \
|
27
|
-
rb_vmdebug_debug_print_post(ec, GET_CFP() SC_REGS());
|
28
|
-
|
29
|
-
#else
|
30
|
-
|
31
|
-
#define debugs
|
32
|
-
#define DEBUG_ENTER_INSN(insn)
|
33
|
-
#define DEBUG_END_INSN()
|
34
|
-
#endif
|
35
|
-
|
36
|
-
#define throwdebug if(0)ruby_debug_printf
|
37
|
-
/* #define throwdebug ruby_debug_printf */
|
38
|
-
|
39
|
-
/************************************************/
|
40
|
-
#if defined(DISPATCH_XXX)
|
41
|
-
error !
|
42
|
-
/************************************************/
|
43
|
-
#elif OPT_CALL_THREADED_CODE
|
44
|
-
|
45
|
-
#define LABEL(x) insn_func_##x
|
46
|
-
#define ELABEL(x)
|
47
|
-
#define LABEL_PTR(x) &LABEL(x)
|
48
|
-
|
49
|
-
#define INSN_ENTRY(insn) \
|
50
|
-
static rb_control_frame_t * \
|
51
|
-
FUNC_FASTCALL(LABEL(insn))(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp) {
|
52
|
-
|
53
|
-
#define END_INSN(insn) return reg_cfp;}
|
54
|
-
|
55
|
-
#define NEXT_INSN() return reg_cfp;
|
56
|
-
|
57
|
-
#define START_OF_ORIGINAL_INSN(x) /* ignore */
|
58
|
-
#define DISPATCH_ORIGINAL_INSN(x) return LABEL(x)(ec, reg_cfp);
|
59
|
-
|
60
|
-
/************************************************/
|
61
|
-
#elif OPT_TOKEN_THREADED_CODE || OPT_DIRECT_THREADED_CODE
|
62
|
-
/* threaded code with gcc */
|
63
|
-
|
64
|
-
#define LABEL(x) INSN_LABEL_##x
|
65
|
-
#define ELABEL(x) INSN_ELABEL_##x
|
66
|
-
#define LABEL_PTR(x) RB_GNUC_EXTENSION(&&LABEL(x))
|
67
|
-
|
68
|
-
#define INSN_ENTRY_SIG(insn) \
|
69
|
-
if (0) { \
|
70
|
-
ruby_debug_printf("exec: %s@(%"PRIdPTRDIFF", %"PRIdPTRDIFF")@%s:%u\n", #insn, \
|
71
|
-
(reg_pc - ISEQ_BODY(reg_cfp->iseq)->iseq_encoded), \
|
72
|
-
(reg_cfp->pc - ISEQ_BODY(reg_cfp->iseq)->iseq_encoded), \
|
73
|
-
RSTRING_PTR(rb_iseq_path(reg_cfp->iseq)), \
|
74
|
-
rb_iseq_line_no(reg_cfp->iseq, reg_pc - ISEQ_BODY(reg_cfp->iseq)->iseq_encoded)); \
|
75
|
-
}
|
76
|
-
|
77
|
-
#define INSN_DISPATCH_SIG(insn)
|
78
|
-
|
79
|
-
#define INSN_ENTRY(insn) \
|
80
|
-
LABEL(insn): \
|
81
|
-
INSN_ENTRY_SIG(insn); \
|
82
|
-
|
83
|
-
/**********************************/
|
84
|
-
#if OPT_DIRECT_THREADED_CODE
|
85
|
-
|
86
|
-
/* for GCC 3.4.x */
|
87
|
-
#define TC_DISPATCH(insn) \
|
88
|
-
INSN_DISPATCH_SIG(insn); \
|
89
|
-
RB_GNUC_EXTENSION_BLOCK(goto *(void const *)GET_CURRENT_INSN()); \
|
90
|
-
;
|
91
|
-
|
92
|
-
#else
|
93
|
-
/* token threaded code */
|
94
|
-
|
95
|
-
/* dispatcher */
|
96
|
-
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && __GNUC__ == 3
|
97
|
-
#define DISPATCH_ARCH_DEPEND_WAY(addr) \
|
98
|
-
__asm__ __volatile__("jmp *%0;\t# -- inserted by vm.h\t[length = 2]" : : "r" (addr))
|
99
|
-
|
100
|
-
#else
|
101
|
-
#define DISPATCH_ARCH_DEPEND_WAY(addr) \
|
102
|
-
/* do nothing */
|
103
|
-
#endif
|
104
|
-
#define TC_DISPATCH(insn) \
|
105
|
-
DISPATCH_ARCH_DEPEND_WAY(insns_address_table[GET_CURRENT_INSN()]); \
|
106
|
-
INSN_DISPATCH_SIG(insn); \
|
107
|
-
RB_GNUC_EXTENSION_BLOCK(goto *insns_address_table[GET_CURRENT_INSN()]); \
|
108
|
-
rb_bug("tc error");
|
109
|
-
|
110
|
-
#endif /* OPT_DIRECT_THREADED_CODE */
|
111
|
-
|
112
|
-
#define END_INSN(insn) \
|
113
|
-
DEBUG_END_INSN(); \
|
114
|
-
TC_DISPATCH(insn);
|
115
|
-
|
116
|
-
#define INSN_DISPATCH() \
|
117
|
-
TC_DISPATCH(__START__) \
|
118
|
-
{
|
119
|
-
|
120
|
-
#define END_INSNS_DISPATCH() \
|
121
|
-
rb_bug("unknown insn: %"PRIdVALUE, GET_CURRENT_INSN()); \
|
122
|
-
} /* end of while loop */ \
|
123
|
-
|
124
|
-
#define NEXT_INSN() TC_DISPATCH(__NEXT_INSN__)
|
125
|
-
|
126
|
-
/************************************************/
|
127
|
-
#else /* no threaded code */
|
128
|
-
/* most common method */
|
129
|
-
|
130
|
-
#define INSN_ENTRY(insn) \
|
131
|
-
case BIN(insn):
|
132
|
-
|
133
|
-
#define END_INSN(insn) \
|
134
|
-
DEBUG_END_INSN(); \
|
135
|
-
break;
|
136
|
-
|
137
|
-
#define INSN_DISPATCH() \
|
138
|
-
while (1) { \
|
139
|
-
switch (GET_CURRENT_INSN()) {
|
140
|
-
|
141
|
-
#define END_INSNS_DISPATCH() \
|
142
|
-
default: \
|
143
|
-
SDR(); \
|
144
|
-
rb_bug("unknown insn: %ld", GET_CURRENT_INSN()); \
|
145
|
-
} /* end of switch */ \
|
146
|
-
} /* end of while loop */ \
|
147
|
-
|
148
|
-
#define NEXT_INSN() goto first
|
149
|
-
|
150
|
-
#endif
|
151
|
-
|
152
|
-
#ifndef START_OF_ORIGINAL_INSN
|
153
|
-
#define START_OF_ORIGINAL_INSN(x) if (0) goto start_of_##x; start_of_##x:
|
154
|
-
#define DISPATCH_ORIGINAL_INSN(x) goto start_of_##x;
|
155
|
-
#endif
|
156
|
-
|
157
|
-
#define VM_SP_CNT(ec, sp) ((sp) - (ec)->vm_stack)
|
158
|
-
|
159
|
-
#if OPT_CALL_THREADED_CODE
|
160
|
-
#define THROW_EXCEPTION(exc) do { \
|
161
|
-
ec->errinfo = (VALUE)(exc); \
|
162
|
-
return 0; \
|
163
|
-
} while (0)
|
164
|
-
#else
|
165
|
-
#define THROW_EXCEPTION(exc) return (VALUE)(exc)
|
166
|
-
#endif
|
167
|
-
|
168
|
-
// Run the interpreter from the JIT
|
169
|
-
#define VM_EXEC(ec, val) do { \
|
170
|
-
if (UNDEF_P(val)) { \
|
171
|
-
VM_ENV_FLAGS_SET(ec->cfp->ep, VM_FRAME_FLAG_FINISH); \
|
172
|
-
val = vm_exec(ec); \
|
173
|
-
} \
|
174
|
-
} while (0)
|
175
|
-
|
176
|
-
// Run the JIT from the interpreter
|
177
|
-
#define JIT_EXEC(ec, val) do { \
|
178
|
-
rb_jit_func_t func; \
|
179
|
-
/* don't run tailcalls since that breaks FINISH */ \
|
180
|
-
if (UNDEF_P(val) && GET_CFP() != ec->cfp && (func = jit_compile(ec))) { \
|
181
|
-
val = func(ec, ec->cfp); \
|
182
|
-
if (ec->tag->state) THROW_EXCEPTION(val); \
|
183
|
-
} \
|
184
|
-
} while (0)
|
185
|
-
|
186
|
-
#define SCREG(r) (reg_##r)
|
187
|
-
|
188
|
-
#define VM_DEBUG_STACKOVERFLOW 0
|
189
|
-
|
190
|
-
#if VM_DEBUG_STACKOVERFLOW
|
191
|
-
#define CHECK_VM_STACK_OVERFLOW_FOR_INSN CHECK_VM_STACK_OVERFLOW
|
192
|
-
#else
|
193
|
-
#define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin)
|
194
|
-
#endif
|
195
|
-
|
196
|
-
#define INSN_LABEL2(insn, name) INSN_LABEL_ ## insn ## _ ## name
|
197
|
-
#define INSN_LABEL(x) INSN_LABEL2(NAME_OF_CURRENT_INSN, x)
|
198
|
-
|
199
|
-
#endif /* RUBY_VM_EXEC_H */
|
@@ -1,277 +0,0 @@
|
|
1
|
-
#ifndef RUBY_INSNHELPER_H
|
2
|
-
#define RUBY_INSNHELPER_H
|
3
|
-
/**********************************************************************
|
4
|
-
|
5
|
-
insnhelper.h - helper macros to implement each instructions
|
6
|
-
|
7
|
-
$Author$
|
8
|
-
created at: 04/01/01 15:50:34 JST
|
9
|
-
|
10
|
-
Copyright (C) 2004-2007 Koichi Sasada
|
11
|
-
|
12
|
-
**********************************************************************/
|
13
|
-
|
14
|
-
RUBY_EXTERN VALUE ruby_vm_const_missing_count;
|
15
|
-
RUBY_EXTERN rb_serial_t ruby_vm_constant_cache_invalidations;
|
16
|
-
RUBY_EXTERN rb_serial_t ruby_vm_constant_cache_misses;
|
17
|
-
RUBY_EXTERN rb_serial_t ruby_vm_global_cvar_state;
|
18
|
-
|
19
|
-
#if USE_YJIT || USE_RJIT // We want vm_insns_count on any JIT-enabled build.
|
20
|
-
// Increment vm_insns_count for --yjit-stats. We increment this even when
|
21
|
-
// --yjit or --yjit-stats is not used because branching to skip it is slower.
|
22
|
-
// We also don't use ATOMIC_INC for performance, allowing inaccuracy on Ractors.
|
23
|
-
#define JIT_COLLECT_USAGE_INSN(insn) rb_vm_insns_count++
|
24
|
-
#else
|
25
|
-
#define JIT_COLLECT_USAGE_INSN(insn) // none
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#if VM_COLLECT_USAGE_DETAILS
|
29
|
-
#define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn)
|
30
|
-
#define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))
|
31
|
-
#define COLLECT_USAGE_REGISTER(reg, s) vm_collect_usage_register((reg), (s))
|
32
|
-
#else
|
33
|
-
#define COLLECT_USAGE_INSN(insn) JIT_COLLECT_USAGE_INSN(insn)
|
34
|
-
#define COLLECT_USAGE_OPERAND(insn, n, op) // none
|
35
|
-
#define COLLECT_USAGE_REGISTER(reg, s) // none
|
36
|
-
#endif
|
37
|
-
|
38
|
-
/**********************************************************/
|
39
|
-
/* deal with stack */
|
40
|
-
/**********************************************************/
|
41
|
-
|
42
|
-
#define PUSH(x) (SET_SV(x), INC_SP(1))
|
43
|
-
#define TOPN(n) (*(GET_SP()-(n)-1))
|
44
|
-
#define POPN(n) (DEC_SP(n))
|
45
|
-
#define POP() (DEC_SP(1))
|
46
|
-
#define STACK_ADDR_FROM_TOP(n) (GET_SP()-(n))
|
47
|
-
|
48
|
-
/**********************************************************/
|
49
|
-
/* deal with registers */
|
50
|
-
/**********************************************************/
|
51
|
-
|
52
|
-
#define VM_REG_CFP (reg_cfp)
|
53
|
-
#define VM_REG_PC (VM_REG_CFP->pc)
|
54
|
-
#define VM_REG_SP (VM_REG_CFP->sp)
|
55
|
-
#define VM_REG_EP (VM_REG_CFP->ep)
|
56
|
-
|
57
|
-
#define RESTORE_REGS() do { \
|
58
|
-
VM_REG_CFP = ec->cfp; \
|
59
|
-
} while (0)
|
60
|
-
|
61
|
-
typedef enum call_type {
|
62
|
-
CALL_PUBLIC,
|
63
|
-
CALL_FCALL,
|
64
|
-
CALL_VCALL,
|
65
|
-
CALL_PUBLIC_KW,
|
66
|
-
CALL_FCALL_KW
|
67
|
-
} call_type;
|
68
|
-
|
69
|
-
struct rb_forwarding_call_data {
|
70
|
-
struct rb_call_data cd;
|
71
|
-
CALL_INFO caller_ci;
|
72
|
-
};
|
73
|
-
|
74
|
-
#if VM_COLLECT_USAGE_DETAILS
|
75
|
-
enum vm_regan_regtype {
|
76
|
-
VM_REGAN_PC = 0,
|
77
|
-
VM_REGAN_SP = 1,
|
78
|
-
VM_REGAN_EP = 2,
|
79
|
-
VM_REGAN_CFP = 3,
|
80
|
-
VM_REGAN_SELF = 4,
|
81
|
-
VM_REGAN_ISEQ = 5
|
82
|
-
};
|
83
|
-
enum vm_regan_acttype {
|
84
|
-
VM_REGAN_ACT_GET = 0,
|
85
|
-
VM_REGAN_ACT_SET = 1
|
86
|
-
};
|
87
|
-
|
88
|
-
#define COLLECT_USAGE_REGISTER_HELPER(a, b, v) \
|
89
|
-
(COLLECT_USAGE_REGISTER((VM_REGAN_##a), (VM_REGAN_ACT_##b)), (v))
|
90
|
-
#else
|
91
|
-
#define COLLECT_USAGE_REGISTER_HELPER(a, b, v) (v)
|
92
|
-
#endif
|
93
|
-
|
94
|
-
/* PC */
|
95
|
-
#define GET_PC() (COLLECT_USAGE_REGISTER_HELPER(PC, GET, VM_REG_PC))
|
96
|
-
#define SET_PC(x) (VM_REG_PC = (COLLECT_USAGE_REGISTER_HELPER(PC, SET, (x))))
|
97
|
-
#define GET_CURRENT_INSN() (*GET_PC())
|
98
|
-
#define GET_OPERAND(n) (GET_PC()[(n)])
|
99
|
-
#define ADD_PC(n) (SET_PC(VM_REG_PC + (n)))
|
100
|
-
#define JUMP(dst) (SET_PC(VM_REG_PC + (dst)))
|
101
|
-
|
102
|
-
/* frame pointer, environment pointer */
|
103
|
-
#define GET_CFP() (COLLECT_USAGE_REGISTER_HELPER(CFP, GET, VM_REG_CFP))
|
104
|
-
#define GET_EP() (COLLECT_USAGE_REGISTER_HELPER(EP, GET, VM_REG_EP))
|
105
|
-
#define SET_EP(x) (VM_REG_EP = (COLLECT_USAGE_REGISTER_HELPER(EP, SET, (x))))
|
106
|
-
#define GET_LEP() (VM_EP_LEP(GET_EP()))
|
107
|
-
|
108
|
-
/* SP */
|
109
|
-
#define GET_SP() (COLLECT_USAGE_REGISTER_HELPER(SP, GET, VM_REG_SP))
|
110
|
-
#define SET_SP(x) (VM_REG_SP = (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
|
111
|
-
#define INC_SP(x) (VM_REG_SP += (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
|
112
|
-
#define DEC_SP(x) (VM_REG_SP -= (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
|
113
|
-
#define SET_SV(x) (*GET_SP() = rb_ractor_confirm_belonging(x))
|
114
|
-
/* set current stack value as x */
|
115
|
-
|
116
|
-
/* instruction sequence C struct */
|
117
|
-
#define GET_ISEQ() (GET_CFP()->iseq)
|
118
|
-
|
119
|
-
/**********************************************************/
|
120
|
-
/* deal with variables */
|
121
|
-
/**********************************************************/
|
122
|
-
|
123
|
-
#define GET_PREV_EP(ep) ((VALUE *)((ep)[VM_ENV_DATA_INDEX_SPECVAL] & ~0x03))
|
124
|
-
|
125
|
-
/**********************************************************/
|
126
|
-
/* deal with values */
|
127
|
-
/**********************************************************/
|
128
|
-
|
129
|
-
#define GET_SELF() (COLLECT_USAGE_REGISTER_HELPER(SELF, GET, GET_CFP()->self))
|
130
|
-
|
131
|
-
/**********************************************************/
|
132
|
-
/* deal with control flow 2: method/iterator */
|
133
|
-
/**********************************************************/
|
134
|
-
|
135
|
-
/* set fastpath when cached method is *NOT* protected
|
136
|
-
* because inline method cache does not care about receiver.
|
137
|
-
*/
|
138
|
-
|
139
|
-
static inline void
|
140
|
-
CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enabled)
|
141
|
-
{
|
142
|
-
if (LIKELY(enabled)) {
|
143
|
-
vm_cc_call_set(cc, func);
|
144
|
-
}
|
145
|
-
}
|
146
|
-
|
147
|
-
#define GET_BLOCK_HANDLER() (GET_LEP()[VM_ENV_DATA_INDEX_SPECVAL])
|
148
|
-
|
149
|
-
/**********************************************************/
|
150
|
-
/* deal with control flow 3: exception */
|
151
|
-
/**********************************************************/
|
152
|
-
|
153
|
-
|
154
|
-
/**********************************************************/
|
155
|
-
/* deal with stack canary */
|
156
|
-
/**********************************************************/
|
157
|
-
|
158
|
-
#if VM_CHECK_MODE > 0
|
159
|
-
#define SETUP_CANARY(cond) \
|
160
|
-
VALUE *canary = 0; \
|
161
|
-
if (cond) { \
|
162
|
-
canary = GET_SP(); \
|
163
|
-
SET_SV(vm_stack_canary); \
|
164
|
-
} \
|
165
|
-
else {\
|
166
|
-
SET_SV(Qfalse); /* cleanup */ \
|
167
|
-
}
|
168
|
-
#define CHECK_CANARY(cond, insn) \
|
169
|
-
if (cond) { \
|
170
|
-
if (*canary == vm_stack_canary) { \
|
171
|
-
*canary = Qfalse; /* cleanup */ \
|
172
|
-
} \
|
173
|
-
else { \
|
174
|
-
rb_vm_canary_is_found_dead(insn, *canary); \
|
175
|
-
} \
|
176
|
-
}
|
177
|
-
#else
|
178
|
-
#define SETUP_CANARY(cond) if (cond) {} else {}
|
179
|
-
#define CHECK_CANARY(cond, insn) if (cond) {(void)(insn);}
|
180
|
-
#endif
|
181
|
-
|
182
|
-
/**********************************************************/
|
183
|
-
/* others */
|
184
|
-
/**********************************************************/
|
185
|
-
|
186
|
-
#define CALL_SIMPLE_METHOD() do { \
|
187
|
-
rb_snum_t insn_width = attr_width_opt_send_without_block(0); \
|
188
|
-
ADD_PC(-insn_width); \
|
189
|
-
DISPATCH_ORIGINAL_INSN(opt_send_without_block); \
|
190
|
-
} while (0)
|
191
|
-
|
192
|
-
#define GET_GLOBAL_CVAR_STATE() (ruby_vm_global_cvar_state)
|
193
|
-
#define INC_GLOBAL_CVAR_STATE() (++ruby_vm_global_cvar_state)
|
194
|
-
|
195
|
-
static inline struct vm_throw_data *
|
196
|
-
THROW_DATA_NEW(VALUE val, const rb_control_frame_t *cf, int st)
|
197
|
-
{
|
198
|
-
struct vm_throw_data *obj = IMEMO_NEW(struct vm_throw_data, imemo_throw_data, 0);
|
199
|
-
*((VALUE *)&obj->throw_obj) = val;
|
200
|
-
*((struct rb_control_frame_struct **)&obj->catch_frame) = (struct rb_control_frame_struct *)cf;
|
201
|
-
obj->throw_state = st;
|
202
|
-
|
203
|
-
return obj;
|
204
|
-
}
|
205
|
-
|
206
|
-
static inline VALUE
|
207
|
-
THROW_DATA_VAL(const struct vm_throw_data *obj)
|
208
|
-
{
|
209
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
210
|
-
return obj->throw_obj;
|
211
|
-
}
|
212
|
-
|
213
|
-
static inline const rb_control_frame_t *
|
214
|
-
THROW_DATA_CATCH_FRAME(const struct vm_throw_data *obj)
|
215
|
-
{
|
216
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
217
|
-
return obj->catch_frame;
|
218
|
-
}
|
219
|
-
|
220
|
-
static inline int
|
221
|
-
THROW_DATA_STATE(const struct vm_throw_data *obj)
|
222
|
-
{
|
223
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
224
|
-
return obj->throw_state;
|
225
|
-
}
|
226
|
-
|
227
|
-
static inline int
|
228
|
-
THROW_DATA_CONSUMED_P(const struct vm_throw_data *obj)
|
229
|
-
{
|
230
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
231
|
-
return obj->flags & THROW_DATA_CONSUMED;
|
232
|
-
}
|
233
|
-
|
234
|
-
static inline void
|
235
|
-
THROW_DATA_CATCH_FRAME_SET(struct vm_throw_data *obj, const rb_control_frame_t *cfp)
|
236
|
-
{
|
237
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
238
|
-
obj->catch_frame = cfp;
|
239
|
-
}
|
240
|
-
|
241
|
-
static inline void
|
242
|
-
THROW_DATA_STATE_SET(struct vm_throw_data *obj, int st)
|
243
|
-
{
|
244
|
-
VM_ASSERT(THROW_DATA_P(obj));
|
245
|
-
obj->throw_state = st;
|
246
|
-
}
|
247
|
-
|
248
|
-
static inline void
|
249
|
-
THROW_DATA_CONSUMED_SET(struct vm_throw_data *obj)
|
250
|
-
{
|
251
|
-
if (THROW_DATA_P(obj) &&
|
252
|
-
THROW_DATA_STATE(obj) == TAG_BREAK) {
|
253
|
-
obj->flags |= THROW_DATA_CONSUMED;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
|
257
|
-
#define IS_ARGS_SPLAT(ci) (vm_ci_flag(ci) & VM_CALL_ARGS_SPLAT)
|
258
|
-
#define IS_ARGS_KEYWORD(ci) (vm_ci_flag(ci) & VM_CALL_KWARG)
|
259
|
-
#define IS_ARGS_KW_SPLAT(ci) (vm_ci_flag(ci) & VM_CALL_KW_SPLAT)
|
260
|
-
#define IS_ARGS_KW_OR_KW_SPLAT(ci) (vm_ci_flag(ci) & (VM_CALL_KWARG | VM_CALL_KW_SPLAT))
|
261
|
-
#define IS_ARGS_KW_SPLAT_MUT(ci) (vm_ci_flag(ci) & VM_CALL_KW_SPLAT_MUT)
|
262
|
-
|
263
|
-
static inline bool
|
264
|
-
vm_call_cacheable(const struct rb_callinfo *ci, const struct rb_callcache *cc)
|
265
|
-
{
|
266
|
-
return !(vm_ci_flag(ci) & VM_CALL_FORWARDING) && ((vm_ci_flag(ci) & VM_CALL_FCALL) ||
|
267
|
-
METHOD_ENTRY_VISI(vm_cc_cme(cc)) != METHOD_VISI_PROTECTED);
|
268
|
-
}
|
269
|
-
/* If this returns true, an optimized function returned by `vm_call_iseq_setup_func`
|
270
|
-
can be used as a fastpath. */
|
271
|
-
static inline bool
|
272
|
-
vm_call_iseq_optimizable_p(const struct rb_callinfo *ci, const struct rb_callcache *cc)
|
273
|
-
{
|
274
|
-
return !IS_ARGS_SPLAT(ci) && !IS_ARGS_KEYWORD(ci) && vm_call_cacheable(ci, cc);
|
275
|
-
}
|
276
|
-
|
277
|
-
#endif /* RUBY_INSNHELPER_H */
|
@@ -1,137 +0,0 @@
|
|
1
|
-
#ifndef RUBY_VM_SYNC_H
|
2
|
-
#define RUBY_VM_SYNC_H
|
3
|
-
|
4
|
-
#include "vm_debug.h"
|
5
|
-
#include "debug_counter.h"
|
6
|
-
|
7
|
-
#if USE_RUBY_DEBUG_LOG
|
8
|
-
#define LOCATION_ARGS const char *file, int line
|
9
|
-
#define LOCATION_PARAMS file, line
|
10
|
-
#define APPEND_LOCATION_ARGS , const char *file, int line
|
11
|
-
#define APPEND_LOCATION_PARAMS , file, line
|
12
|
-
#else
|
13
|
-
#define LOCATION_ARGS void
|
14
|
-
#define LOCATION_PARAMS
|
15
|
-
#define APPEND_LOCATION_ARGS
|
16
|
-
#define APPEND_LOCATION_PARAMS
|
17
|
-
#endif
|
18
|
-
|
19
|
-
bool rb_vm_locked_p(void);
|
20
|
-
void rb_vm_lock_body(LOCATION_ARGS);
|
21
|
-
void rb_vm_unlock_body(LOCATION_ARGS);
|
22
|
-
|
23
|
-
struct rb_ractor_struct;
|
24
|
-
void rb_vm_lock_enter_body_cr(struct rb_ractor_struct *cr, unsigned int *lev APPEND_LOCATION_ARGS);
|
25
|
-
void rb_vm_lock_enter_body_nb(unsigned int *lev APPEND_LOCATION_ARGS);
|
26
|
-
void rb_vm_lock_enter_body(unsigned int *lev APPEND_LOCATION_ARGS);
|
27
|
-
void rb_vm_lock_leave_body(unsigned int *lev APPEND_LOCATION_ARGS);
|
28
|
-
void rb_vm_barrier(void);
|
29
|
-
|
30
|
-
#if RUBY_DEBUG
|
31
|
-
// GET_VM()
|
32
|
-
#include "vm_core.h"
|
33
|
-
#endif
|
34
|
-
|
35
|
-
RUBY_EXTERN struct rb_ractor_struct *ruby_single_main_ractor; // ractor.c
|
36
|
-
|
37
|
-
static inline bool
|
38
|
-
rb_multi_ractor_p(void)
|
39
|
-
{
|
40
|
-
if (LIKELY(ruby_single_main_ractor)) {
|
41
|
-
// 0 on boot time.
|
42
|
-
RUBY_ASSERT(GET_VM()->ractor.cnt <= 1);
|
43
|
-
return false;
|
44
|
-
}
|
45
|
-
else {
|
46
|
-
// multi-ractor mode can run ractor.cnt == 1
|
47
|
-
return true;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
static inline void
|
52
|
-
rb_vm_lock(const char *file, int line)
|
53
|
-
{
|
54
|
-
RB_DEBUG_COUNTER_INC(vm_sync_lock);
|
55
|
-
|
56
|
-
if (rb_multi_ractor_p()) {
|
57
|
-
rb_vm_lock_body(LOCATION_PARAMS);
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
static inline void
|
62
|
-
rb_vm_unlock(const char *file, int line)
|
63
|
-
{
|
64
|
-
if (rb_multi_ractor_p()) {
|
65
|
-
rb_vm_unlock_body(LOCATION_PARAMS);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
static inline void
|
70
|
-
rb_vm_lock_enter(unsigned int *lev, const char *file, int line)
|
71
|
-
{
|
72
|
-
RB_DEBUG_COUNTER_INC(vm_sync_lock_enter);
|
73
|
-
|
74
|
-
if (rb_multi_ractor_p()) {
|
75
|
-
rb_vm_lock_enter_body(lev APPEND_LOCATION_PARAMS);
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
static inline void
|
80
|
-
rb_vm_lock_enter_nb(unsigned int *lev, const char *file, int line)
|
81
|
-
{
|
82
|
-
RB_DEBUG_COUNTER_INC(vm_sync_lock_enter_nb);
|
83
|
-
|
84
|
-
if (rb_multi_ractor_p()) {
|
85
|
-
rb_vm_lock_enter_body_nb(lev APPEND_LOCATION_PARAMS);
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
static inline void
|
90
|
-
rb_vm_lock_leave(unsigned int *lev, const char *file, int line)
|
91
|
-
{
|
92
|
-
if (rb_multi_ractor_p()) {
|
93
|
-
rb_vm_lock_leave_body(lev APPEND_LOCATION_PARAMS);
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
static inline void
|
98
|
-
rb_vm_lock_enter_cr(struct rb_ractor_struct *cr, unsigned int *levp, const char *file, int line)
|
99
|
-
{
|
100
|
-
RB_DEBUG_COUNTER_INC(vm_sync_lock_enter_cr);
|
101
|
-
rb_vm_lock_enter_body_cr(cr, levp APPEND_LOCATION_PARAMS);
|
102
|
-
}
|
103
|
-
|
104
|
-
static inline void
|
105
|
-
rb_vm_lock_leave_cr(struct rb_ractor_struct *cr, unsigned int *levp, const char *file, int line)
|
106
|
-
{
|
107
|
-
rb_vm_lock_leave_body(levp APPEND_LOCATION_PARAMS);
|
108
|
-
}
|
109
|
-
|
110
|
-
#define RB_VM_LOCKED_P() rb_vm_locked_p()
|
111
|
-
|
112
|
-
#define RB_VM_LOCK() rb_vm_lock(__FILE__, __LINE__)
|
113
|
-
#define RB_VM_UNLOCK() rb_vm_unlock(__FILE__, __LINE__)
|
114
|
-
|
115
|
-
#define RB_VM_LOCK_ENTER_CR_LEV(cr, levp) rb_vm_lock_enter_cr(cr, levp, __FILE__, __LINE__)
|
116
|
-
#define RB_VM_LOCK_LEAVE_CR_LEV(cr, levp) rb_vm_lock_leave_cr(cr, levp, __FILE__, __LINE__)
|
117
|
-
#define RB_VM_LOCK_ENTER_LEV(levp) rb_vm_lock_enter(levp, __FILE__, __LINE__)
|
118
|
-
#define RB_VM_LOCK_LEAVE_LEV(levp) rb_vm_lock_leave(levp, __FILE__, __LINE__)
|
119
|
-
|
120
|
-
#define RB_VM_LOCK_ENTER() { unsigned int _lev; RB_VM_LOCK_ENTER_LEV(&_lev);
|
121
|
-
#define RB_VM_LOCK_LEAVE() RB_VM_LOCK_LEAVE_LEV(&_lev); }
|
122
|
-
|
123
|
-
#define RB_VM_LOCK_ENTER_LEV_NB(levp) rb_vm_lock_enter_nb(levp, __FILE__, __LINE__)
|
124
|
-
#define RB_VM_LOCK_ENTER_NO_BARRIER() { unsigned int _lev; RB_VM_LOCK_ENTER_LEV_NB(&_lev);
|
125
|
-
#define RB_VM_LOCK_LEAVE_NO_BARRIER() RB_VM_LOCK_LEAVE_LEV(&_lev); }
|
126
|
-
|
127
|
-
#if RUBY_DEBUG > 0
|
128
|
-
void RUBY_ASSERT_vm_locking(void);
|
129
|
-
void RUBY_ASSERT_vm_unlocking(void);
|
130
|
-
#define ASSERT_vm_locking() RUBY_ASSERT_vm_locking()
|
131
|
-
#define ASSERT_vm_unlocking() RUBY_ASSERT_vm_unlocking()
|
132
|
-
#else
|
133
|
-
#define ASSERT_vm_locking()
|
134
|
-
#define ASSERT_vm_unlocking()
|
135
|
-
#endif
|
136
|
-
|
137
|
-
#endif // RUBY_VM_SYNC_H
|