debase-ruby_core_source 3.3.6 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +6 -0
  4. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/builtin.h +7 -1
  5. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/darray.h +1 -3
  6. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/id.h +5 -0
  7. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns.inc +2 -0
  8. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns_info.inc +310 -175
  9. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/basic_operators.h +1 -0
  10. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/bits.h +82 -0
  11. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/encoding.h +2 -0
  12. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/error.h +26 -0
  13. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/fixnum.h +1 -0
  14. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/gc.h +14 -6
  15. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/imemo.h +6 -1
  16. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/io.h +1 -1
  17. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/parse.h +2 -1
  18. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/proc.h +1 -0
  19. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/ractor.h +4 -0
  20. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/sanitizers.h +31 -39
  21. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/string.h +22 -10
  22. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/thread.h +23 -0
  23. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/vm.h +1 -1
  24. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/method.h +1 -0
  25. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/optunifs.inc +1 -1
  26. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/parse.h +2 -2
  27. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/ast.h +427 -3
  28. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/defines.h +8 -7
  29. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/diagnostic.h +1 -0
  30. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/extension.h +1 -1
  31. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prism.h +47 -11
  32. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/version.h +2 -2
  33. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism_compile.h +5 -5
  34. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/ractor_core.h +6 -6
  35. data/lib/debase/ruby_core_source/ruby-3.4.0/revision.h +5 -0
  36. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/rubyparser.h +3 -2
  37. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/thread_pthread.h +0 -1
  38. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/version.h +1 -1
  39. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm.inc +151 -88
  40. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_core.h +40 -12
  41. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_sync.h +3 -3
  42. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vmtc.inc +2 -0
  43. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/yjit.h +1 -0
  44. data/lib/debase/ruby_core_source/version.rb +1 -1
  45. metadata +147 -293
  46. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
  47. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
  48. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
  49. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +0 -343
  50. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
  51. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
  52. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +0 -151
  53. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +0 -63
  54. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +0 -568
  55. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +0 -283
  56. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +0 -216
  57. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +0 -184
  58. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +0 -334
  59. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +0 -191
  60. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +0 -260
  61. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +0 -140
  62. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +0 -117
  63. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +0 -6
  64. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +0 -297
  65. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +0 -182
  66. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +0 -79
  67. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +0 -137
  68. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
  69. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +0 -255
  70. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
  71. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
  72. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +0 -6245
  73. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +0 -206
  74. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +0 -433
  75. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +0 -19
  76. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +0 -150
  77. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +0 -305
  78. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +0 -891
  79. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
  80. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +0 -120
  81. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +0 -205
  82. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +0 -226
  83. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +0 -119
  84. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +0 -102
  85. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +0 -174
  86. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
  87. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +0 -29
  88. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +0 -88
  89. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +0 -393
  90. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
  91. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
  92. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +0 -1430
  93. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +0 -233
  94. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
  95. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +0 -166
  96. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
  97. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
  98. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
  99. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +0 -2236
  100. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
  101. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
  102. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
  103. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
  104. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
  105. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +0 -40
  106. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +0 -63
  107. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +0 -142
  108. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +0 -791
  109. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +0 -17
  110. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
  111. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
  112. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
  113. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
  114. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +0 -39
  115. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +0 -244
  116. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +0 -65
  117. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +0 -29
  118. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +0 -34
  119. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +0 -107
  120. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +0 -29
  121. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +0 -35
  122. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +0 -16
  123. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +0 -19
  124. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
  125. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +0 -18
  126. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +0 -21
  127. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +0 -33
  128. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +0 -38
  129. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +0 -47
  130. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +0 -18
  131. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +0 -16
  132. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +0 -23
  133. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +0 -19
  134. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +0 -274
  135. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +0 -63
  136. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +0 -30
  137. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +0 -124
  138. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +0 -17
  139. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +0 -40
  140. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +0 -71
  141. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +0 -28
  142. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +0 -102
  143. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +0 -23
  144. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +0 -24
  145. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +0 -11
  146. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +0 -16
  147. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +0 -127
  148. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +0 -45
  149. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +0 -34
  150. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +0 -23
  151. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +0 -27
  152. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +0 -72
  153. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +0 -16
  154. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +0 -108
  155. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +0 -340
  156. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +0 -111
  157. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
  158. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
  159. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
  160. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
  161. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +0 -162
  162. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +0 -106
  163. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +0 -283
  164. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +0 -163
  165. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +0 -34
  166. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
  167. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +0 -218
  168. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +0 -97
  169. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +0 -29
  170. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +0 -32
  171. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +0 -46
  172. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
  173. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
  174. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
  175. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
  176. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
  177. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
  178. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +0 -14
  179. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +0 -23
  180. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
  181. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +0 -21
  182. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
  183. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
  184. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
  185. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
  186. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
  187. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +0 -124
  188. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
  189. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +0 -67
  190. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
  191. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/addr2line.h +0 -0
  192. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/build_assert/build_assert.h +0 -0
  193. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/check_type/check_type.h +0 -0
  194. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/container_of/container_of.h +0 -0
  195. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/list/list.h +0 -0
  196. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/str/str.h +0 -0
  197. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/constant.h +0 -0
  198. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/debug_counter.h +0 -0
  199. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/dln.h +0 -0
  200. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/encindex.h +0 -0
  201. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/eval_intern.h +0 -0
  202. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/hrtime.h +0 -0
  203. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/id_table.h +0 -0
  204. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/array.h +0 -0
  205. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/bignum.h +0 -0
  206. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/class.h +0 -0
  207. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cmdlineopt.h +0 -0
  208. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compar.h +0 -0
  209. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compile.h +0 -0
  210. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compilers.h +0 -0
  211. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/complex.h +0 -0
  212. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cont.h +0 -0
  213. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/dir.h +0 -0
  214. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enc.h +0 -0
  215. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enum.h +0 -0
  216. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enumerator.h +0 -0
  217. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/eval.h +0 -0
  218. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/file.h +0 -0
  219. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/hash.h +0 -0
  220. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/inits.h +0 -0
  221. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/load.h +0 -0
  222. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/loadpath.h +0 -0
  223. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/math.h +0 -0
  224. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/missing.h +0 -0
  225. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/numeric.h +0 -0
  226. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/object.h +0 -0
  227. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/process.h +0 -0
  228. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/random.h +0 -0
  229. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/range.h +0 -0
  230. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/rational.h +0 -0
  231. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/re.h +0 -0
  232. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/ruby_parser.h +0 -0
  233. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/serial.h +0 -0
  234. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/signal.h +0 -0
  235. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/st.h +0 -0
  236. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/static_assert.h +0 -0
  237. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/struct.h +0 -0
  238. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/symbol.h +0 -0
  239. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/time.h +0 -0
  240. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/transcode.h +0 -0
  241. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/util.h +0 -0
  242. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/variable.h +0 -0
  243. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/warnings.h +0 -0
  244. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal.h +0 -0
  245. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/iseq.h +0 -0
  246. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/known_errors.inc +0 -0
  247. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node.h +0 -0
  248. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node_name.inc +0 -0
  249. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/optinsn.inc +0 -0
  250. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_bits.h +0 -0
  251. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_node.h +0 -0
  252. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_st.h +0 -0
  253. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_value.h +0 -0
  254. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/encoding.h +0 -0
  255. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/node.h +0 -0
  256. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/options.h +0 -0
  257. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/pack.h +0 -0
  258. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/parser.h +0 -0
  259. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prettyprint.h +0 -0
  260. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/regexp.h +0 -0
  261. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/static_literals.h +0 -0
  262. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_buffer.h +0 -0
  263. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_char.h +0 -0
  264. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_constant_pool.h +0 -0
  265. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_integer.h +0 -0
  266. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_list.h +0 -0
  267. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_memchr.h +0 -0
  268. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_newline_list.h +0 -0
  269. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_string.h +0 -0
  270. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strncasecmp.h +0 -0
  271. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strpbrk.h +0 -0
  272. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/probes_helper.h +0 -0
  273. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regenc.h +0 -0
  274. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/regint.h +0 -0
  275. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regparse.h +0 -0
  276. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit.h +0 -0
  277. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit_c.h +0 -0
  278. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_assert.h +0 -0
  279. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_atomic.h +0 -0
  280. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/shape.h +0 -0
  281. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/siphash.h +0 -0
  282. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/symbol.h +0 -0
  283. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_none.h +0 -0
  284. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_win32.h +0 -0
  285. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/timev.h +0 -0
  286. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/transcode_data.h +0 -0
  287. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/variable.h +0 -0
  288. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_call_iseq_optimized.inc +0 -0
  289. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_callinfo.h +0 -0
  290. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_debug.h +0 -0
  291. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_exec.h +0 -0
  292. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_insnhelper.h +0 -0
  293. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_opts.h +0 -0
@@ -1,23 +0,0 @@
1
- #ifndef INTERNAL_TRANSCODE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_TRANSCODE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Encoding::Converter.
10
- */
11
- #include "ruby/internal/config.h"
12
- #include <stddef.h> /* for size_t */
13
- #include "ruby/ruby.h" /* for VALUE */
14
- #include "ruby/encoding.h" /* for rb_econv_t */
15
-
16
- /* transcode.c */
17
- extern VALUE rb_cEncodingConverter;
18
- size_t rb_econv_memsize(rb_econv_t *);
19
-
20
- /* vm.c */
21
- void rb_free_transcoder_table(void);
22
-
23
- #endif /* INTERNAL_TRANSCODE_H */
@@ -1,27 +0,0 @@
1
- #ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_UTIL_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header corresponding util.c.
10
- * @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
11
- */
12
- #include "ruby/internal/config.h"
13
- #include <stddef.h> /* for size_t */
14
-
15
- #ifdef HAVE_SYS_TYPES_H
16
- # include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
17
- #endif /* `#define`d in ruby/config.h) */
18
-
19
- /* util.c */
20
- char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
21
- char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
22
-
23
- RUBY_SYMBOL_EXPORT_BEGIN
24
- /* util.c (export) */
25
- RUBY_SYMBOL_EXPORT_END
26
-
27
- #endif /* INTERNAL_UTIL_H */
@@ -1,72 +0,0 @@
1
- #ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_VARIABLE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for variables.
10
- */
11
- #include "ruby/internal/config.h"
12
- #include <stddef.h> /* for size_t */
13
- #include "constant.h" /* for rb_const_entry_t */
14
- #include "ruby/internal/stdbool.h" /* for bool */
15
- #include "ruby/ruby.h" /* for VALUE */
16
- #include "shape.h" /* for rb_shape_t */
17
-
18
- /* variable.c */
19
- void rb_gc_mark_global_tbl(void);
20
- void rb_gc_update_global_tbl(void);
21
- size_t rb_generic_ivar_memsize(VALUE);
22
- VALUE rb_search_class_path(VALUE);
23
- VALUE rb_attr_delete(VALUE, ID);
24
- void rb_autoload_str(VALUE mod, ID id, VALUE file);
25
- VALUE rb_autoload_at_p(VALUE, ID, int);
26
- NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
27
- rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
28
- rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
29
- void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
30
- void rb_gvar_ractor_local(const char *name);
31
-
32
- /**
33
- * Sets the name of a module.
34
- *
35
- * Non-permanently named classes can have a temporary name assigned (or
36
- * cleared). In that case the name will be used for `#inspect` and `#to_s`, and
37
- * nested classes/modules will be named with the temporary name as a prefix.
38
- *
39
- * After the module is assigned to a constant, the temporary name will be
40
- * discarded, and the name will be computed based on the nesting.
41
- *
42
- * @param[in] mod An instance of ::rb_cModule.
43
- * @param[in] name An instance of ::rb_cString.
44
- * @retval mod
45
- */
46
- VALUE rb_mod_set_temporary_name(VALUE, VALUE);
47
-
48
- struct gen_ivtbl;
49
- int rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl);
50
- void rb_obj_copy_ivs_to_hash_table(VALUE obj, st_table *table);
51
- void rb_obj_convert_to_too_complex(VALUE obj, st_table *table);
52
- void rb_evict_ivars_to_hash(VALUE obj);
53
-
54
- RUBY_SYMBOL_EXPORT_BEGIN
55
- /* variable.c (export) */
56
- void rb_mark_generic_ivar(VALUE obj);
57
- void rb_ref_update_generic_ivar(VALUE);
58
- void rb_mv_generic_ivar(VALUE src, VALUE dst);
59
- VALUE rb_const_missing(VALUE klass, VALUE name);
60
- int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
61
- void rb_iv_tbl_copy(VALUE dst, VALUE src);
62
- RUBY_SYMBOL_EXPORT_END
63
-
64
- VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
65
- VALUE rb_gvar_get(ID);
66
- VALUE rb_gvar_set(ID, VALUE);
67
- VALUE rb_gvar_defined(ID);
68
- void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
69
- void rb_ensure_iv_list_size(VALUE obj, uint32_t len, uint32_t newsize);
70
- attr_index_t rb_obj_ivar_set(VALUE obj, ID id, VALUE val);
71
-
72
- #endif /* INTERNAL_VARIABLE_H */
@@ -1,16 +0,0 @@
1
- #ifndef INTERNAL_WARNINGS_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_WARNINGS_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header to suppress / mandate warnings.
10
- */
11
- #include "ruby/internal/warning_push.h"
12
- #define COMPILER_WARNING_PUSH RBIMPL_WARNING_PUSH()
13
- #define COMPILER_WARNING_POP RBIMPL_WARNING_POP()
14
- #define COMPILER_WARNING_ERROR(flag) RBIMPL_WARNING_ERROR(flag)
15
- #define COMPILER_WARNING_IGNORED(flag) RBIMPL_WARNING_IGNORED(flag)
16
- #endif /* INTERNAL_WARNINGS_H */
@@ -1,108 +0,0 @@
1
- #ifndef RUBY_INTERNAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define RUBY_INTERNAL_H 1
3
- /**
4
- * @author $Author$
5
- * @date Tue May 17 11:42:20 JST 2011
6
- * @copyright Copyright (C) 2011 Yukihiro Matsumoto
7
- * @copyright This file is a part of the programming language Ruby.
8
- * Permission is hereby granted, to either redistribute and/or
9
- * modify this file, provided that the conditions mentioned in the
10
- * file COPYING are met. Consult the file for details.
11
- */
12
- #include "ruby/internal/config.h"
13
-
14
- #ifdef __cplusplus
15
- # error not for C++
16
- #endif
17
-
18
- #define LIKELY(x) RB_LIKELY(x)
19
- #define UNLIKELY(x) RB_UNLIKELY(x)
20
-
21
- #define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
22
- #define roomof(x, y) (((x) + (y) - 1) / (y))
23
- #define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
24
-
25
- /* Prevent compiler from reordering access */
26
- #define ACCESS_ONCE(type,x) (*((volatile type *)&(x)))
27
-
28
- #define UNDEF_P RB_UNDEF_P
29
- #define NIL_OR_UNDEF_P RB_NIL_OR_UNDEF_P
30
-
31
- #include "ruby/ruby.h"
32
-
33
- /* Following macros were formerly defined in this header but moved to somewhere
34
- * else. In order to detect them we undef here. */
35
-
36
- /* internal/array.h */
37
- #undef RARRAY_AREF
38
-
39
- /* internal/class.h */
40
- #undef RClass
41
- #undef RCLASS_SUPER
42
-
43
- /* internal/hash.h */
44
- #undef RHASH_IFNONE
45
- #undef RHASH_SIZE
46
- #undef RHASH_TBL
47
- #undef RHASH_EMPTY_P
48
-
49
- /* internal/struct.h */
50
- #undef RSTRUCT_LEN
51
- #undef RSTRUCT_PTR
52
- #undef RSTRUCT_SET
53
- #undef RSTRUCT_GET
54
-
55
- /* Also, we keep the following macros here. They are expected to be
56
- * overridden in each headers. */
57
-
58
- /* internal/array.h */
59
- #define rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__)
60
-
61
- /* internal/io.h */
62
- #define rb_io_fptr_finalize(...) rb_nonexistent_symbol(__VA_ARGS__)
63
-
64
- /* internal/string.h */
65
- #define rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
66
-
67
- /* internal/symbol.h */
68
- #define rb_sym_intern_ascii_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
69
-
70
- /* internal/vm.h */
71
- #define rb_funcallv(...) rb_nonexistent_symbol(__VA_ARGS__)
72
- #define rb_method_basic_definition_p(...) rb_nonexistent_symbol(__VA_ARGS__)
73
-
74
-
75
- /* MRI debug support */
76
-
77
- /* gc.c */
78
- void rb_obj_info_dump(VALUE obj);
79
- void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func);
80
-
81
- /* debug.c */
82
-
83
- RUBY_SYMBOL_EXPORT_BEGIN
84
- void ruby_debug_breakpoint(void);
85
- PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
86
- RUBY_SYMBOL_EXPORT_END
87
-
88
- // show obj data structure without any side-effect
89
- #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
90
-
91
- // same as rp, but add message header
92
- #define rp_m(msg, obj) do { \
93
- fputs((msg), stderr); \
94
- rb_obj_info_dump((VALUE)(obj)); \
95
- } while (0)
96
-
97
- // `ruby_debug_breakpoint()` does nothing,
98
- // but breakpoint is set in run.gdb, so `make gdb` can stop here.
99
- #define bp() ruby_debug_breakpoint()
100
-
101
- #define RBOOL(v) ((v) ? Qtrue : Qfalse)
102
- #define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
103
-
104
- #ifndef __MINGW32__
105
- #undef memcpy
106
- #define memcpy ruby_nonempty_memcpy
107
- #endif
108
- #endif /* RUBY_INTERNAL_H */
@@ -1,340 +0,0 @@
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 "shape.h"
15
- #include "vm_core.h"
16
- #include "prism_compile.h"
17
-
18
- RUBY_EXTERN const int ruby_api_version[];
19
- #define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
20
- #define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
21
-
22
- #define ISEQ_MBITS_SIZE sizeof(iseq_bits_t)
23
- #define ISEQ_MBITS_BITLENGTH (ISEQ_MBITS_SIZE * CHAR_BIT)
24
- #define ISEQ_MBITS_SET(buf, i) (buf[(i) / ISEQ_MBITS_BITLENGTH] |= ((iseq_bits_t)1 << ((i) % ISEQ_MBITS_BITLENGTH)))
25
- #define ISEQ_MBITS_SET_P(buf, i) ((buf[(i) / ISEQ_MBITS_BITLENGTH] >> ((i) % ISEQ_MBITS_BITLENGTH)) & 0x1)
26
- #define ISEQ_MBITS_BUFLEN(size) roomof(size, ISEQ_MBITS_BITLENGTH)
27
-
28
- #ifndef USE_ISEQ_NODE_ID
29
- #define USE_ISEQ_NODE_ID 1
30
- #endif
31
-
32
- #ifndef rb_iseq_t
33
- typedef struct rb_iseq_struct rb_iseq_t;
34
- #define rb_iseq_t rb_iseq_t
35
- #endif
36
- typedef void (*rb_iseq_callback)(const rb_iseq_t *, void *);
37
-
38
- extern const ID rb_iseq_shared_exc_local_tbl[];
39
-
40
- #define ISEQ_COVERAGE(iseq) ISEQ_BODY(iseq)->variable.coverage
41
- #define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE(iseq, &ISEQ_BODY(iseq)->variable.coverage, cov)
42
- #define ISEQ_LINE_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_LINES)
43
- #define ISEQ_BRANCH_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_BRANCHES)
44
-
45
- #define ISEQ_PC2BRANCHINDEX(iseq) ISEQ_BODY(iseq)->variable.pc2branchindex
46
- #define ISEQ_PC2BRANCHINDEX_SET(iseq, h) RB_OBJ_WRITE(iseq, &ISEQ_BODY(iseq)->variable.pc2branchindex, h)
47
-
48
- #define ISEQ_FLIP_CNT(iseq) ISEQ_BODY(iseq)->variable.flip_count
49
-
50
- #define ISEQ_FROZEN_STRING_LITERAL_ENABLED 1
51
- #define ISEQ_FROZEN_STRING_LITERAL_DISABLED 0
52
- #define ISEQ_FROZEN_STRING_LITERAL_UNSET -1
53
-
54
- static inline rb_snum_t
55
- ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq)
56
- {
57
- rb_snum_t cnt = ISEQ_BODY(iseq)->variable.flip_count;
58
- ISEQ_BODY(iseq)->variable.flip_count += 1;
59
- return cnt;
60
- }
61
-
62
- static inline VALUE *
63
- ISEQ_ORIGINAL_ISEQ(const rb_iseq_t *iseq)
64
- {
65
- return ISEQ_BODY(iseq)->variable.original_iseq;
66
- }
67
-
68
- static inline void
69
- ISEQ_ORIGINAL_ISEQ_CLEAR(const rb_iseq_t *iseq)
70
- {
71
- void *ptr = ISEQ_BODY(iseq)->variable.original_iseq;
72
- ISEQ_BODY(iseq)->variable.original_iseq = NULL;
73
- ruby_xfree(ptr);
74
- }
75
-
76
- static inline VALUE *
77
- ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
78
- {
79
- return ISEQ_BODY(iseq)->variable.original_iseq =
80
- ALLOC_N(VALUE, size);
81
- }
82
-
83
- #define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \
84
- RUBY_EVENT_CLASS | \
85
- RUBY_EVENT_END | \
86
- RUBY_EVENT_CALL | \
87
- RUBY_EVENT_RETURN| \
88
- RUBY_EVENT_C_CALL| \
89
- RUBY_EVENT_C_RETURN | \
90
- RUBY_EVENT_B_CALL | \
91
- RUBY_EVENT_B_RETURN | \
92
- RUBY_EVENT_RESCUE | \
93
- RUBY_EVENT_COVERAGE_LINE| \
94
- RUBY_EVENT_COVERAGE_BRANCH)
95
-
96
- #define ISEQ_NOT_LOADED_YET IMEMO_FL_USER1
97
- #define ISEQ_USE_COMPILE_DATA IMEMO_FL_USER2
98
- #define ISEQ_TRANSLATED IMEMO_FL_USER3
99
-
100
- #define ISEQ_EXECUTABLE_P(iseq) (FL_TEST_RAW(((VALUE)iseq), ISEQ_NOT_LOADED_YET | ISEQ_USE_COMPILE_DATA) == 0)
101
-
102
- struct iseq_compile_data {
103
- /* GC is needed */
104
- const VALUE err_info;
105
- const VALUE catch_table_ary; /* Array */
106
-
107
- /* GC is not needed */
108
- struct iseq_label_data *start_label;
109
- struct iseq_label_data *end_label;
110
- struct iseq_label_data *redo_label;
111
- const rb_iseq_t *current_block;
112
- struct iseq_compile_data_ensure_node_stack *ensure_node_stack;
113
- struct {
114
- struct iseq_compile_data_storage *storage_head;
115
- struct iseq_compile_data_storage *storage_current;
116
- } node;
117
- struct {
118
- struct iseq_compile_data_storage *storage_head;
119
- struct iseq_compile_data_storage *storage_current;
120
- } insn;
121
- bool in_rescue;
122
- int loopval_popped; /* used by NODE_BREAK */
123
- int last_line;
124
- int label_no;
125
- int node_level;
126
- int isolated_depth;
127
- unsigned int ci_index;
128
- unsigned int ic_index;
129
- const rb_compile_option_t *option;
130
- struct rb_id_table *ivar_cache_table;
131
- const struct rb_builtin_function *builtin_function_table;
132
- const NODE *root_node;
133
- bool catch_except_p; // If a frame of this ISeq may catch exception, set true.
134
- #if OPT_SUPPORT_JOKE
135
- st_table *labels_table;
136
- #endif
137
- };
138
-
139
- static inline struct iseq_compile_data *
140
- ISEQ_COMPILE_DATA(const rb_iseq_t *iseq)
141
- {
142
- if (iseq->flags & ISEQ_USE_COMPILE_DATA) {
143
- return iseq->aux.compile_data;
144
- }
145
- else {
146
- return NULL;
147
- }
148
- }
149
-
150
- static inline void
151
- ISEQ_COMPILE_DATA_ALLOC(rb_iseq_t *iseq)
152
- {
153
- iseq->aux.compile_data = ZALLOC(struct iseq_compile_data);
154
- iseq->flags |= ISEQ_USE_COMPILE_DATA;
155
- }
156
-
157
- static inline void
158
- ISEQ_COMPILE_DATA_CLEAR(rb_iseq_t *iseq)
159
- {
160
- iseq->flags &= ~ISEQ_USE_COMPILE_DATA;
161
- iseq->aux.compile_data = NULL;
162
- }
163
-
164
- static inline rb_iseq_t *
165
- iseq_imemo_alloc(void)
166
- {
167
- return IMEMO_NEW(rb_iseq_t, imemo_iseq, 0);
168
- }
169
-
170
- VALUE rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt);
171
- void rb_ibf_load_iseq_complete(rb_iseq_t *iseq);
172
- const rb_iseq_t *rb_iseq_ibf_load(VALUE str);
173
- const rb_iseq_t *rb_iseq_ibf_load_bytes(const char *cstr, size_t);
174
- VALUE rb_iseq_ibf_load_extra_data(VALUE str);
175
- void rb_iseq_init_trace(rb_iseq_t *iseq);
176
- int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line, bool target_bmethod);
177
- int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
178
- const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
179
- int rb_iseq_opt_frozen_string_literal(void);
180
-
181
- #if VM_INSN_INFO_TABLE_IMPL == 2
182
- unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);
183
- #endif
184
-
185
- int rb_vm_insn_addr2opcode(const void *addr);
186
-
187
- RUBY_SYMBOL_EXPORT_BEGIN
188
-
189
- /* compile.c */
190
- VALUE rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node);
191
- VALUE rb_iseq_compile_callback(rb_iseq_t *iseq, const struct rb_iseq_new_with_callback_callback_func * ifunc);
192
- VALUE *rb_iseq_original_iseq(const rb_iseq_t *iseq);
193
- void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc,
194
- VALUE locals, VALUE args,
195
- VALUE exception, VALUE body);
196
- void rb_iseq_mark_and_pin_insn_storage(struct iseq_compile_data_storage *arena);
197
-
198
- VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
199
- VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
200
- unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
201
- #ifdef USE_ISEQ_NODE_ID
202
- int rb_iseq_node_id(const rb_iseq_t *iseq, size_t pos);
203
- #endif
204
- void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events);
205
- void rb_iseq_trace_set_all(rb_event_flag_t turnon_events);
206
- void rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq);
207
-
208
- struct rb_iseq_constant_body *rb_iseq_constant_body_alloc(void);
209
- VALUE rb_iseqw_new(const rb_iseq_t *iseq);
210
- const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
211
-
212
- VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq); /* obsolete */
213
- int rb_iseq_from_eval_p(const rb_iseq_t *iseq);
214
- VALUE rb_iseq_type(const rb_iseq_t *iseq);
215
- VALUE rb_iseq_label(const rb_iseq_t *iseq);
216
- VALUE rb_iseq_base_label(const rb_iseq_t *iseq);
217
- VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq);
218
- VALUE rb_iseq_method_name(const rb_iseq_t *iseq);
219
- void rb_iseq_code_location(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
220
-
221
- void rb_iseq_remove_coverage_all(void);
222
-
223
- /* proc.c */
224
- const rb_iseq_t *rb_method_iseq(VALUE body);
225
- const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
226
-
227
- struct rb_compile_option_struct {
228
- unsigned int inline_const_cache: 1;
229
- unsigned int peephole_optimization: 1;
230
- unsigned int tailcall_optimization: 1;
231
- unsigned int specialized_instruction: 1;
232
- unsigned int operands_unification: 1;
233
- unsigned int instructions_unification: 1;
234
- signed int frozen_string_literal: 2; /* -1: not specified, 0: false, 1: true */
235
- unsigned int debug_frozen_string_literal: 1;
236
- unsigned int coverage_enabled: 1;
237
- int debug_level;
238
- };
239
-
240
- struct iseq_insn_info_entry {
241
- int line_no;
242
- #ifdef USE_ISEQ_NODE_ID
243
- int node_id;
244
- #endif
245
- rb_event_flag_t events;
246
- };
247
-
248
- /*
249
- * iseq type:
250
- * CATCH_TYPE_RESCUE, CATCH_TYPE_ENSURE:
251
- * use iseq as continuation.
252
- *
253
- * CATCH_TYPE_BREAK (iter):
254
- * use iseq as key.
255
- *
256
- * CATCH_TYPE_BREAK (while), CATCH_TYPE_RETRY,
257
- * CATCH_TYPE_REDO, CATCH_TYPE_NEXT:
258
- * NULL.
259
- */
260
- enum rb_catch_type {
261
- CATCH_TYPE_RESCUE = INT2FIX(1),
262
- CATCH_TYPE_ENSURE = INT2FIX(2),
263
- CATCH_TYPE_RETRY = INT2FIX(3),
264
- CATCH_TYPE_BREAK = INT2FIX(4),
265
- CATCH_TYPE_REDO = INT2FIX(5),
266
- CATCH_TYPE_NEXT = INT2FIX(6)
267
- };
268
-
269
- struct iseq_catch_table_entry {
270
- enum rb_catch_type type;
271
- rb_iseq_t *iseq;
272
-
273
- unsigned int start;
274
- unsigned int end;
275
- unsigned int cont;
276
- unsigned int sp;
277
- };
278
-
279
- RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_BEGIN()
280
- struct iseq_catch_table {
281
- unsigned int size;
282
- struct iseq_catch_table_entry entries[FLEX_ARY_LEN];
283
- } RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_END();
284
-
285
- static inline int
286
- iseq_catch_table_bytes(int n)
287
- {
288
- enum {
289
- catch_table_entry_size = sizeof(struct iseq_catch_table_entry),
290
- catch_table_entries_max = (INT_MAX - offsetof(struct iseq_catch_table, entries)) / catch_table_entry_size
291
- };
292
- if (n > catch_table_entries_max) rb_fatal("too large iseq_catch_table - %d", n);
293
- return (int)(offsetof(struct iseq_catch_table, entries) +
294
- n * catch_table_entry_size);
295
- }
296
-
297
- #define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
298
-
299
- struct iseq_compile_data_storage {
300
- struct iseq_compile_data_storage *next;
301
- unsigned int pos;
302
- unsigned int size;
303
- char buff[FLEX_ARY_LEN];
304
- };
305
-
306
- /* defined? */
307
-
308
- enum defined_type {
309
- DEFINED_NOT_DEFINED,
310
- DEFINED_NIL = 1,
311
- DEFINED_IVAR,
312
- DEFINED_LVAR,
313
- DEFINED_GVAR,
314
- DEFINED_CVAR,
315
- DEFINED_CONST,
316
- DEFINED_METHOD,
317
- DEFINED_YIELD,
318
- DEFINED_ZSUPER,
319
- DEFINED_SELF,
320
- DEFINED_TRUE,
321
- DEFINED_FALSE,
322
- DEFINED_ASGN,
323
- DEFINED_EXPR,
324
- DEFINED_REF,
325
- DEFINED_FUNC,
326
- DEFINED_CONST_FROM
327
- };
328
-
329
- VALUE rb_iseq_defined_string(enum defined_type type);
330
-
331
- /* vm.c */
332
- VALUE rb_iseq_local_variables(const rb_iseq_t *iseq);
333
-
334
- attr_index_t rb_estimate_iv_count(VALUE klass, const rb_iseq_t * initialize_iseq);
335
-
336
- void rb_free_encoded_insn_data(void);
337
-
338
- RUBY_SYMBOL_EXPORT_END
339
-
340
- #endif /* RUBY_ISEQ_H */
@@ -1,111 +0,0 @@
1
- #ifndef RUBY_NODE_H
2
- #define RUBY_NODE_H 1
3
- /**********************************************************************
4
-
5
- node.h -
6
-
7
- $Author$
8
- created at: Fri May 28 15:14:02 JST 1993
9
-
10
- Copyright (C) 1993-2007 Yukihiro Matsumoto
11
-
12
- **********************************************************************/
13
-
14
- #include <stdbool.h>
15
- #include "rubyparser.h"
16
- #include "ruby/backward/2/attributes.h"
17
-
18
- typedef void (*bug_report_func)(const char *fmt, ...) RUBYPARSER_ATTRIBUTE_FORMAT(1, 2);
19
- typedef struct node_buffer_elem_struct {
20
- struct node_buffer_elem_struct *next;
21
- long len; /* Length of nodes */
22
- size_t allocated; /* Total memory size of allocated buf */
23
- size_t used; /* Current usage of buf */
24
- NODE **nodes; /* Array of node pointers */
25
- NODE *buf[FLEX_ARY_LEN];
26
- } node_buffer_elem_t;
27
-
28
- typedef struct {
29
- node_buffer_elem_t *head;
30
- node_buffer_elem_t *last;
31
- } node_buffer_list_t;
32
-
33
- struct node_buffer_struct {
34
- node_buffer_list_t buffer_list;
35
- struct rb_ast_local_table_link *local_tables;
36
- // - id (sequence number)
37
- // - token_type
38
- // - text of token
39
- // - location info
40
- // Array, whose entry is array
41
- rb_parser_ary_t *tokens;
42
- };
43
-
44
- RUBY_SYMBOL_EXPORT_BEGIN
45
-
46
- #ifdef UNIVERSAL_PARSER
47
- rb_ast_t *rb_ast_new(const rb_parser_config_t *config);
48
- #else
49
- rb_ast_t *rb_ast_new(void);
50
- #endif
51
- size_t rb_ast_memsize(const rb_ast_t*);
52
- void rb_ast_dispose(rb_ast_t*);
53
- const char *ruby_node_name(int node);
54
- void rb_node_init(NODE *n, enum node_type type);
55
-
56
- void rb_ast_update_references(rb_ast_t*);
57
- void rb_ast_free(rb_ast_t*);
58
- NODE *rb_ast_newnode(rb_ast_t*, enum node_type type, size_t size, size_t alignment);
59
- void rb_ast_delete_node(rb_ast_t*, NODE *n);
60
- rb_ast_id_table_t *rb_ast_new_local_table(rb_ast_t*, int);
61
- rb_ast_id_table_t *rb_ast_resize_latest_local_table(rb_ast_t*, int);
62
-
63
- VALUE rb_parser_dump_tree(const NODE *node, int comment);
64
-
65
- const struct kwtable *rb_reserved_word(const char *, unsigned int);
66
-
67
- struct parser_params;
68
- PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
69
- VALUE rb_node_set_type(NODE *n, enum node_type t);
70
-
71
- RUBY_SYMBOL_EXPORT_END
72
-
73
- #define NODE_LSHIFT (NODE_TYPESHIFT+7)
74
- #define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
75
-
76
- #define nd_line(n) (int)(((SIGNED_VALUE)(n)->flags)>>NODE_LSHIFT)
77
- #define nd_set_line(n,l) \
78
- (n)->flags=(((n)->flags&~((VALUE)(-1)<<NODE_LSHIFT))|((VALUE)((l)&NODE_LMASK)<<NODE_LSHIFT))
79
-
80
-
81
- #define NODE_SPECIAL_REQUIRED_KEYWORD ((NODE *)-1)
82
- #define NODE_REQUIRED_KEYWORD_P(node) ((node) == NODE_SPECIAL_REQUIRED_KEYWORD)
83
- #define NODE_SPECIAL_NO_NAME_REST ((NODE *)-1)
84
- #define NODE_NAMED_REST_P(node) ((node) != NODE_SPECIAL_NO_NAME_REST)
85
- #define NODE_SPECIAL_EXCESSIVE_COMMA ((ID)1)
86
- #define NODE_SPECIAL_NO_REST_KEYWORD ((NODE *)-1)
87
-
88
- #define nd_code_loc(n) (&RNODE(n)->nd_loc)
89
- #define nd_first_column(n) ((int)(RNODE(n)->nd_loc.beg_pos.column))
90
- #define nd_set_first_column(n, v) (RNODE(n)->nd_loc.beg_pos.column = (v))
91
- #define nd_first_lineno(n) ((int)(RNODE(n)->nd_loc.beg_pos.lineno))
92
- #define nd_set_first_lineno(n, v) (RNODE(n)->nd_loc.beg_pos.lineno = (v))
93
- #define nd_first_loc(n) (RNODE(n)->nd_loc.beg_pos)
94
- #define nd_set_first_loc(n, v) (nd_first_loc(n) = (v))
95
-
96
- #define nd_last_column(n) ((int)(RNODE(n)->nd_loc.end_pos.column))
97
- #define nd_set_last_column(n, v) (RNODE(n)->nd_loc.end_pos.column = (v))
98
- #define nd_last_lineno(n) ((int)(RNODE(n)->nd_loc.end_pos.lineno))
99
- #define nd_set_last_lineno(n, v) (RNODE(n)->nd_loc.end_pos.lineno = (v))
100
- #define nd_last_loc(n) (RNODE(n)->nd_loc.end_pos)
101
- #define nd_set_last_loc(n, v) (nd_last_loc(n) = (v))
102
- #define nd_node_id(n) (RNODE(n)->node_id)
103
- #define nd_set_node_id(n,id) (RNODE(n)->node_id = (id))
104
-
105
- static inline bool
106
- nd_type_p(const NODE *n, enum node_type t)
107
- {
108
- return (enum node_type)nd_type(n) == t;
109
- }
110
-
111
- #endif /* RUBY_NODE_H */