debase-ruby_core_source 0.10.2 → 0.10.11
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +34 -0
- data/README.md +6 -2
- data/Rakefile +6 -3
- data/debase-ruby_core_source.gemspec +2 -1
- data/lib/debase/ruby_core_source.rb +6 -5
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/addr2line.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ccan/build_assert/build_assert.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ccan/check_type/check_type.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ccan/container_of/container_of.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ccan/list/list.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ccan/str/str.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/constant.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/debug_counter.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/dln.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/encindex.h +2 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/eval_intern.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/gc.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/id.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/id_table.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/insns.inc +2 -2
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/insns_info.inc +157 -157
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/internal.h +5 -4
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/iseq.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/known_errors.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/method.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/node.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/node_name.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/opt_sc.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/optinsn.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/optunifs.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/parse.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/probes_helper.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/regenc.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/regint.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/regparse.h +0 -0
- data/lib/debase/ruby_core_source/ruby-2.5.1-p57/revision.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ruby_assert.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/ruby_atomic.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/siphash.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/symbol.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/thread_pthread.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/thread_win32.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/timev.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/transcode_data.h +0 -0
- data/lib/debase/ruby_core_source/ruby-2.5.1-p57/version.h +73 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm.inc +13 -13
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm_call_iseq_optimized.inc +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm_core.h +3 -4
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.5.1-p57}/vm_debug.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm_exec.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm_insnhelper.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vm_opts.h +1 -2
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.5.1-p57}/vmtc.inc +2 -2
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/addr2line.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ccan/build_assert/build_assert.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ccan/check_type/check_type.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ccan/container_of/container_of.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ccan/list/list.h +20 -5
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ccan/str/str.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/constant.h +1 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/debug_counter.h +283 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/dln.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/encindex.h +2 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/eval_intern.h +45 -53
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/gc.h +2 -3
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/hrtime.h +168 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/id.h +4 -2
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/id_table.h +0 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/insns.inc +249 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/insns_info.inc +9374 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/internal.h +608 -100
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/iseq.h +127 -91
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/known_errors.inc +477 -432
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/method.h +28 -15
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/mjit.h +148 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/mjit_compile.inc +4224 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/node.h +449 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/node_name.inc +6 -18
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/opt_sc.inc +109 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/parse.h +210 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/regenc.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/regint.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/regparse.h +1 -1
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/revision.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ruby_assert.h +6 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/ruby_atomic.h +14 -3
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/siphash.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/symbol.h +1 -1
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/thread_pthread.h +75 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/thread_win32.h +0 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/timev.h +53 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/transcode_data.h +0 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/transient_heap.h +60 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/version.h +7 -7
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/vm.inc +4502 -0
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/vm_call_iseq_optimized.inc +213 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/vm_core.h +385 -182
- data/lib/debase/ruby_core_source/{ruby-2.5.0-rc1 → ruby-2.6.0-p0}/vm_debug.h +0 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/vm_exec.h +33 -13
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/vm_insnhelper.h +316 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.0-p0}/vm_opts.h +18 -5
- data/lib/debase/ruby_core_source/ruby-2.6.0-p0/vmtc.inc +243 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/addr2line.h +21 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ccan/list/list.h +788 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ccan/str/str.h +16 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/constant.h +51 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/debug_counter.h +283 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/dln.h +51 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/encindex.h +69 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/eval_intern.h +333 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/gc.h +116 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/hrtime.h +168 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/id.h +252 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/id_table.h +31 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/insns.inc +249 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/insns_info.inc +9374 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/internal.h +2470 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/iseq.h +304 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/method.h +229 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/mjit.h +148 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/mjit_compile.inc +4226 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/node.h +449 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/node_name.inc +200 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/opt_sc.inc +109 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.5-p114}/parse.h +47 -31
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/regint.h +938 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/regparse.h +370 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/revision.h +1 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ruby_assert.h +60 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/ruby_atomic.h +244 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/symbol.h +112 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/thread_pthread.h +75 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/thread_win32.h +36 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/timev.h +53 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/transcode_data.h +139 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/transient_heap.h +60 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.6.5-p114}/version.h +7 -7
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm.inc +4504 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_call_iseq_optimized.inc +213 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_core.h +1910 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_debug.h +37 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_exec.h +202 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_insnhelper.h +316 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vm_opts.h +70 -0
- data/lib/debase/ruby_core_source/ruby-2.6.5-p114/vmtc.inc +243 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/addr2line.h +21 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/builtin.h +78 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/list/list.h +788 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/str/str.h +16 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/constant.h +50 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/debug_counter.h +390 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/dln.h +51 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/encindex.h +69 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/eval_intern.h +312 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/gc.h +131 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/hrtime.h +168 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/id.h +290 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/id_table.h +34 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/insns.inc +253 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/insns_info.inc +9197 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/internal.h +2697 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/iseq.h +312 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/method.h +229 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/mjit.h +177 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/mjit_compile.inc +7779 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/node.h +476 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/node_name.inc +208 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/opt_sc.inc +109 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/parse.h +210 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regint.h +938 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regparse.h +370 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/revision.h +2 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ruby_assert.h +15 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ruby_atomic.h +244 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/symbol.h +119 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/thread_pthread.h +75 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/thread_win32.h +36 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/timev.h +56 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/transcode_data.h +139 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/transient_heap.h +62 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/variable.h +9 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/version.h +77 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm.inc +5466 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_call_iseq_optimized.inc +237 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_core.h +1968 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_debug.h +34 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_exec.h +193 -0
- data/lib/debase/ruby_core_source/{ruby-2.5.0-preview1 → ruby-2.7.0-p0}/vm_insnhelper.h +81 -64
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_opts.h +72 -0
- data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vmtc.inc +247 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/addr2line.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/builtin.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/list/list.h +788 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/str/str.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/constant.h +55 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/dln.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/eval_intern.h +312 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/gc.h +140 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/hrtime.h +168 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/id.h +290 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/id_table.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/insns.inc +249 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/insns_info.inc +8979 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/array.h +114 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/bignum.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/bits.h +566 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/class.h +168 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compar.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compile.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compilers.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/cont.h +25 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/dir.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enc.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/encoding.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enum.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enumerator.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/error.h +131 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/file.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/fixnum.h +185 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/gc.h +154 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/hash.h +240 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/imemo.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/inits.h +51 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/io.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/load.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/loadpath.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/math.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/mjit.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/numeric.h +252 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/object.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/parse.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/proc.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/process.h +136 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/range.h +37 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/rational.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/re.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/sanitizers.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/scheduler.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/serial.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/signal.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/static_assert.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/string.h +135 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/struct.h +154 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/symbol.h +41 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/thread.h +60 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/time.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/transcode.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/util.h +31 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/variable.h +83 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/vm.h +135 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/warnings.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/iseq.h +304 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/method.h +245 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/mjit.h +197 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/mjit_compile.inc +8082 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/node.h +484 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/node_name.inc +210 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/opt_sc.inc +109 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/parse.h +211 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/probes_helper.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ractor.h +271 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ractor_pub.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regint.h +938 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regparse.h +370 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/revision.h +2 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ruby_assert.h +15 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ruby_atomic.h +236 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/symbol.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/thread_pthread.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/thread_win32.h +66 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/timev.h +57 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/transient_heap.h +61 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/variable.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/version.h +89 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm.inc +5360 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_callinfo.h +457 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_core.h +1952 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_debug.h +116 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_exec.h +196 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_insnhelper.h +260 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_opts.h +73 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_sync.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vmtc.inc +243 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +335 -102
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/insns.inc +0 -118
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/insns_info.inc +0 -827
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/node.h +0 -523
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/opt_sc.inc +0 -809
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/optinsn.inc +0 -77
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/optunifs.inc +0 -49
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/probes_helper.h +0 -43
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/revision.h +0 -1
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/vm.inc +0 -2935
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/vm_call_iseq_optimized.inc +0 -212
- data/lib/debase/ruby_core_source/ruby-2.5.0-preview1/vmtc.inc +0 -115
- data/lib/debase/ruby_core_source/ruby-2.5.0-rc1/debug_counter.h +0 -109
- data/lib/debase/ruby_core_source/ruby-2.5.0-rc1/revision.h +0 -1
- data/lib/debase/ruby_core_source/ruby-2.5.0-rc1/thread_pthread.h +0 -54
- data/lib/debase/ruby_core_source/ruby-2.5.0-rc1/timev.h +0 -42
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_TIME_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header for Time.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
|
|
13
|
+
#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
|
|
14
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
15
|
+
|
|
16
|
+
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
|
|
17
|
+
# define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
|
|
18
|
+
# define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
|
|
19
|
+
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
|
|
20
|
+
# define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
|
|
21
|
+
# define TIMET_MIN ((time_t)0)
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
|
|
25
|
+
|
|
26
|
+
/* time.c */
|
|
27
|
+
struct timeval rb_time_timeval(VALUE);
|
|
28
|
+
|
|
29
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
30
|
+
/* time.c (export) */
|
|
31
|
+
void ruby_reset_leap_second_info(void);
|
|
32
|
+
void ruby_reset_timezone(void);
|
|
33
|
+
RUBY_SYMBOL_EXPORT_END
|
|
34
|
+
|
|
35
|
+
#endif /* INTERNAL_TIME_H */
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#ifndef INTERNAL_TRANSCODE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_TRANSCODE_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header for Encoding::Converter.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/config.h"
|
|
13
|
+
#include <stddef.h> /* for size_t */
|
|
14
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
15
|
+
#include "ruby/encoding.h" /* for rb_econv_t */
|
|
16
|
+
|
|
17
|
+
/* transcode.c */
|
|
18
|
+
extern VALUE rb_cEncodingConverter;
|
|
19
|
+
size_t rb_econv_memsize(rb_econv_t *);
|
|
20
|
+
|
|
21
|
+
#endif /* INTERNAL_TRANSCODE_H */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_UTIL_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header corresponding util.c.
|
|
11
|
+
* @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
|
|
12
|
+
*/
|
|
13
|
+
#include "ruby/internal/config.h"
|
|
14
|
+
#include <stddef.h> /* for size_t */
|
|
15
|
+
|
|
16
|
+
#ifdef HAVE_SYS_TYPES_H
|
|
17
|
+
# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
|
|
18
|
+
#endif /* `#define`d in ruby/config.h) */
|
|
19
|
+
|
|
20
|
+
/* util.c */
|
|
21
|
+
char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
|
|
22
|
+
char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
|
|
23
|
+
|
|
24
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
25
|
+
/* util.c (export) */
|
|
26
|
+
extern const signed char ruby_digit36_to_number_table[];
|
|
27
|
+
extern const char ruby_hexdigits[];
|
|
28
|
+
extern unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow);
|
|
29
|
+
RUBY_SYMBOL_EXPORT_END
|
|
30
|
+
|
|
31
|
+
#endif /* INTERNAL_UTIL_H */
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_VARIABLE_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header for variables.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/config.h"
|
|
13
|
+
#include <stddef.h> /* for size_t */
|
|
14
|
+
#include "constant.h" /* for rb_const_entry_t */
|
|
15
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
|
16
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
17
|
+
|
|
18
|
+
/* global variable */
|
|
19
|
+
|
|
20
|
+
#define ROBJECT_TRANSIENT_FLAG FL_USER13
|
|
21
|
+
|
|
22
|
+
/* variable.c */
|
|
23
|
+
void rb_gc_mark_global_tbl(void);
|
|
24
|
+
void rb_gc_update_global_tbl(void);
|
|
25
|
+
size_t rb_generic_ivar_memsize(VALUE);
|
|
26
|
+
VALUE rb_search_class_path(VALUE);
|
|
27
|
+
VALUE rb_attr_delete(VALUE, ID);
|
|
28
|
+
VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
|
|
29
|
+
void rb_autoload_str(VALUE mod, ID id, VALUE file);
|
|
30
|
+
VALUE rb_autoload_at_p(VALUE, ID, int);
|
|
31
|
+
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
|
32
|
+
rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
|
|
33
|
+
rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
|
|
34
|
+
void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
|
|
35
|
+
void rb_gvar_ractor_local(const char *name);
|
|
36
|
+
static inline bool ROBJ_TRANSIENT_P(VALUE obj);
|
|
37
|
+
static inline void ROBJ_TRANSIENT_SET(VALUE obj);
|
|
38
|
+
static inline void ROBJ_TRANSIENT_UNSET(VALUE obj);
|
|
39
|
+
|
|
40
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
41
|
+
/* variable.c (export) */
|
|
42
|
+
void rb_mark_generic_ivar(VALUE);
|
|
43
|
+
void rb_mv_generic_ivar(VALUE src, VALUE dst);
|
|
44
|
+
VALUE rb_const_missing(VALUE klass, VALUE name);
|
|
45
|
+
int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
|
|
46
|
+
void rb_iv_tbl_copy(VALUE dst, VALUE src);
|
|
47
|
+
void rb_deprecate_constant(VALUE mod, const char *name);
|
|
48
|
+
RUBY_SYMBOL_EXPORT_END
|
|
49
|
+
|
|
50
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
51
|
+
VALUE rb_gvar_get(ID);
|
|
52
|
+
VALUE rb_gvar_set(ID, VALUE);
|
|
53
|
+
VALUE rb_gvar_defined(ID);
|
|
54
|
+
void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
|
|
55
|
+
MJIT_SYMBOL_EXPORT_END
|
|
56
|
+
|
|
57
|
+
static inline bool
|
|
58
|
+
ROBJ_TRANSIENT_P(VALUE obj)
|
|
59
|
+
{
|
|
60
|
+
#if USE_TRANSIENT_HEAP
|
|
61
|
+
return FL_TEST_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
|
62
|
+
#else
|
|
63
|
+
return false;
|
|
64
|
+
#endif
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static inline void
|
|
68
|
+
ROBJ_TRANSIENT_SET(VALUE obj)
|
|
69
|
+
{
|
|
70
|
+
#if USE_TRANSIENT_HEAP
|
|
71
|
+
FL_SET_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
|
72
|
+
#endif
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static inline void
|
|
76
|
+
ROBJ_TRANSIENT_UNSET(VALUE obj)
|
|
77
|
+
{
|
|
78
|
+
#if USE_TRANSIENT_HEAP
|
|
79
|
+
FL_UNSET_RAW(obj, ROBJECT_TRANSIENT_FLAG);
|
|
80
|
+
#endif
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#endif /* INTERNAL_VARIABLE_H */
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
#ifndef INTERNAL_VM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_VM_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header for RubyVM.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
|
13
|
+
#include "internal/serial.h" /* for rb_serial_t */
|
|
14
|
+
#include "internal/static_assert.h" /* for STATIC_ASSERT */
|
|
15
|
+
#include "ruby/ruby.h" /* for ID */
|
|
16
|
+
#include "ruby/st.h" /* for st_table */
|
|
17
|
+
|
|
18
|
+
#ifdef rb_funcallv
|
|
19
|
+
# undef rb_funcallv
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#ifdef rb_method_basic_definition_p
|
|
23
|
+
# undef rb_method_basic_definition_p
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
struct rb_callable_method_entry_struct; /* in method.h */
|
|
27
|
+
struct rb_method_definition_struct; /* in method.h */
|
|
28
|
+
struct rb_execution_context_struct; /* in vm_core.h */
|
|
29
|
+
struct rb_control_frame_struct; /* in vm_core.h */
|
|
30
|
+
struct rb_calling_info; /* in vm_core.h */
|
|
31
|
+
struct rb_call_data;
|
|
32
|
+
|
|
33
|
+
enum method_missing_reason {
|
|
34
|
+
MISSING_NOENTRY = 0x00,
|
|
35
|
+
MISSING_PRIVATE = 0x01,
|
|
36
|
+
MISSING_PROTECTED = 0x02,
|
|
37
|
+
MISSING_FCALL = 0x04,
|
|
38
|
+
MISSING_VCALL = 0x08,
|
|
39
|
+
MISSING_SUPER = 0x10,
|
|
40
|
+
MISSING_MISSING = 0x20,
|
|
41
|
+
MISSING_NONE = 0x40
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/* vm_insnhelper.h */
|
|
45
|
+
rb_serial_t rb_next_class_serial(void);
|
|
46
|
+
|
|
47
|
+
/* vm.c */
|
|
48
|
+
VALUE rb_obj_is_thread(VALUE obj);
|
|
49
|
+
void rb_vm_mark(void *ptr);
|
|
50
|
+
PUREFUNC(VALUE rb_vm_top_self(void));
|
|
51
|
+
void rb_vm_inc_const_missing_count(void);
|
|
52
|
+
const void **rb_vm_get_insns_address_table(void);
|
|
53
|
+
VALUE rb_source_location(int *pline);
|
|
54
|
+
const char *rb_source_location_cstr(int *pline);
|
|
55
|
+
MJIT_STATIC void rb_vm_pop_cfunc_frame(void);
|
|
56
|
+
int rb_vm_add_root_module(ID id, VALUE module);
|
|
57
|
+
void rb_vm_check_redefinition_by_prepend(VALUE klass);
|
|
58
|
+
int rb_vm_check_optimizable_mid(VALUE mid);
|
|
59
|
+
VALUE rb_yield_refine_block(VALUE refinement, VALUE refinements);
|
|
60
|
+
MJIT_STATIC VALUE ruby_vm_special_exception_copy(VALUE);
|
|
61
|
+
PUREFUNC(st_table *rb_vm_fstring_table(void));
|
|
62
|
+
|
|
63
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
64
|
+
VALUE vm_exec(struct rb_execution_context_struct *, int); /* used in JIT-ed code */
|
|
65
|
+
MJIT_SYMBOL_EXPORT_END
|
|
66
|
+
|
|
67
|
+
/* vm_eval.c */
|
|
68
|
+
VALUE rb_current_realfilepath(void);
|
|
69
|
+
VALUE rb_check_block_call(VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE);
|
|
70
|
+
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE);
|
|
71
|
+
VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv,
|
|
72
|
+
rb_check_funcall_hook *hook, VALUE arg);
|
|
73
|
+
VALUE rb_check_funcall_with_hook_kw(VALUE recv, ID mid, int argc, const VALUE *argv,
|
|
74
|
+
rb_check_funcall_hook *hook, VALUE arg, int kw_splat);
|
|
75
|
+
const char *rb_type_str(enum ruby_value_type type);
|
|
76
|
+
VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE);
|
|
77
|
+
VALUE rb_yield_1(VALUE val);
|
|
78
|
+
VALUE rb_yield_force_blockarg(VALUE values);
|
|
79
|
+
VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv,
|
|
80
|
+
rb_block_call_func_t bl_proc, int min_argc, int max_argc,
|
|
81
|
+
VALUE data2);
|
|
82
|
+
|
|
83
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
84
|
+
VALUE rb_vm_call0(struct rb_execution_context_struct *ec, VALUE recv, ID id, int argc, const VALUE *argv, const struct rb_callable_method_entry_struct *me, int kw_splat);
|
|
85
|
+
VALUE rb_vm_call_kw(struct rb_execution_context_struct *ec, VALUE recv, VALUE id, int argc, const VALUE *argv, const struct rb_callable_method_entry_struct *me, int kw_splat);
|
|
86
|
+
VALUE rb_make_no_method_exception(VALUE exc, VALUE format, VALUE obj, int argc, const VALUE *argv, int priv);
|
|
87
|
+
MJIT_SYMBOL_EXPORT_END
|
|
88
|
+
|
|
89
|
+
/* vm_insnhelper.c */
|
|
90
|
+
VALUE rb_equal_opt(VALUE obj1, VALUE obj2);
|
|
91
|
+
VALUE rb_eql_opt(VALUE obj1, VALUE obj2);
|
|
92
|
+
|
|
93
|
+
struct rb_iseq_struct;
|
|
94
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
95
|
+
void rb_vm_search_method_slowpath(VALUE cd_owner, struct rb_call_data *cd, VALUE klass);
|
|
96
|
+
MJIT_SYMBOL_EXPORT_END
|
|
97
|
+
|
|
98
|
+
/* vm_method.c */
|
|
99
|
+
struct rb_execution_context_struct;
|
|
100
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
101
|
+
int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID id, int priv);
|
|
102
|
+
MJIT_SYMBOL_EXPORT_END
|
|
103
|
+
|
|
104
|
+
/* vm_dump.c */
|
|
105
|
+
void rb_print_backtrace(void);
|
|
106
|
+
|
|
107
|
+
/* vm_backtrace.c */
|
|
108
|
+
VALUE rb_vm_thread_backtrace(int argc, const VALUE *argv, VALUE thval);
|
|
109
|
+
VALUE rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval);
|
|
110
|
+
VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
111
|
+
VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
112
|
+
VALUE rb_make_backtrace(void);
|
|
113
|
+
void rb_backtrace_print_as_bugreport(void);
|
|
114
|
+
int rb_backtrace_p(VALUE obj);
|
|
115
|
+
VALUE rb_backtrace_to_str_ary(VALUE obj);
|
|
116
|
+
VALUE rb_backtrace_to_location_ary(VALUE obj);
|
|
117
|
+
void rb_backtrace_each(VALUE (*iter)(VALUE recv, VALUE str), VALUE output);
|
|
118
|
+
|
|
119
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
|
120
|
+
VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec);
|
|
121
|
+
void rb_backtrace_use_iseq_first_lineno_for_last_location(VALUE self);
|
|
122
|
+
MJIT_SYMBOL_EXPORT_END
|
|
123
|
+
|
|
124
|
+
#define RUBY_DTRACE_CREATE_HOOK(name, arg) \
|
|
125
|
+
RUBY_DTRACE_HOOK(name##_CREATE, arg)
|
|
126
|
+
#define RUBY_DTRACE_HOOK(name, arg) \
|
|
127
|
+
do { \
|
|
128
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
|
129
|
+
int dtrace_line; \
|
|
130
|
+
const char *dtrace_file = rb_source_location_cstr(&dtrace_line); \
|
|
131
|
+
if (!dtrace_file) dtrace_file = ""; \
|
|
132
|
+
RUBY_DTRACE_##name(arg, dtrace_file, dtrace_line); \
|
|
133
|
+
} \
|
|
134
|
+
} while (0)
|
|
135
|
+
#endif /* INTERNAL_VM_H */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#ifndef INTERNAL_WARNINGS_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_WARNINGS_H
|
|
3
|
+
/**
|
|
4
|
+
* @file
|
|
5
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
6
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
7
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
8
|
+
* modify this file, provided that the conditions mentioned in the
|
|
9
|
+
* file COPYING are met. Consult the file for details.
|
|
10
|
+
* @brief Internal header to suppres / mandate warnings.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/warning_push.h"
|
|
13
|
+
#define COMPILER_WARNING_PUSH RBIMPL_WARNING_PUSH()
|
|
14
|
+
#define COMPILER_WARNING_POP RBIMPL_WARNING_POP()
|
|
15
|
+
#define COMPILER_WARNING_ERROR(flag) RBIMPL_WARNING_ERROR(flag)
|
|
16
|
+
#define COMPILER_WARNING_IGNORED(flag) RBIMPL_WARNING_IGNORED(flag)
|
|
17
|
+
#endif /* INTERNAL_WARNINGS_H */
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
#ifndef RUBY_ISEQ_H
|
|
2
|
+
#define RUBY_ISEQ_H 1
|
|
3
|
+
/**********************************************************************
|
|
4
|
+
|
|
5
|
+
iseq.h -
|
|
6
|
+
|
|
7
|
+
$Author$
|
|
8
|
+
created at: 04/01/01 23:36:57 JST
|
|
9
|
+
|
|
10
|
+
Copyright (C) 2004-2008 Koichi Sasada
|
|
11
|
+
|
|
12
|
+
**********************************************************************/
|
|
13
|
+
#include "internal/gc.h"
|
|
14
|
+
#include "vm_core.h"
|
|
15
|
+
|
|
16
|
+
RUBY_EXTERN const int ruby_api_version[];
|
|
17
|
+
#define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
|
|
18
|
+
#define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
|
|
19
|
+
|
|
20
|
+
#ifndef rb_iseq_t
|
|
21
|
+
typedef struct rb_iseq_struct rb_iseq_t;
|
|
22
|
+
#define rb_iseq_t rb_iseq_t
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
extern const ID rb_iseq_shared_exc_local_tbl[];
|
|
26
|
+
|
|
27
|
+
#define ISEQ_COVERAGE(iseq) iseq->body->variable.coverage
|
|
28
|
+
#define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE(iseq, &iseq->body->variable.coverage, cov)
|
|
29
|
+
#define ISEQ_LINE_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_LINES)
|
|
30
|
+
#define ISEQ_BRANCH_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_BRANCHES)
|
|
31
|
+
|
|
32
|
+
#define ISEQ_PC2BRANCHINDEX(iseq) iseq->body->variable.pc2branchindex
|
|
33
|
+
#define ISEQ_PC2BRANCHINDEX_SET(iseq, h) RB_OBJ_WRITE(iseq, &iseq->body->variable.pc2branchindex, h)
|
|
34
|
+
|
|
35
|
+
#define ISEQ_FLIP_CNT(iseq) (iseq)->body->variable.flip_count
|
|
36
|
+
|
|
37
|
+
static inline rb_snum_t
|
|
38
|
+
ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq)
|
|
39
|
+
{
|
|
40
|
+
rb_snum_t cnt = iseq->body->variable.flip_count;
|
|
41
|
+
iseq->body->variable.flip_count += 1;
|
|
42
|
+
return cnt;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static inline VALUE *
|
|
46
|
+
ISEQ_ORIGINAL_ISEQ(const rb_iseq_t *iseq)
|
|
47
|
+
{
|
|
48
|
+
return iseq->body->variable.original_iseq;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static inline void
|
|
52
|
+
ISEQ_ORIGINAL_ISEQ_CLEAR(const rb_iseq_t *iseq)
|
|
53
|
+
{
|
|
54
|
+
void *ptr = iseq->body->variable.original_iseq;
|
|
55
|
+
iseq->body->variable.original_iseq = NULL;
|
|
56
|
+
if (ptr) {
|
|
57
|
+
ruby_xfree(ptr);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static inline VALUE *
|
|
62
|
+
ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
|
|
63
|
+
{
|
|
64
|
+
return iseq->body->variable.original_iseq =
|
|
65
|
+
ALLOC_N(VALUE, size);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \
|
|
69
|
+
RUBY_EVENT_CLASS | \
|
|
70
|
+
RUBY_EVENT_END | \
|
|
71
|
+
RUBY_EVENT_CALL | \
|
|
72
|
+
RUBY_EVENT_RETURN| \
|
|
73
|
+
RUBY_EVENT_B_CALL| \
|
|
74
|
+
RUBY_EVENT_B_RETURN| \
|
|
75
|
+
RUBY_EVENT_COVERAGE_LINE| \
|
|
76
|
+
RUBY_EVENT_COVERAGE_BRANCH)
|
|
77
|
+
|
|
78
|
+
#define ISEQ_NOT_LOADED_YET IMEMO_FL_USER1
|
|
79
|
+
#define ISEQ_USE_COMPILE_DATA IMEMO_FL_USER2
|
|
80
|
+
#define ISEQ_TRANSLATED IMEMO_FL_USER3
|
|
81
|
+
#define ISEQ_MARKABLE_ISEQ IMEMO_FL_USER4
|
|
82
|
+
|
|
83
|
+
#define ISEQ_EXECUTABLE_P(iseq) (FL_TEST_RAW(((VALUE)iseq), ISEQ_NOT_LOADED_YET | ISEQ_USE_COMPILE_DATA) == 0)
|
|
84
|
+
|
|
85
|
+
struct iseq_compile_data {
|
|
86
|
+
/* GC is needed */
|
|
87
|
+
const VALUE err_info;
|
|
88
|
+
const VALUE catch_table_ary; /* Array */
|
|
89
|
+
|
|
90
|
+
/* GC is not needed */
|
|
91
|
+
struct iseq_label_data *start_label;
|
|
92
|
+
struct iseq_label_data *end_label;
|
|
93
|
+
struct iseq_label_data *redo_label;
|
|
94
|
+
const rb_iseq_t *current_block;
|
|
95
|
+
struct iseq_compile_data_ensure_node_stack *ensure_node_stack;
|
|
96
|
+
struct {
|
|
97
|
+
struct iseq_compile_data_storage *storage_head;
|
|
98
|
+
struct iseq_compile_data_storage *storage_current;
|
|
99
|
+
} node;
|
|
100
|
+
struct {
|
|
101
|
+
struct iseq_compile_data_storage *storage_head;
|
|
102
|
+
struct iseq_compile_data_storage *storage_current;
|
|
103
|
+
} insn;
|
|
104
|
+
int loopval_popped; /* used by NODE_BREAK */
|
|
105
|
+
int last_line;
|
|
106
|
+
int label_no;
|
|
107
|
+
int node_level;
|
|
108
|
+
unsigned int ci_index;
|
|
109
|
+
const rb_compile_option_t *option;
|
|
110
|
+
struct rb_id_table *ivar_cache_table;
|
|
111
|
+
const struct rb_builtin_function *builtin_function_table;
|
|
112
|
+
#if OPT_SUPPORT_JOKE
|
|
113
|
+
st_table *labels_table;
|
|
114
|
+
#endif
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
static inline struct iseq_compile_data *
|
|
118
|
+
ISEQ_COMPILE_DATA(const rb_iseq_t *iseq)
|
|
119
|
+
{
|
|
120
|
+
if (iseq->flags & ISEQ_USE_COMPILE_DATA) {
|
|
121
|
+
return iseq->aux.compile_data;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
return NULL;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static inline void
|
|
129
|
+
ISEQ_COMPILE_DATA_ALLOC(rb_iseq_t *iseq)
|
|
130
|
+
{
|
|
131
|
+
iseq->aux.compile_data = ZALLOC(struct iseq_compile_data);
|
|
132
|
+
iseq->flags |= ISEQ_USE_COMPILE_DATA;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static inline void
|
|
136
|
+
ISEQ_COMPILE_DATA_CLEAR(rb_iseq_t *iseq)
|
|
137
|
+
{
|
|
138
|
+
iseq->flags &= ~ISEQ_USE_COMPILE_DATA;
|
|
139
|
+
iseq->aux.compile_data = NULL;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static inline rb_iseq_t *
|
|
143
|
+
iseq_imemo_alloc(void)
|
|
144
|
+
{
|
|
145
|
+
return (rb_iseq_t *)rb_imemo_new(imemo_iseq, 0, 0, 0, 0);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
VALUE rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt);
|
|
149
|
+
void rb_ibf_load_iseq_complete(rb_iseq_t *iseq);
|
|
150
|
+
const rb_iseq_t *rb_iseq_ibf_load(VALUE str);
|
|
151
|
+
const rb_iseq_t *rb_iseq_ibf_load_bytes(const char *cstr, size_t);
|
|
152
|
+
VALUE rb_iseq_ibf_load_extra_data(VALUE str);
|
|
153
|
+
void rb_iseq_init_trace(rb_iseq_t *iseq);
|
|
154
|
+
int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line);
|
|
155
|
+
int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
|
|
156
|
+
const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
|
|
157
|
+
|
|
158
|
+
#if VM_INSN_INFO_TABLE_IMPL == 2
|
|
159
|
+
unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
163
|
+
|
|
164
|
+
/* compile.c */
|
|
165
|
+
VALUE rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node);
|
|
166
|
+
VALUE rb_iseq_compile_callback(rb_iseq_t *iseq, const struct rb_iseq_new_with_callback_callback_func * ifunc);
|
|
167
|
+
VALUE *rb_iseq_original_iseq(const rb_iseq_t *iseq);
|
|
168
|
+
void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc,
|
|
169
|
+
VALUE locals, VALUE args,
|
|
170
|
+
VALUE exception, VALUE body);
|
|
171
|
+
void rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *arena);
|
|
172
|
+
|
|
173
|
+
/* iseq.c */
|
|
174
|
+
VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
|
|
175
|
+
VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
|
|
176
|
+
unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
|
|
177
|
+
void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events);
|
|
178
|
+
void rb_iseq_trace_set_all(rb_event_flag_t turnon_events);
|
|
179
|
+
void rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq);
|
|
180
|
+
|
|
181
|
+
struct rb_iseq_constant_body *rb_iseq_constant_body_alloc(void);
|
|
182
|
+
VALUE rb_iseqw_new(const rb_iseq_t *iseq);
|
|
183
|
+
const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
|
|
184
|
+
|
|
185
|
+
VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq); /* obsolete */
|
|
186
|
+
VALUE rb_iseq_label(const rb_iseq_t *iseq);
|
|
187
|
+
VALUE rb_iseq_base_label(const rb_iseq_t *iseq);
|
|
188
|
+
VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq);
|
|
189
|
+
VALUE rb_iseq_method_name(const rb_iseq_t *iseq);
|
|
190
|
+
void rb_iseq_code_location(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
|
|
191
|
+
|
|
192
|
+
void rb_iseq_remove_coverage_all(void);
|
|
193
|
+
|
|
194
|
+
/* proc.c */
|
|
195
|
+
const rb_iseq_t *rb_method_iseq(VALUE body);
|
|
196
|
+
const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
|
|
197
|
+
|
|
198
|
+
struct rb_compile_option_struct {
|
|
199
|
+
unsigned int inline_const_cache: 1;
|
|
200
|
+
unsigned int peephole_optimization: 1;
|
|
201
|
+
unsigned int tailcall_optimization: 1;
|
|
202
|
+
unsigned int specialized_instruction: 1;
|
|
203
|
+
unsigned int operands_unification: 1;
|
|
204
|
+
unsigned int instructions_unification: 1;
|
|
205
|
+
unsigned int stack_caching: 1;
|
|
206
|
+
unsigned int frozen_string_literal: 1;
|
|
207
|
+
unsigned int debug_frozen_string_literal: 1;
|
|
208
|
+
unsigned int coverage_enabled: 1;
|
|
209
|
+
int debug_level;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
struct iseq_insn_info_entry {
|
|
213
|
+
int line_no;
|
|
214
|
+
rb_event_flag_t events;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
struct iseq_catch_table_entry {
|
|
218
|
+
enum catch_type {
|
|
219
|
+
CATCH_TYPE_RESCUE = INT2FIX(1),
|
|
220
|
+
CATCH_TYPE_ENSURE = INT2FIX(2),
|
|
221
|
+
CATCH_TYPE_RETRY = INT2FIX(3),
|
|
222
|
+
CATCH_TYPE_BREAK = INT2FIX(4),
|
|
223
|
+
CATCH_TYPE_REDO = INT2FIX(5),
|
|
224
|
+
CATCH_TYPE_NEXT = INT2FIX(6)
|
|
225
|
+
} type;
|
|
226
|
+
|
|
227
|
+
/*
|
|
228
|
+
* iseq type:
|
|
229
|
+
* CATCH_TYPE_RESCUE, CATCH_TYPE_ENSURE:
|
|
230
|
+
* use iseq as continuation.
|
|
231
|
+
*
|
|
232
|
+
* CATCH_TYPE_BREAK (iter):
|
|
233
|
+
* use iseq as key.
|
|
234
|
+
*
|
|
235
|
+
* CATCH_TYPE_BREAK (while), CATCH_TYPE_RETRY,
|
|
236
|
+
* CATCH_TYPE_REDO, CATCH_TYPE_NEXT:
|
|
237
|
+
* NULL.
|
|
238
|
+
*/
|
|
239
|
+
rb_iseq_t *iseq;
|
|
240
|
+
|
|
241
|
+
unsigned int start;
|
|
242
|
+
unsigned int end;
|
|
243
|
+
unsigned int cont;
|
|
244
|
+
unsigned int sp;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
PACKED_STRUCT_UNALIGNED(struct iseq_catch_table {
|
|
248
|
+
unsigned int size;
|
|
249
|
+
struct iseq_catch_table_entry entries[FLEX_ARY_LEN];
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
static inline int
|
|
253
|
+
iseq_catch_table_bytes(int n)
|
|
254
|
+
{
|
|
255
|
+
enum {
|
|
256
|
+
catch_table_entry_size = sizeof(struct iseq_catch_table_entry),
|
|
257
|
+
catch_table_entries_max = (INT_MAX - offsetof(struct iseq_catch_table, entries)) / catch_table_entry_size
|
|
258
|
+
};
|
|
259
|
+
if (n > catch_table_entries_max) rb_fatal("too large iseq_catch_table - %d", n);
|
|
260
|
+
return (int)(offsetof(struct iseq_catch_table, entries) +
|
|
261
|
+
n * catch_table_entry_size);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
#define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
|
|
265
|
+
|
|
266
|
+
struct iseq_compile_data_storage {
|
|
267
|
+
struct iseq_compile_data_storage *next;
|
|
268
|
+
unsigned int pos;
|
|
269
|
+
unsigned int size;
|
|
270
|
+
char buff[FLEX_ARY_LEN];
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/* defined? */
|
|
274
|
+
|
|
275
|
+
enum defined_type {
|
|
276
|
+
DEFINED_NOT_DEFINED,
|
|
277
|
+
DEFINED_NIL = 1,
|
|
278
|
+
DEFINED_IVAR,
|
|
279
|
+
DEFINED_LVAR,
|
|
280
|
+
DEFINED_GVAR,
|
|
281
|
+
DEFINED_CVAR,
|
|
282
|
+
DEFINED_CONST,
|
|
283
|
+
DEFINED_METHOD,
|
|
284
|
+
DEFINED_YIELD,
|
|
285
|
+
DEFINED_ZSUPER,
|
|
286
|
+
DEFINED_SELF,
|
|
287
|
+
DEFINED_TRUE,
|
|
288
|
+
DEFINED_FALSE,
|
|
289
|
+
DEFINED_ASGN,
|
|
290
|
+
DEFINED_EXPR,
|
|
291
|
+
DEFINED_IVAR2,
|
|
292
|
+
DEFINED_REF,
|
|
293
|
+
DEFINED_FUNC,
|
|
294
|
+
DEFINED_CONST_FROM
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
VALUE rb_iseq_defined_string(enum defined_type type);
|
|
298
|
+
|
|
299
|
+
/* vm.c */
|
|
300
|
+
VALUE rb_iseq_local_variables(const rb_iseq_t *iseq);
|
|
301
|
+
|
|
302
|
+
RUBY_SYMBOL_EXPORT_END
|
|
303
|
+
|
|
304
|
+
#endif /* RUBY_ISEQ_H */
|