debase-ruby_core_source 0.10.9 → 0.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/debase-ruby_core_source.gemspec +3 -2
  5. data/lib/debase/ruby_core_source.rb +0 -2
  6. data/lib/debase/ruby_core_source/version.rb +1 -1
  7. metadata +22 -113
  8. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/addr2line.h +0 -21
  9. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ccan/build_assert/build_assert.h +0 -40
  10. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ccan/check_type/check_type.h +0 -63
  11. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ccan/container_of/container_of.h +0 -142
  12. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ccan/list/list.h +0 -788
  13. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ccan/str/str.h +0 -16
  14. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/constant.h +0 -54
  15. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/debug_counter.h +0 -378
  16. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/dln.h +0 -51
  17. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/encindex.h +0 -69
  18. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/eval_intern.h +0 -314
  19. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/gc.h +0 -129
  20. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/hrtime.h +0 -168
  21. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/id.h +0 -292
  22. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/id_table.h +0 -34
  23. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/insns.inc +0 -249
  24. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/insns_info.inc +0 -9614
  25. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/internal.h +0 -2682
  26. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/iseq.h +0 -312
  27. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/known_errors.inc +0 -791
  28. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/method.h +0 -232
  29. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/mjit.h +0 -179
  30. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/mjit_compile.inc +0 -7883
  31. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/node.h +0 -483
  32. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/node_name.inc +0 -210
  33. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/opt_sc.inc +0 -109
  34. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/optinsn.inc +0 -128
  35. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/optunifs.inc +0 -43
  36. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/parse.h +0 -210
  37. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/probes_helper.h +0 -42
  38. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/regenc.h +0 -254
  39. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/regint.h +0 -938
  40. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/regparse.h +0 -370
  41. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/revision.h +0 -2
  42. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ruby_assert.h +0 -15
  43. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/ruby_atomic.h +0 -244
  44. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/siphash.h +0 -48
  45. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/symbol.h +0 -119
  46. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/thread_pthread.h +0 -75
  47. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/thread_win32.h +0 -36
  48. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/timev.h +0 -56
  49. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/transcode_data.h +0 -139
  50. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/transient_heap.h +0 -62
  51. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/version.h +0 -77
  52. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm.inc +0 -5269
  53. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_call_iseq_optimized.inc +0 -237
  54. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_core.h +0 -1955
  55. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_debug.h +0 -34
  56. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_exec.h +0 -193
  57. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_insnhelper.h +0 -255
  58. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vm_opts.h +0 -70
  59. data/lib/debase/ruby_core_source/ruby-2.7.0-preview2/vmtc.inc +0 -243
  60. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/addr2line.h +0 -21
  61. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/builtin.h +0 -68
  62. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ccan/build_assert/build_assert.h +0 -40
  63. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ccan/check_type/check_type.h +0 -63
  64. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ccan/container_of/container_of.h +0 -142
  65. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ccan/list/list.h +0 -788
  66. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ccan/str/str.h +0 -16
  67. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/constant.h +0 -50
  68. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/debug_counter.h +0 -378
  69. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/dln.h +0 -51
  70. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/encindex.h +0 -69
  71. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/eval_intern.h +0 -311
  72. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/gc.h +0 -129
  73. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/hrtime.h +0 -168
  74. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/id.h +0 -290
  75. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/id_table.h +0 -34
  76. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/insns.inc +0 -253
  77. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/insns_info.inc +0 -9196
  78. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/internal.h +0 -2657
  79. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/iseq.h +0 -311
  80. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/known_errors.inc +0 -791
  81. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/method.h +0 -228
  82. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/mjit.h +0 -175
  83. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/mjit_compile.inc +0 -7782
  84. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/node.h +0 -476
  85. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/node_name.inc +0 -208
  86. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/opt_sc.inc +0 -109
  87. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/optinsn.inc +0 -128
  88. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/optunifs.inc +0 -43
  89. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/parse.h +0 -210
  90. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/probes_helper.h +0 -42
  91. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/regenc.h +0 -254
  92. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/regint.h +0 -938
  93. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/regparse.h +0 -370
  94. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/revision.h +0 -2
  95. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ruby_assert.h +0 -15
  96. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/ruby_atomic.h +0 -244
  97. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/siphash.h +0 -48
  98. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/symbol.h +0 -119
  99. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/thread_pthread.h +0 -75
  100. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/thread_win32.h +0 -36
  101. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/timev.h +0 -56
  102. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/transcode_data.h +0 -139
  103. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/transient_heap.h +0 -62
  104. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/version.h +0 -77
  105. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm.inc +0 -5319
  106. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_call_iseq_optimized.inc +0 -237
  107. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_core.h +0 -1957
  108. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_debug.h +0 -34
  109. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_exec.h +0 -193
  110. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_insnhelper.h +0 -255
  111. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_opts.h +0 -72
  112. data/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vmtc.inc +0 -247
@@ -1,70 +0,0 @@
1
- /*-*-c-*-*/
2
- /**********************************************************************
3
-
4
- vm_opts.h - VM optimize option
5
-
6
- $Author$
7
-
8
- Copyright (C) 2004-2007 Koichi Sasada
9
-
10
- **********************************************************************/
11
-
12
-
13
- #ifndef RUBY_VM_OPTS_H
14
- #define RUBY_VM_OPTS_H
15
-
16
- /* Compile options.
17
- * You can change these options at runtime by VM::CompileOption.
18
- * Following definitions are default values.
19
- */
20
-
21
- #define OPT_TAILCALL_OPTIMIZATION 0
22
- #define OPT_PEEPHOLE_OPTIMIZATION 1
23
- #define OPT_SPECIALISED_INSTRUCTION 1
24
- #define OPT_INLINE_CONST_CACHE 1
25
- #define OPT_FROZEN_STRING_LITERAL 0
26
- #define OPT_DEBUG_FROZEN_STRING_LITERAL 0
27
-
28
- /* Build Options.
29
- * You can't change these options at runtime.
30
- */
31
-
32
- /* C compiler dependent */
33
-
34
- /*
35
- * 0: direct (using labeled goto using GCC special)
36
- * 1: token (switch/case)
37
- * 2: call (function call for each insn dispatch)
38
- */
39
- #ifndef OPT_THREADED_CODE
40
- #define OPT_THREADED_CODE 0
41
- #endif
42
-
43
- #define OPT_DIRECT_THREADED_CODE (OPT_THREADED_CODE == 0)
44
- #define OPT_TOKEN_THREADED_CODE (OPT_THREADED_CODE == 1)
45
- #define OPT_CALL_THREADED_CODE (OPT_THREADED_CODE == 2)
46
-
47
- /* VM running option */
48
- #define OPT_CHECKED_RUN 1
49
- #define OPT_INLINE_METHOD_CACHE 1
50
- #define OPT_GLOBAL_METHOD_CACHE 1
51
- #define OPT_BLOCKINLINING 0
52
-
53
- #ifndef OPT_IC_FOR_IVAR
54
- #define OPT_IC_FOR_IVAR 1
55
- #endif
56
-
57
- /* architecture independent, affects generated code */
58
- #define OPT_OPERANDS_UNIFICATION 1
59
- #define OPT_INSTRUCTIONS_UNIFICATION 0
60
- #define OPT_UNIFY_ALL_COMBINATION 0
61
- #define OPT_STACK_CACHING 0
62
-
63
- /* misc */
64
- #define OPT_SUPPORT_JOKE 0
65
-
66
- #ifndef VM_COLLECT_USAGE_DETAILS
67
- #define VM_COLLECT_USAGE_DETAILS 0
68
- #endif
69
-
70
- #endif /* RUBY_VM_OPTS_H */
@@ -1,243 +0,0 @@
1
- /* -*- C -*- */
2
-
3
- /* This is an auto-generated file and is a part of the programming language
4
- * Ruby. The person who created a program to generate this file (``I''
5
- * hereafter) would like to refrain from defining licensing of this generated
6
- * source code.
7
- *
8
- * This file consists of many small parts of codes copyrighted by each author,
9
- * not only the ``I'' person. Those original authors agree with some
10
- * open-source license. I believe that the license we agree is the condition
11
- * mentioned in the file COPYING. It states "4. You may modify and include
12
- * the part of the software into any other software ...". But the problem is,
13
- * the license never makes it clear if such modified parts still remain in the
14
- * same license, or not. The fact that we agree with the source code's
15
- * licensing terms does not automatically define that of generated ones. This
16
- * is the reason why this file is under an unclear situation. All what I know
17
- * is that above provision guarantees this file to exist.
18
- *
19
- * Please let me hesitate to declare something about this nuanced contract. I
20
- * am not in the position to take over other authors' license to merge into my
21
- * one. Changing them to (say) GPLv3 is not doable by myself. Perhaps someday
22
- * it might turn out to be okay to say this file is under a license. I wish
23
- * the situation would become more clear in the future. */
24
- /*******************************************************************/
25
- /*******************************************************************/
26
- /*******************************************************************/
27
- /**
28
- This file is for threaded code.
29
-
30
- ----
31
- This file is auto generated by insns2vm.rb
32
- DO NOT TOUCH!
33
-
34
- If you want to fix something, you must edit "tool/ruby_vm/views/vmtc.inc.erb"
35
- or tool/insns2vm.rb
36
- */
37
-
38
- static const void *const insns_address_table[] = {
39
- LABEL_PTR(nop),
40
- LABEL_PTR(getlocal),
41
- LABEL_PTR(setlocal),
42
- LABEL_PTR(getblockparam),
43
- LABEL_PTR(setblockparam),
44
- LABEL_PTR(getblockparamproxy),
45
- LABEL_PTR(getspecial),
46
- LABEL_PTR(setspecial),
47
- LABEL_PTR(getinstancevariable),
48
- LABEL_PTR(setinstancevariable),
49
- LABEL_PTR(getclassvariable),
50
- LABEL_PTR(setclassvariable),
51
- LABEL_PTR(getconstant),
52
- LABEL_PTR(setconstant),
53
- LABEL_PTR(getglobal),
54
- LABEL_PTR(setglobal),
55
- LABEL_PTR(putnil),
56
- LABEL_PTR(putself),
57
- LABEL_PTR(putobject),
58
- LABEL_PTR(putspecialobject),
59
- LABEL_PTR(putstring),
60
- LABEL_PTR(concatstrings),
61
- LABEL_PTR(tostring),
62
- LABEL_PTR(freezestring),
63
- LABEL_PTR(toregexp),
64
- LABEL_PTR(intern),
65
- LABEL_PTR(newarray),
66
- LABEL_PTR(newarraykwsplat),
67
- LABEL_PTR(duparray),
68
- LABEL_PTR(duphash),
69
- LABEL_PTR(expandarray),
70
- LABEL_PTR(concatarray),
71
- LABEL_PTR(splatarray),
72
- LABEL_PTR(newhash),
73
- LABEL_PTR(newrange),
74
- LABEL_PTR(pop),
75
- LABEL_PTR(dup),
76
- LABEL_PTR(dupn),
77
- LABEL_PTR(swap),
78
- LABEL_PTR(reverse),
79
- LABEL_PTR(topn),
80
- LABEL_PTR(setn),
81
- LABEL_PTR(adjuststack),
82
- LABEL_PTR(defined),
83
- LABEL_PTR(checkmatch),
84
- LABEL_PTR(checkkeyword),
85
- LABEL_PTR(checktype),
86
- LABEL_PTR(methodref),
87
- LABEL_PTR(defineclass),
88
- LABEL_PTR(definemethod),
89
- LABEL_PTR(definesmethod),
90
- LABEL_PTR(send),
91
- LABEL_PTR(opt_send_without_block),
92
- LABEL_PTR(opt_str_freeze),
93
- LABEL_PTR(opt_nil_p),
94
- LABEL_PTR(opt_str_uminus),
95
- LABEL_PTR(opt_newarray_max),
96
- LABEL_PTR(opt_newarray_min),
97
- LABEL_PTR(invokesuper),
98
- LABEL_PTR(invokeblock),
99
- LABEL_PTR(leave),
100
- LABEL_PTR(throw),
101
- LABEL_PTR(jump),
102
- LABEL_PTR(branchif),
103
- LABEL_PTR(branchunless),
104
- LABEL_PTR(branchnil),
105
- LABEL_PTR(opt_getinlinecache),
106
- LABEL_PTR(opt_setinlinecache),
107
- LABEL_PTR(once),
108
- LABEL_PTR(opt_case_dispatch),
109
- LABEL_PTR(opt_plus),
110
- LABEL_PTR(opt_minus),
111
- LABEL_PTR(opt_mult),
112
- LABEL_PTR(opt_div),
113
- LABEL_PTR(opt_mod),
114
- LABEL_PTR(opt_eq),
115
- LABEL_PTR(opt_neq),
116
- LABEL_PTR(opt_lt),
117
- LABEL_PTR(opt_le),
118
- LABEL_PTR(opt_gt),
119
- LABEL_PTR(opt_ge),
120
- LABEL_PTR(opt_ltlt),
121
- LABEL_PTR(opt_and),
122
- LABEL_PTR(opt_or),
123
- LABEL_PTR(opt_aref),
124
- LABEL_PTR(opt_aset),
125
- LABEL_PTR(opt_aset_with),
126
- LABEL_PTR(opt_aref_with),
127
- LABEL_PTR(opt_length),
128
- LABEL_PTR(opt_size),
129
- LABEL_PTR(opt_empty_p),
130
- LABEL_PTR(opt_succ),
131
- LABEL_PTR(opt_not),
132
- LABEL_PTR(opt_regexpmatch2),
133
- LABEL_PTR(opt_call_c_function),
134
- LABEL_PTR(getlocal_WC_0),
135
- LABEL_PTR(getlocal_WC_1),
136
- LABEL_PTR(setlocal_WC_0),
137
- LABEL_PTR(setlocal_WC_1),
138
- LABEL_PTR(putobject_INT2FIX_0_),
139
- LABEL_PTR(putobject_INT2FIX_1_),
140
- LABEL_PTR(trace_nop),
141
- LABEL_PTR(trace_getlocal),
142
- LABEL_PTR(trace_setlocal),
143
- LABEL_PTR(trace_getblockparam),
144
- LABEL_PTR(trace_setblockparam),
145
- LABEL_PTR(trace_getblockparamproxy),
146
- LABEL_PTR(trace_getspecial),
147
- LABEL_PTR(trace_setspecial),
148
- LABEL_PTR(trace_getinstancevariable),
149
- LABEL_PTR(trace_setinstancevariable),
150
- LABEL_PTR(trace_getclassvariable),
151
- LABEL_PTR(trace_setclassvariable),
152
- LABEL_PTR(trace_getconstant),
153
- LABEL_PTR(trace_setconstant),
154
- LABEL_PTR(trace_getglobal),
155
- LABEL_PTR(trace_setglobal),
156
- LABEL_PTR(trace_putnil),
157
- LABEL_PTR(trace_putself),
158
- LABEL_PTR(trace_putobject),
159
- LABEL_PTR(trace_putspecialobject),
160
- LABEL_PTR(trace_putstring),
161
- LABEL_PTR(trace_concatstrings),
162
- LABEL_PTR(trace_tostring),
163
- LABEL_PTR(trace_freezestring),
164
- LABEL_PTR(trace_toregexp),
165
- LABEL_PTR(trace_intern),
166
- LABEL_PTR(trace_newarray),
167
- LABEL_PTR(trace_newarraykwsplat),
168
- LABEL_PTR(trace_duparray),
169
- LABEL_PTR(trace_duphash),
170
- LABEL_PTR(trace_expandarray),
171
- LABEL_PTR(trace_concatarray),
172
- LABEL_PTR(trace_splatarray),
173
- LABEL_PTR(trace_newhash),
174
- LABEL_PTR(trace_newrange),
175
- LABEL_PTR(trace_pop),
176
- LABEL_PTR(trace_dup),
177
- LABEL_PTR(trace_dupn),
178
- LABEL_PTR(trace_swap),
179
- LABEL_PTR(trace_reverse),
180
- LABEL_PTR(trace_topn),
181
- LABEL_PTR(trace_setn),
182
- LABEL_PTR(trace_adjuststack),
183
- LABEL_PTR(trace_defined),
184
- LABEL_PTR(trace_checkmatch),
185
- LABEL_PTR(trace_checkkeyword),
186
- LABEL_PTR(trace_checktype),
187
- LABEL_PTR(trace_methodref),
188
- LABEL_PTR(trace_defineclass),
189
- LABEL_PTR(trace_definemethod),
190
- LABEL_PTR(trace_definesmethod),
191
- LABEL_PTR(trace_send),
192
- LABEL_PTR(trace_opt_send_without_block),
193
- LABEL_PTR(trace_opt_str_freeze),
194
- LABEL_PTR(trace_opt_nil_p),
195
- LABEL_PTR(trace_opt_str_uminus),
196
- LABEL_PTR(trace_opt_newarray_max),
197
- LABEL_PTR(trace_opt_newarray_min),
198
- LABEL_PTR(trace_invokesuper),
199
- LABEL_PTR(trace_invokeblock),
200
- LABEL_PTR(trace_leave),
201
- LABEL_PTR(trace_throw),
202
- LABEL_PTR(trace_jump),
203
- LABEL_PTR(trace_branchif),
204
- LABEL_PTR(trace_branchunless),
205
- LABEL_PTR(trace_branchnil),
206
- LABEL_PTR(trace_opt_getinlinecache),
207
- LABEL_PTR(trace_opt_setinlinecache),
208
- LABEL_PTR(trace_once),
209
- LABEL_PTR(trace_opt_case_dispatch),
210
- LABEL_PTR(trace_opt_plus),
211
- LABEL_PTR(trace_opt_minus),
212
- LABEL_PTR(trace_opt_mult),
213
- LABEL_PTR(trace_opt_div),
214
- LABEL_PTR(trace_opt_mod),
215
- LABEL_PTR(trace_opt_eq),
216
- LABEL_PTR(trace_opt_neq),
217
- LABEL_PTR(trace_opt_lt),
218
- LABEL_PTR(trace_opt_le),
219
- LABEL_PTR(trace_opt_gt),
220
- LABEL_PTR(trace_opt_ge),
221
- LABEL_PTR(trace_opt_ltlt),
222
- LABEL_PTR(trace_opt_and),
223
- LABEL_PTR(trace_opt_or),
224
- LABEL_PTR(trace_opt_aref),
225
- LABEL_PTR(trace_opt_aset),
226
- LABEL_PTR(trace_opt_aset_with),
227
- LABEL_PTR(trace_opt_aref_with),
228
- LABEL_PTR(trace_opt_length),
229
- LABEL_PTR(trace_opt_size),
230
- LABEL_PTR(trace_opt_empty_p),
231
- LABEL_PTR(trace_opt_succ),
232
- LABEL_PTR(trace_opt_not),
233
- LABEL_PTR(trace_opt_regexpmatch2),
234
- LABEL_PTR(trace_opt_call_c_function),
235
- LABEL_PTR(trace_getlocal_WC_0),
236
- LABEL_PTR(trace_getlocal_WC_1),
237
- LABEL_PTR(trace_setlocal_WC_0),
238
- LABEL_PTR(trace_setlocal_WC_1),
239
- LABEL_PTR(trace_putobject_INT2FIX_0_),
240
- LABEL_PTR(trace_putobject_INT2FIX_1_),
241
- };
242
-
243
- ASSERT_VM_INSTRUCTION_SIZE(insns_address_table);
@@ -1,21 +0,0 @@
1
- /**********************************************************************
2
-
3
- addr2line.h -
4
-
5
- $Author$
6
-
7
- Copyright (C) 2010 Shinichiro Hamaji
8
-
9
- **********************************************************************/
10
-
11
- #ifndef RUBY_ADDR2LINE_H
12
- #define RUBY_ADDR2LINE_H
13
-
14
- #if (defined(USE_ELF) || defined(HAVE_MACH_O_LOADER_H))
15
-
16
- void
17
- rb_dump_backtrace_with_lines(int num_traces, void **traces);
18
-
19
- #endif /* USE_ELF */
20
-
21
- #endif /* RUBY_ADDR2LINE_H */
@@ -1,68 +0,0 @@
1
- // invoke
2
-
3
- struct rb_builtin_function {
4
- // for invocation
5
- const void * const func_ptr;
6
- const int argc;
7
-
8
- // for load
9
- const int index;
10
- const char * const name;
11
- };
12
-
13
- #define RB_BUILTIN_FUNCTION(_i, _name, _arity) { .name = #_name, .func_ptr = (void *)_name, .argc = _arity, .index = _i }
14
-
15
- void rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin_function *table);
16
-
17
- #ifndef VM_CORE_H_EC_DEFINED
18
- typedef struct rb_execution_context_struct rb_execution_context_t;
19
- #endif
20
-
21
- /* The following code is generated by the following Ruby script:
22
-
23
- 16.times{|i|
24
- args = (i > 0 ? ', ' : '') + (0...i).map{"VALUE"}.join(', ')
25
- puts "static inline void rb_builtin_function_check_arity#{i}(VALUE (*f)(rb_execution_context_t *ec, VALUE self#{args})){}"
26
- }
27
- */
28
-
29
- static inline void rb_builtin_function_check_arity0(VALUE (*f)(rb_execution_context_t *ec, VALUE self)){}
30
- static inline void rb_builtin_function_check_arity1(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE)){}
31
- static inline void rb_builtin_function_check_arity2(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE)){}
32
- static inline void rb_builtin_function_check_arity3(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE)){}
33
- static inline void rb_builtin_function_check_arity4(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE)){}
34
- static inline void rb_builtin_function_check_arity5(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE)){}
35
- static inline void rb_builtin_function_check_arity6(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
36
- static inline void rb_builtin_function_check_arity7(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
37
- static inline void rb_builtin_function_check_arity8(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
38
- static inline void rb_builtin_function_check_arity9(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
39
- static inline void rb_builtin_function_check_arity10(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
40
- static inline void rb_builtin_function_check_arity11(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
41
- static inline void rb_builtin_function_check_arity12(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
42
- static inline void rb_builtin_function_check_arity13(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
43
- static inline void rb_builtin_function_check_arity14(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
44
- static inline void rb_builtin_function_check_arity15(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
45
-
46
- VALUE rb_vm_lvar_exposed(rb_execution_context_t *ec, int index);
47
-
48
- // __builtin_inline!
49
-
50
- PUREFUNC(static inline VALUE rb_vm_lvar(rb_execution_context_t *ec, int index));
51
-
52
- static inline VALUE
53
- rb_vm_lvar(rb_execution_context_t *ec, int index)
54
- {
55
- #if VM_CORE_H_EC_DEFINED
56
- return ec->cfp->ep[index];
57
- #else
58
- return rb_vm_lvar_exposed(ec, index);
59
- #endif
60
- }
61
-
62
- // dump/load
63
-
64
- struct builtin_binary {
65
- const char *feature; // feature name
66
- const unsigned char *bin; // binary by ISeq#to_binary
67
- size_t bin_size;
68
- };
@@ -1,40 +0,0 @@
1
- /* CC0 (Public domain) - see ccan/licenses/CC0 file for details */
2
- #ifndef CCAN_BUILD_ASSERT_H
3
- #define CCAN_BUILD_ASSERT_H
4
-
5
- /**
6
- * BUILD_ASSERT - assert a build-time dependency.
7
- * @cond: the compile-time condition which must be true.
8
- *
9
- * Your compile will fail if the condition isn't true, or can't be evaluated
10
- * by the compiler. This can only be used within a function.
11
- *
12
- * Example:
13
- * #include <stddef.h>
14
- * ...
15
- * static char *foo_to_char(struct foo *foo)
16
- * {
17
- * // This code needs string to be at start of foo.
18
- * BUILD_ASSERT(offsetof(struct foo, string) == 0);
19
- * return (char *)foo;
20
- * }
21
- */
22
- #define BUILD_ASSERT(cond) \
23
- do { (void) sizeof(char [1 - 2*!(cond)]); } while(0)
24
-
25
- /**
26
- * BUILD_ASSERT_OR_ZERO - assert a build-time dependency, as an expression.
27
- * @cond: the compile-time condition which must be true.
28
- *
29
- * Your compile will fail if the condition isn't true, or can't be evaluated
30
- * by the compiler. This can be used in an expression: its value is "0".
31
- *
32
- * Example:
33
- * #define foo_to_char(foo) \
34
- * ((char *)(foo) \
35
- * + BUILD_ASSERT_OR_ZERO(offsetof(struct foo, string) == 0))
36
- */
37
- #define BUILD_ASSERT_OR_ZERO(cond) \
38
- (sizeof(char [1 - 2*!(cond)]) - 1)
39
-
40
- #endif /* CCAN_BUILD_ASSERT_H */
@@ -1,63 +0,0 @@
1
- /* CC0 (Public domain) - see ccan/licenses/CC0 file for details */
2
- #ifndef CCAN_CHECK_TYPE_H
3
- #define CCAN_CHECK_TYPE_H
4
-
5
- /**
6
- * check_type - issue a warning or build failure if type is not correct.
7
- * @expr: the expression whose type we should check (not evaluated).
8
- * @type: the exact type we expect the expression to be.
9
- *
10
- * This macro is usually used within other macros to try to ensure that a macro
11
- * argument is of the expected type. No type promotion of the expression is
12
- * done: an unsigned int is not the same as an int!
13
- *
14
- * check_type() always evaluates to 0.
15
- *
16
- * If your compiler does not support typeof, then the best we can do is fail
17
- * to compile if the sizes of the types are unequal (a less complete check).
18
- *
19
- * Example:
20
- * // They should always pass a 64-bit value to _set_some_value!
21
- * #define set_some_value(expr) \
22
- * _set_some_value((check_type((expr), uint64_t), (expr)))
23
- */
24
-
25
- /**
26
- * check_types_match - issue a warning or build failure if types are not same.
27
- * @expr1: the first expression (not evaluated).
28
- * @expr2: the second expression (not evaluated).
29
- *
30
- * This macro is usually used within other macros to try to ensure that
31
- * arguments are of identical types. No type promotion of the expressions is
32
- * done: an unsigned int is not the same as an int!
33
- *
34
- * check_types_match() always evaluates to 0.
35
- *
36
- * If your compiler does not support typeof, then the best we can do is fail
37
- * to compile if the sizes of the types are unequal (a less complete check).
38
- *
39
- * Example:
40
- * // Do subtraction to get to enclosing type, but make sure that
41
- * // pointer is of correct type for that member.
42
- * #define container_of(mbr_ptr, encl_type, mbr) \
43
- * (check_types_match((mbr_ptr), &((encl_type *)0)->mbr), \
44
- * ((encl_type *) \
45
- * ((char *)(mbr_ptr) - offsetof(enclosing_type, mbr))))
46
- */
47
- #if HAVE_TYPEOF
48
- #define check_type(expr, type) \
49
- ((typeof(expr) *)0 != (type *)0)
50
-
51
- #define check_types_match(expr1, expr2) \
52
- ((typeof(expr1) *)0 != (typeof(expr2) *)0)
53
- #else
54
- #include "ccan/build_assert/build_assert.h"
55
- /* Without typeof, we can only test the sizes. */
56
- #define check_type(expr, type) \
57
- BUILD_ASSERT_OR_ZERO(sizeof(expr) == sizeof(type))
58
-
59
- #define check_types_match(expr1, expr2) \
60
- BUILD_ASSERT_OR_ZERO(sizeof(expr1) == sizeof(expr2))
61
- #endif /* HAVE_TYPEOF */
62
-
63
- #endif /* CCAN_CHECK_TYPE_H */