debase-ruby_core_source 0.10.17 → 0.10.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/addr2line.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/builtin.h +121 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ccan/list/list.h +789 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/constant.h +55 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/darray.h +179 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/debug_counter.h +468 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/dln.h +31 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/eval_intern.h +339 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/gc.h +147 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/hrtime.h +227 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/id.h +295 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/id_table.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/insns.inc +249 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/insns_info.inc +9061 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/array.h +163 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/bignum.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/bits.h +565 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/class.h +181 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/cmdlineopt.h +61 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/compar.h +49 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/compile.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/cont.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/encoding.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/error.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/eval.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/gc.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/hash.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/imemo.h +242 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/inits.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/io.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/missing.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/numeric.h +275 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/object.h +61 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/parse.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/proc.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/process.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/random.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/rational.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/re.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/sanitizers.h +190 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/signal.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/string.h +147 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/struct.h +153 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/symbol.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/thread.h +55 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/transcode.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/variable.h +88 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/vm.h +134 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/internal.h +113 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/iseq.h +329 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/method.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/mjit.h +132 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/mjit_compile_attr.inc +430 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/mjit_compiler.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/mjit_unit.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/node.h +511 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/node_name.inc +210 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/opt_sc.inc +109 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/parse.h +215 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/probes_helper.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ractor_core.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/regint.h +984 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/regparse.h +370 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/shape.h +194 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/symbol.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/thread_none.h +20 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/thread_pthread.h +132 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/thread_win32.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/timev.h +57 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/transient_heap.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/variable.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/version.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm.inc +5476 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_callinfo.h +550 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_core.h +2137 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_debug.h +122 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_exec.h +197 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_insnhelper.h +266 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_opts.h +73 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/vmtc.inc +243 -0
- data/lib/debase/ruby_core_source/ruby-3.2.0-preview3/yjit.h +72 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +118 -3
@@ -0,0 +1,109 @@
|
|
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
|
+
/**
|
29
|
+
This file is for threaded code.
|
30
|
+
|
31
|
+
----
|
32
|
+
This file is auto generated by insns2vm.rb
|
33
|
+
DO NOT TOUCH!
|
34
|
+
|
35
|
+
If you want to fix something, you must edit "tool/ruby_vm/views/opt_sc.inc.erb"
|
36
|
+
or tool/insns2vm.rb
|
37
|
+
*/
|
38
|
+
|
39
|
+
#define SC_STATE_SIZE 6
|
40
|
+
|
41
|
+
#define SCS_XX 1
|
42
|
+
#define SCS_AX 2
|
43
|
+
#define SCS_BX 3
|
44
|
+
#define SCS_AB 4
|
45
|
+
#define SCS_BA 5
|
46
|
+
|
47
|
+
#define SC_ERROR 0xffffffff
|
48
|
+
|
49
|
+
static const VALUE sc_insn_info[][SC_STATE_SIZE] = {
|
50
|
+
#define NO_SC { SC_ERROR, SC_ERROR, SC_ERROR, SC_ERROR, SC_ERROR, SC_ERROR }
|
51
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
52
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
53
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
54
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
55
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
56
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
57
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
58
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
59
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
60
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
61
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
62
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
63
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
64
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
65
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
66
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
67
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
68
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
69
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
70
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
71
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
72
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
73
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
74
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
75
|
+
NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC, NO_SC,
|
76
|
+
NO_SC, NO_SC,
|
77
|
+
#undef NO_SC
|
78
|
+
};
|
79
|
+
|
80
|
+
static const VALUE sc_insn_next[] = {
|
81
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
82
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
83
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
84
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
85
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
86
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
87
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
88
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
89
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
90
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
91
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
92
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
93
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
94
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
95
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
96
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
97
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
98
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
99
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
100
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
101
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
102
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
103
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
104
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
105
|
+
SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX, SCS_XX,
|
106
|
+
SCS_XX, SCS_XX,
|
107
|
+
};
|
108
|
+
|
109
|
+
ASSERT_VM_INSTRUCTION_SIZE(sc_insn_next);
|
@@ -0,0 +1,128 @@
|
|
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/optinsn.inc.erb"
|
35
|
+
or tool/insns2vm.rb
|
36
|
+
*/
|
37
|
+
|
38
|
+
static INSN *
|
39
|
+
insn_operands_unification(INSN *iobj)
|
40
|
+
{
|
41
|
+
#ifdef OPT_OPERANDS_UNIFICATION
|
42
|
+
VALUE *op = iobj->operands;
|
43
|
+
|
44
|
+
switch (iobj->insn_id) {
|
45
|
+
default:
|
46
|
+
/* do nothing */;
|
47
|
+
break;
|
48
|
+
|
49
|
+
case BIN(getlocal):
|
50
|
+
|
51
|
+
/* getlocal_WC_0(idx)()(val) */
|
52
|
+
if ( op[1] == LONG2NUM(0) ) {
|
53
|
+
iobj->insn_id = BIN(getlocal_WC_0);
|
54
|
+
iobj->operand_size = 1;
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* getlocal_WC_1(idx)()(val) */
|
59
|
+
if ( op[1] == LONG2NUM(1) ) {
|
60
|
+
iobj->insn_id = BIN(getlocal_WC_1);
|
61
|
+
iobj->operand_size = 1;
|
62
|
+
break;
|
63
|
+
}
|
64
|
+
|
65
|
+
break;
|
66
|
+
case BIN(setlocal):
|
67
|
+
|
68
|
+
/* setlocal_WC_0(idx)(val)() */
|
69
|
+
if ( op[1] == LONG2NUM(0) ) {
|
70
|
+
iobj->insn_id = BIN(setlocal_WC_0);
|
71
|
+
iobj->operand_size = 1;
|
72
|
+
break;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* setlocal_WC_1(idx)(val)() */
|
76
|
+
if ( op[1] == LONG2NUM(1) ) {
|
77
|
+
iobj->insn_id = BIN(setlocal_WC_1);
|
78
|
+
iobj->operand_size = 1;
|
79
|
+
break;
|
80
|
+
}
|
81
|
+
|
82
|
+
break;
|
83
|
+
case BIN(putobject):
|
84
|
+
|
85
|
+
/* putobject_INT2FIX_0_()()(val) */
|
86
|
+
if ( op[0] == INT2FIX(0) ) {
|
87
|
+
iobj->insn_id = BIN(putobject_INT2FIX_0_);
|
88
|
+
iobj->operand_size = 0;
|
89
|
+
break;
|
90
|
+
}
|
91
|
+
|
92
|
+
/* putobject_INT2FIX_1_()()(val) */
|
93
|
+
if ( op[0] == INT2FIX(1) ) {
|
94
|
+
iobj->insn_id = BIN(putobject_INT2FIX_1_);
|
95
|
+
iobj->operand_size = 0;
|
96
|
+
break;
|
97
|
+
}
|
98
|
+
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
#endif
|
102
|
+
return iobj;
|
103
|
+
}
|
104
|
+
|
105
|
+
int
|
106
|
+
rb_insn_unified_local_var_level(VALUE insn)
|
107
|
+
{
|
108
|
+
#ifdef OPT_OPERANDS_UNIFICATION
|
109
|
+
/* optimize rule */
|
110
|
+
switch (insn) {
|
111
|
+
default:
|
112
|
+
return -1; /* do nothing */;
|
113
|
+
case BIN(getlocal_WC_0):
|
114
|
+
return 0;
|
115
|
+
case BIN(getlocal_WC_1):
|
116
|
+
return 1;
|
117
|
+
case BIN(setlocal_WC_0):
|
118
|
+
return 0;
|
119
|
+
case BIN(setlocal_WC_1):
|
120
|
+
return 1;
|
121
|
+
case BIN(putobject_INT2FIX_0_):
|
122
|
+
return INT2FIX(0);
|
123
|
+
case BIN(putobject_INT2FIX_1_):
|
124
|
+
return INT2FIX(1);
|
125
|
+
}
|
126
|
+
#endif
|
127
|
+
return -1;
|
128
|
+
}
|
@@ -0,0 +1,43 @@
|
|
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
|
+
/**
|
29
|
+
This file is for threaded code.
|
30
|
+
|
31
|
+
----
|
32
|
+
This file is auto generated by insns2vm.rb
|
33
|
+
DO NOT TOUCH!
|
34
|
+
|
35
|
+
If you want to fix something, you must edit "tool/ruby_vm/views/optunifs.inc.erb"
|
36
|
+
or tool/insns2vm.rb
|
37
|
+
*/
|
38
|
+
|
39
|
+
/* Let .bss section automatically initialize this variable */
|
40
|
+
/* cf. Section 6.7.8 of ISO/IEC 9899:1999 */
|
41
|
+
static const int *const *const unified_insns_data[202];
|
42
|
+
|
43
|
+
ASSERT_VM_INSTRUCTION_SIZE(unified_insns_data);
|
@@ -0,0 +1,215 @@
|
|
1
|
+
/* A Bison parser, made by GNU Bison 3.5.1. */
|
2
|
+
|
3
|
+
/* Bison interface for Yacc-like parsers in C
|
4
|
+
|
5
|
+
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
|
6
|
+
Inc.
|
7
|
+
|
8
|
+
This program is free software: you can redistribute it and/or modify
|
9
|
+
it under the terms of the GNU General Public License as published by
|
10
|
+
the Free Software Foundation, either version 3 of the License, or
|
11
|
+
(at your option) any later version.
|
12
|
+
|
13
|
+
This program is distributed in the hope that it will be useful,
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
+
GNU General Public License for more details.
|
17
|
+
|
18
|
+
You should have received a copy of the GNU General Public License
|
19
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
20
|
+
|
21
|
+
/* As a special exception, you may create a larger work that contains
|
22
|
+
part or all of the Bison parser skeleton and distribute that work
|
23
|
+
under terms of your choice, so long as that work isn't itself a
|
24
|
+
parser generator using the skeleton or a modified version thereof
|
25
|
+
as a parser skeleton. Alternatively, if you modify or redistribute
|
26
|
+
the parser skeleton itself, you may (at your option) remove this
|
27
|
+
special exception, which will cause the skeleton and the resulting
|
28
|
+
Bison output files to be licensed under the GNU General Public
|
29
|
+
License without this special exception.
|
30
|
+
|
31
|
+
This special exception was added by the Free Software Foundation in
|
32
|
+
version 2.2 of Bison. */
|
33
|
+
|
34
|
+
/* Undocumented macros, especially those whose name start with YY_,
|
35
|
+
are private implementation details. Do not rely on them. */
|
36
|
+
|
37
|
+
#ifndef YY_YY_Y_TAB_H_INCLUDED
|
38
|
+
# define YY_YY_Y_TAB_H_INCLUDED
|
39
|
+
/* Debug traces. */
|
40
|
+
#ifndef YYDEBUG
|
41
|
+
# define YYDEBUG 0
|
42
|
+
#endif
|
43
|
+
#if YYDEBUG
|
44
|
+
extern int yydebug;
|
45
|
+
#endif
|
46
|
+
|
47
|
+
/* Token type. */
|
48
|
+
#ifndef YYTOKENTYPE
|
49
|
+
# define YYTOKENTYPE
|
50
|
+
enum yytokentype
|
51
|
+
{
|
52
|
+
END_OF_INPUT = 0,
|
53
|
+
keyword_class = 258,
|
54
|
+
keyword_module = 259,
|
55
|
+
keyword_def = 260,
|
56
|
+
keyword_undef = 261,
|
57
|
+
keyword_begin = 262,
|
58
|
+
keyword_rescue = 263,
|
59
|
+
keyword_ensure = 264,
|
60
|
+
keyword_end = 265,
|
61
|
+
keyword_if = 266,
|
62
|
+
keyword_unless = 267,
|
63
|
+
keyword_then = 268,
|
64
|
+
keyword_elsif = 269,
|
65
|
+
keyword_else = 270,
|
66
|
+
keyword_case = 271,
|
67
|
+
keyword_when = 272,
|
68
|
+
keyword_while = 273,
|
69
|
+
keyword_until = 274,
|
70
|
+
keyword_for = 275,
|
71
|
+
keyword_break = 276,
|
72
|
+
keyword_next = 277,
|
73
|
+
keyword_redo = 278,
|
74
|
+
keyword_retry = 279,
|
75
|
+
keyword_in = 280,
|
76
|
+
keyword_do = 281,
|
77
|
+
keyword_do_cond = 282,
|
78
|
+
keyword_do_block = 283,
|
79
|
+
keyword_do_LAMBDA = 284,
|
80
|
+
keyword_return = 285,
|
81
|
+
keyword_yield = 286,
|
82
|
+
keyword_super = 287,
|
83
|
+
keyword_self = 288,
|
84
|
+
keyword_nil = 289,
|
85
|
+
keyword_true = 290,
|
86
|
+
keyword_false = 291,
|
87
|
+
keyword_and = 292,
|
88
|
+
keyword_or = 293,
|
89
|
+
keyword_not = 294,
|
90
|
+
modifier_if = 295,
|
91
|
+
modifier_unless = 296,
|
92
|
+
modifier_while = 297,
|
93
|
+
modifier_until = 298,
|
94
|
+
modifier_rescue = 299,
|
95
|
+
keyword_alias = 300,
|
96
|
+
keyword_defined = 301,
|
97
|
+
keyword_BEGIN = 302,
|
98
|
+
keyword_END = 303,
|
99
|
+
keyword__LINE__ = 304,
|
100
|
+
keyword__FILE__ = 305,
|
101
|
+
keyword__ENCODING__ = 306,
|
102
|
+
tIDENTIFIER = 307,
|
103
|
+
tFID = 308,
|
104
|
+
tGVAR = 309,
|
105
|
+
tIVAR = 310,
|
106
|
+
tCONSTANT = 311,
|
107
|
+
tCVAR = 312,
|
108
|
+
tLABEL = 313,
|
109
|
+
tINTEGER = 314,
|
110
|
+
tFLOAT = 315,
|
111
|
+
tRATIONAL = 316,
|
112
|
+
tIMAGINARY = 317,
|
113
|
+
tCHAR = 318,
|
114
|
+
tNTH_REF = 319,
|
115
|
+
tBACK_REF = 320,
|
116
|
+
tSTRING_CONTENT = 321,
|
117
|
+
tREGEXP_END = 322,
|
118
|
+
tDUMNY_END = 323,
|
119
|
+
tSP = 324,
|
120
|
+
tUPLUS = 132,
|
121
|
+
tUMINUS = 133,
|
122
|
+
tPOW = 134,
|
123
|
+
tCMP = 135,
|
124
|
+
tEQ = 140,
|
125
|
+
tEQQ = 141,
|
126
|
+
tNEQ = 142,
|
127
|
+
tGEQ = 139,
|
128
|
+
tLEQ = 138,
|
129
|
+
tANDOP = 148,
|
130
|
+
tOROP = 149,
|
131
|
+
tMATCH = 143,
|
132
|
+
tNMATCH = 144,
|
133
|
+
tDOT2 = 128,
|
134
|
+
tDOT3 = 129,
|
135
|
+
tBDOT2 = 130,
|
136
|
+
tBDOT3 = 131,
|
137
|
+
tAREF = 145,
|
138
|
+
tASET = 146,
|
139
|
+
tLSHFT = 136,
|
140
|
+
tRSHFT = 137,
|
141
|
+
tANDDOT = 150,
|
142
|
+
tCOLON2 = 147,
|
143
|
+
tCOLON3 = 325,
|
144
|
+
tOP_ASGN = 326,
|
145
|
+
tASSOC = 327,
|
146
|
+
tLPAREN = 328,
|
147
|
+
tLPAREN_ARG = 329,
|
148
|
+
tRPAREN = 330,
|
149
|
+
tLBRACK = 331,
|
150
|
+
tLBRACE = 332,
|
151
|
+
tLBRACE_ARG = 333,
|
152
|
+
tSTAR = 334,
|
153
|
+
tDSTAR = 335,
|
154
|
+
tAMPER = 336,
|
155
|
+
tLAMBDA = 337,
|
156
|
+
tSYMBEG = 338,
|
157
|
+
tSTRING_BEG = 339,
|
158
|
+
tXSTRING_BEG = 340,
|
159
|
+
tREGEXP_BEG = 341,
|
160
|
+
tWORDS_BEG = 342,
|
161
|
+
tQWORDS_BEG = 343,
|
162
|
+
tSYMBOLS_BEG = 344,
|
163
|
+
tQSYMBOLS_BEG = 345,
|
164
|
+
tSTRING_END = 346,
|
165
|
+
tSTRING_DEND = 347,
|
166
|
+
tSTRING_DBEG = 348,
|
167
|
+
tSTRING_DVAR = 349,
|
168
|
+
tLAMBEG = 350,
|
169
|
+
tLABEL_END = 351,
|
170
|
+
tLOWEST = 352,
|
171
|
+
tUMINUS_NUM = 353,
|
172
|
+
tLAST_TOKEN = 354
|
173
|
+
};
|
174
|
+
#endif
|
175
|
+
|
176
|
+
/* Value type. */
|
177
|
+
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
178
|
+
union YYSTYPE
|
179
|
+
{
|
180
|
+
|
181
|
+
VALUE val;
|
182
|
+
NODE *node;
|
183
|
+
ID id;
|
184
|
+
int num;
|
185
|
+
st_table *tbl;
|
186
|
+
const struct vtable *vars;
|
187
|
+
struct rb_strterm_struct *strterm;
|
188
|
+
struct lex_context ctxt;
|
189
|
+
|
190
|
+
|
191
|
+
};
|
192
|
+
typedef union YYSTYPE YYSTYPE;
|
193
|
+
# define YYSTYPE_IS_TRIVIAL 1
|
194
|
+
# define YYSTYPE_IS_DECLARED 1
|
195
|
+
#endif
|
196
|
+
|
197
|
+
/* Location type. */
|
198
|
+
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
199
|
+
typedef struct YYLTYPE YYLTYPE;
|
200
|
+
struct YYLTYPE
|
201
|
+
{
|
202
|
+
int first_line;
|
203
|
+
int first_column;
|
204
|
+
int last_line;
|
205
|
+
int last_column;
|
206
|
+
};
|
207
|
+
# define YYLTYPE_IS_DECLARED 1
|
208
|
+
# define YYLTYPE_IS_TRIVIAL 1
|
209
|
+
#endif
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
int yyparse (struct parser_params *p);
|
214
|
+
|
215
|
+
#endif /* !YY_YY_Y_TAB_H_INCLUDED */
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#ifndef RUBY_PROBES_HELPER_H
|
2
|
+
#define RUBY_PROBES_HELPER_H
|
3
|
+
|
4
|
+
#include "ruby/ruby.h"
|
5
|
+
|
6
|
+
struct ruby_dtrace_method_hook_args {
|
7
|
+
const char *classname;
|
8
|
+
const char *methodname;
|
9
|
+
const char *filename;
|
10
|
+
int line_no;
|
11
|
+
volatile VALUE klass;
|
12
|
+
volatile VALUE name;
|
13
|
+
};
|
14
|
+
|
15
|
+
MJIT_SYMBOL_EXPORT_BEGIN
|
16
|
+
NOINLINE(int rb_dtrace_setup(rb_execution_context_t *, VALUE, ID, struct ruby_dtrace_method_hook_args *));
|
17
|
+
MJIT_SYMBOL_EXPORT_END
|
18
|
+
|
19
|
+
#define RUBY_DTRACE_METHOD_HOOK(name, ec, klazz, id) \
|
20
|
+
do { \
|
21
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
22
|
+
struct ruby_dtrace_method_hook_args args; \
|
23
|
+
if (rb_dtrace_setup(ec, klazz, id, &args)) { \
|
24
|
+
RUBY_DTRACE_##name(args.classname, \
|
25
|
+
args.methodname, \
|
26
|
+
args.filename, \
|
27
|
+
args.line_no); \
|
28
|
+
} \
|
29
|
+
} \
|
30
|
+
} while (0)
|
31
|
+
|
32
|
+
#define RUBY_DTRACE_METHOD_ENTRY_HOOK(ec, klass, id) \
|
33
|
+
RUBY_DTRACE_METHOD_HOOK(METHOD_ENTRY, ec, klass, id)
|
34
|
+
|
35
|
+
#define RUBY_DTRACE_METHOD_RETURN_HOOK(ec, klass, id) \
|
36
|
+
RUBY_DTRACE_METHOD_HOOK(METHOD_RETURN, ec, klass, id)
|
37
|
+
|
38
|
+
#define RUBY_DTRACE_CMETHOD_ENTRY_HOOK(ec, klass, id) \
|
39
|
+
RUBY_DTRACE_METHOD_HOOK(CMETHOD_ENTRY, ec, klass, id)
|
40
|
+
|
41
|
+
#define RUBY_DTRACE_CMETHOD_RETURN_HOOK(ec, klass, id) \
|
42
|
+
RUBY_DTRACE_METHOD_HOOK(CMETHOD_RETURN, ec, klass, id)
|
43
|
+
|
44
|
+
#endif /* RUBY_PROBES_HELPER_H */
|