debase-ruby_core_source 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/CONTRIBUTING.md +2 -1
  4. data/Rakefile +3 -2
  5. data/lib/debase/ruby_core_source/ruby-2.2.1/addr2line.h +21 -0
  6. data/lib/debase/ruby_core_source/ruby-2.2.1/ccan/build_assert/build_assert.h +40 -0
  7. data/lib/debase/ruby_core_source/ruby-2.2.1/ccan/check_type/check_type.h +63 -0
  8. data/lib/debase/ruby_core_source/ruby-2.2.1/ccan/container_of/container_of.h +142 -0
  9. data/lib/debase/ruby_core_source/ruby-2.2.1/ccan/list/list.h +635 -0
  10. data/lib/debase/ruby_core_source/ruby-2.2.1/ccan/str/str.h +16 -0
  11. data/lib/debase/ruby_core_source/ruby-2.2.1/constant.h +43 -0
  12. data/lib/debase/ruby_core_source/ruby-2.2.1/dln.h +51 -0
  13. data/lib/debase/ruby_core_source/ruby-2.2.1/eval_intern.h +275 -0
  14. data/lib/debase/ruby_core_source/ruby-2.2.1/gc.h +107 -0
  15. data/lib/debase/ruby_core_source/ruby-2.2.1/id.h +210 -0
  16. data/lib/debase/ruby_core_source/ruby-2.2.1/insns.inc +107 -0
  17. data/lib/debase/ruby_core_source/ruby-2.2.1/insns_info.inc +752 -0
  18. data/lib/debase/ruby_core_source/ruby-2.2.1/internal.h +1185 -0
  19. data/lib/debase/ruby_core_source/ruby-2.2.1/iseq.h +158 -0
  20. data/lib/debase/ruby_core_source/ruby-2.2.1/known_errors.inc +746 -0
  21. data/lib/debase/ruby_core_source/ruby-2.2.1/method.h +144 -0
  22. data/lib/debase/ruby_core_source/ruby-2.2.1/node.h +544 -0
  23. data/lib/debase/ruby_core_source/ruby-2.2.1/node_name.inc +212 -0
  24. data/lib/debase/ruby_core_source/ruby-2.2.1/opt_sc.inc +734 -0
  25. data/lib/debase/ruby_core_source/ruby-2.2.1/optinsn.inc +83 -0
  26. data/lib/debase/ruby_core_source/ruby-2.2.1/optunifs.inc +124 -0
  27. data/lib/debase/ruby_core_source/ruby-2.2.1/parse.h +203 -0
  28. data/lib/debase/ruby_core_source/ruby-2.2.1/probes_helper.h +67 -0
  29. data/lib/debase/ruby_core_source/ruby-2.2.1/regenc.h +234 -0
  30. data/lib/debase/ruby_core_source/ruby-2.2.1/regint.h +972 -0
  31. data/lib/debase/ruby_core_source/ruby-2.2.1/regparse.h +363 -0
  32. data/lib/debase/ruby_core_source/ruby-2.2.1/revision.h +1 -0
  33. data/lib/debase/ruby_core_source/ruby-2.2.1/ruby_atomic.h +170 -0
  34. data/lib/debase/ruby_core_source/ruby-2.2.1/siphash.h +48 -0
  35. data/lib/debase/ruby_core_source/ruby-2.2.1/symbol.h +87 -0
  36. data/lib/debase/ruby_core_source/ruby-2.2.1/thread_pthread.h +54 -0
  37. data/lib/debase/ruby_core_source/ruby-2.2.1/thread_win32.h +36 -0
  38. data/lib/debase/ruby_core_source/ruby-2.2.1/timev.h +42 -0
  39. data/lib/debase/ruby_core_source/ruby-2.2.1/transcode_data.h +123 -0
  40. data/lib/debase/ruby_core_source/ruby-2.2.1/version.h +52 -0
  41. data/lib/debase/ruby_core_source/ruby-2.2.1/vm.inc +3353 -0
  42. data/lib/debase/ruby_core_source/ruby-2.2.1/vm_core.h +1161 -0
  43. data/lib/debase/ruby_core_source/ruby-2.2.1/vm_debug.h +37 -0
  44. data/lib/debase/ruby_core_source/ruby-2.2.1/vm_exec.h +182 -0
  45. data/lib/debase/ruby_core_source/ruby-2.2.1/vm_insnhelper.h +233 -0
  46. data/lib/debase/ruby_core_source/ruby-2.2.1/vm_opts.h +56 -0
  47. data/lib/debase/ruby_core_source/ruby-2.2.1/vmtc.inc +105 -0
  48. data/lib/debase/ruby_core_source/version.rb +1 -1
  49. metadata +45 -2
@@ -0,0 +1,37 @@
1
+ /**********************************************************************
2
+
3
+ vm_debug.h - YARV Debug function interface
4
+
5
+ $Author: nobu $
6
+ created at: 04/08/25 02:33:49 JST
7
+
8
+ Copyright (C) 2004-2007 Koichi Sasada
9
+
10
+ **********************************************************************/
11
+
12
+ #ifndef RUBY_DEBUG_H
13
+ #define RUBY_DEBUG_H
14
+
15
+ #include "ruby/ruby.h"
16
+ #include "node.h"
17
+
18
+ RUBY_SYMBOL_EXPORT_BEGIN
19
+
20
+ #define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
21
+ #define dp(v) ruby_debug_print_value(-1, 0, "", (v))
22
+ #define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
23
+ #define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
24
+
25
+ #define bp() ruby_debug_breakpoint()
26
+
27
+ VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
28
+ ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
29
+ NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
30
+ int ruby_debug_print_indent(int level, int debug_level, int indent_level);
31
+ void ruby_debug_breakpoint(void);
32
+ void ruby_debug_gc_check_func(void);
33
+ void ruby_set_debug_option(const char *str);
34
+
35
+ RUBY_SYMBOL_EXPORT_END
36
+
37
+ #endif /* RUBY_DEBUG_H */
@@ -0,0 +1,182 @@
1
+ /**********************************************************************
2
+
3
+ vm.h -
4
+
5
+ $Author: ko1 $
6
+ created at: 04/01/01 16:56:59 JST
7
+
8
+ Copyright (C) 2004-2007 Koichi Sasada
9
+
10
+ **********************************************************************/
11
+
12
+ #ifndef RUBY_VM_EXEC_H
13
+ #define RUBY_VM_EXEC_H
14
+
15
+ typedef long OFFSET;
16
+ typedef unsigned long lindex_t;
17
+ typedef VALUE GENTRY;
18
+ typedef rb_iseq_t *ISEQ;
19
+
20
+ #ifdef __GCC__
21
+ /* TODO: machine dependent prefetch instruction */
22
+ #define PREFETCH(pc)
23
+ #else
24
+ #define PREFETCH(pc)
25
+ #endif
26
+
27
+ #if VMDEBUG > 0
28
+ #define debugs printf
29
+ #define DEBUG_ENTER_INSN(insn) \
30
+ rb_vmdebug_debug_print_pre(th, GET_CFP(),GET_PC());
31
+
32
+ #if OPT_STACK_CACHING
33
+ #define SC_REGS() , reg_a, reg_b
34
+ #else
35
+ #define SC_REGS()
36
+ #endif
37
+
38
+ #define DEBUG_END_INSN() \
39
+ rb_vmdebug_debug_print_post(th, GET_CFP() SC_REGS());
40
+
41
+ #else
42
+
43
+ #define debugs
44
+ #define DEBUG_ENTER_INSN(insn)
45
+ #define DEBUG_END_INSN()
46
+ #endif
47
+
48
+ #define throwdebug if(0)printf
49
+ /* #define throwdebug printf */
50
+
51
+ /************************************************/
52
+ #if defined(DISPATCH_XXX)
53
+ error !
54
+ /************************************************/
55
+ #elif OPT_CALL_THREADED_CODE
56
+
57
+ #define LABEL(x) insn_func_##x
58
+ #define ELABEL(x)
59
+ #define LABEL_PTR(x) &LABEL(x)
60
+
61
+ #define INSN_ENTRY(insn) \
62
+ static rb_control_frame_t * \
63
+ FUNC_FASTCALL(LABEL(insn))(rb_thread_t *th, rb_control_frame_t *reg_cfp) {
64
+
65
+ #define END_INSN(insn) return reg_cfp;}
66
+
67
+ #define NEXT_INSN() return reg_cfp;
68
+
69
+ /************************************************/
70
+ #elif OPT_TOKEN_THREADED_CODE || OPT_DIRECT_THREADED_CODE
71
+ /* threaded code with gcc */
72
+
73
+ #define LABEL(x) INSN_LABEL_##x
74
+ #define ELABEL(x) INSN_ELABEL_##x
75
+ #define LABEL_PTR(x) &&LABEL(x)
76
+
77
+ #define INSN_ENTRY_SIG(insn)
78
+
79
+
80
+ #define INSN_DISPATCH_SIG(insn)
81
+
82
+ #define INSN_ENTRY(insn) \
83
+ LABEL(insn): \
84
+ INSN_ENTRY_SIG(insn); \
85
+
86
+ /* dispatcher */
87
+ #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && __GNUC__ == 3
88
+ #define DISPATCH_ARCH_DEPEND_WAY(addr) \
89
+ __asm__ __volatile__("jmp *%0;\t# -- inserted by vm.h\t[length = 2]" : : "r" (addr))
90
+
91
+ #else
92
+ #define DISPATCH_ARCH_DEPEND_WAY(addr) \
93
+ /* do nothing */
94
+
95
+ #endif
96
+
97
+
98
+ /**********************************/
99
+ #if OPT_DIRECT_THREADED_CODE
100
+
101
+ /* for GCC 3.4.x */
102
+ #define TC_DISPATCH(insn) \
103
+ INSN_DISPATCH_SIG(insn); \
104
+ goto *(void const *)GET_CURRENT_INSN(); \
105
+ ;
106
+
107
+ #else
108
+ /* token threaded code */
109
+
110
+ #define TC_DISPATCH(insn) \
111
+ DISPATCH_ARCH_DEPEND_WAY(insns_address_table[GET_CURRENT_INSN()]); \
112
+ INSN_DISPATCH_SIG(insn); \
113
+ goto *insns_address_table[GET_CURRENT_INSN()]; \
114
+ rb_bug("tc error");
115
+
116
+
117
+ #endif /* DISPATCH_DIRECT_THREADED_CODE */
118
+
119
+ #define END_INSN(insn) \
120
+ DEBUG_END_INSN(); \
121
+ TC_DISPATCH(insn);
122
+
123
+ #define INSN_DISPATCH() \
124
+ TC_DISPATCH(__START__) \
125
+ {
126
+
127
+ #define END_INSNS_DISPATCH() \
128
+ rb_bug("unknown insn: %"PRIdVALUE, GET_CURRENT_INSN()); \
129
+ } /* end of while loop */ \
130
+
131
+ #define NEXT_INSN() TC_DISPATCH(__NEXT_INSN__)
132
+
133
+ /************************************************/
134
+ #else /* no threaded code */
135
+ /* most common method */
136
+
137
+ #define INSN_ENTRY(insn) \
138
+ case BIN(insn):
139
+
140
+ #define END_INSN(insn) \
141
+ DEBUG_END_INSN(); \
142
+ break;
143
+
144
+
145
+ #define INSN_DISPATCH() \
146
+ while (1) { \
147
+ switch (GET_CURRENT_INSN()) {
148
+
149
+ #define END_INSNS_DISPATCH() \
150
+ default: \
151
+ SDR(); \
152
+ rb_bug("unknown insn: %ld", GET_CURRENT_INSN()); \
153
+ } /* end of switch */ \
154
+ } /* end of while loop */ \
155
+
156
+ #define NEXT_INSN() goto first
157
+
158
+ #endif
159
+
160
+ #define VM_SP_CNT(th, sp) ((sp) - (th)->stack)
161
+
162
+ #if OPT_CALL_THREADED_CODE
163
+ #define THROW_EXCEPTION(exc) do { \
164
+ th->errinfo = (VALUE)(exc); \
165
+ return 0; \
166
+ } while (0)
167
+ #else
168
+ #define THROW_EXCEPTION(exc) return (VALUE)(exc)
169
+ #endif
170
+
171
+ #define SCREG(r) (reg_##r)
172
+
173
+ #define VM_DEBUG_STACKOVERFLOW 0
174
+
175
+ #if VM_DEBUG_STACKOVERFLOW
176
+ #define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin) \
177
+ WHEN_VM_STACK_OVERFLOWED(cfp, (cfp)->sp, margin) vm_stack_overflow_for_insn()
178
+ #else
179
+ #define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin)
180
+ #endif
181
+
182
+ #endif /* RUBY_VM_EXEC_H */
@@ -0,0 +1,233 @@
1
+ /**********************************************************************
2
+
3
+ insnhelper.h - helper macros to implement each instructions
4
+
5
+ $Author: nobu $
6
+ created at: 04/01/01 15:50:34 JST
7
+
8
+ Copyright (C) 2004-2007 Koichi Sasada
9
+
10
+ **********************************************************************/
11
+
12
+ #ifndef RUBY_INSNHELPER_H
13
+ #define RUBY_INSNHELPER_H
14
+
15
+ /**
16
+ * VM Debug Level
17
+ *
18
+ * debug level:
19
+ * 0: no debug output
20
+ * 1: show instruction name
21
+ * 2: show stack frame when control stack frame is changed
22
+ * 3: show stack status
23
+ * 4: show register
24
+ * 5:
25
+ * 10: gc check
26
+ */
27
+
28
+ #ifndef VMDEBUG
29
+ #define VMDEBUG 0
30
+ #endif
31
+
32
+ #if 0
33
+ #undef VMDEBUG
34
+ #define VMDEBUG 3
35
+ #endif
36
+
37
+ extern VALUE ruby_vm_const_missing_count;
38
+
39
+ #if VM_COLLECT_USAGE_DETAILS
40
+ #define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn)
41
+ #define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))
42
+
43
+ #define COLLECT_USAGE_REGISTER(reg, s) vm_collect_usage_register((reg), (s))
44
+ #else
45
+ #define COLLECT_USAGE_INSN(insn) /* none */
46
+ #define COLLECT_USAGE_OPERAND(insn, n, op) /* none */
47
+ #define COLLECT_USAGE_REGISTER(reg, s) /* none */
48
+ #endif
49
+
50
+ /**********************************************************/
51
+ /* deal with stack */
52
+ /**********************************************************/
53
+
54
+ #define PUSH(x) (SET_SV(x), INC_SP(1))
55
+ #define TOPN(n) (*(GET_SP()-(n)-1))
56
+ #define POPN(n) (DEC_SP(n))
57
+ #define POP() (DEC_SP(1))
58
+ #define STACK_ADDR_FROM_TOP(n) (GET_SP()-(n))
59
+
60
+ #define GET_TOS() (tos) /* dummy */
61
+
62
+ /**********************************************************/
63
+ /* deal with registers */
64
+ /**********************************************************/
65
+
66
+ #define REG_CFP (reg_cfp)
67
+ #define REG_PC (REG_CFP->pc)
68
+ #define REG_SP (REG_CFP->sp)
69
+ #define REG_EP (REG_CFP->ep)
70
+
71
+ #define RESTORE_REGS() do { \
72
+ REG_CFP = th->cfp; \
73
+ } while (0)
74
+
75
+ #define REG_A reg_a
76
+ #define REG_B reg_b
77
+
78
+ enum vm_regan_regtype {
79
+ VM_REGAN_PC = 0,
80
+ VM_REGAN_SP = 1,
81
+ VM_REGAN_EP = 2,
82
+ VM_REGAN_CFP = 3,
83
+ VM_REGAN_SELF = 4,
84
+ VM_REGAN_ISEQ = 5,
85
+ };
86
+ enum vm_regan_acttype {
87
+ VM_REGAN_ACT_GET = 0,
88
+ VM_REGAN_ACT_SET = 1,
89
+ };
90
+
91
+ #if VM_COLLECT_USAGE_DETAILS
92
+ #define COLLECT_USAGE_REGISTER_HELPER(a, b, v) \
93
+ (COLLECT_USAGE_REGISTER((VM_REGAN_##a), (VM_REGAN_ACT_##b)), (v))
94
+ #else
95
+ #define COLLECT_USAGE_REGISTER_HELPER(a, b, v) (v)
96
+ #endif
97
+
98
+ /* PC */
99
+ #define GET_PC() (COLLECT_USAGE_REGISTER_HELPER(PC, GET, REG_PC))
100
+ #define SET_PC(x) (REG_PC = (COLLECT_USAGE_REGISTER_HELPER(PC, SET, (x))))
101
+ #define GET_CURRENT_INSN() (*GET_PC())
102
+ #define GET_OPERAND(n) (GET_PC()[(n)])
103
+ #define ADD_PC(n) (SET_PC(REG_PC + (n)))
104
+
105
+ #define GET_PC_COUNT() (REG_PC - GET_ISEQ()->iseq_encoded)
106
+ #define JUMP(dst) (REG_PC += (dst))
107
+
108
+ /* frame pointer, environment pointer */
109
+ #define GET_CFP() (COLLECT_USAGE_REGISTER_HELPER(CFP, GET, REG_CFP))
110
+ #define GET_EP() (COLLECT_USAGE_REGISTER_HELPER(EP, GET, REG_EP))
111
+ #define SET_EP(x) (REG_EP = (COLLECT_USAGE_REGISTER_HELPER(EP, SET, (x))))
112
+ #define GET_LEP() (VM_EP_LEP(GET_EP()))
113
+
114
+ /* SP */
115
+ #define GET_SP() (COLLECT_USAGE_REGISTER_HELPER(SP, GET, REG_SP))
116
+ #define SET_SP(x) (REG_SP = (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
117
+ #define INC_SP(x) (REG_SP += (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
118
+ #define DEC_SP(x) (REG_SP -= (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x))))
119
+ #define SET_SV(x) (*GET_SP() = (x))
120
+ /* set current stack value as x */
121
+
122
+ #define GET_SP_COUNT() (REG_SP - th->stack)
123
+
124
+ /* instruction sequence C struct */
125
+ #define GET_ISEQ() (GET_CFP()->iseq)
126
+
127
+ /**********************************************************/
128
+ /* deal with variables */
129
+ /**********************************************************/
130
+
131
+ #define GET_PREV_EP(ep) ((VALUE *)((ep)[0] & ~0x03))
132
+
133
+ #define GET_GLOBAL(entry) rb_gvar_get((struct rb_global_entry*)(entry))
134
+ #define SET_GLOBAL(entry, val) rb_gvar_set((struct rb_global_entry*)(entry), (val))
135
+
136
+ #define GET_CONST_INLINE_CACHE(dst) ((IC) * (GET_PC() + (dst) + 2))
137
+
138
+ /**********************************************************/
139
+ /* deal with values */
140
+ /**********************************************************/
141
+
142
+ #define GET_SELF() (COLLECT_USAGE_REGISTER_HELPER(SELF, GET, GET_CFP()->self))
143
+
144
+ /**********************************************************/
145
+ /* deal with control flow 2: method/iterator */
146
+ /**********************************************************/
147
+
148
+ #define COPY_CREF_OMOD(c1, c2) do { \
149
+ RB_OBJ_WRITE((c1), &(c1)->nd_refinements, (c2)->nd_refinements); \
150
+ if (!NIL_P((c2)->nd_refinements)) { \
151
+ (c1)->flags |= NODE_FL_CREF_OMOD_SHARED; \
152
+ (c2)->flags |= NODE_FL_CREF_OMOD_SHARED; \
153
+ } \
154
+ } while (0)
155
+
156
+ #define COPY_CREF(c1, c2) do { \
157
+ NODE *__tmp_c2 = (c2); \
158
+ COPY_CREF_OMOD(c1, __tmp_c2); \
159
+ RB_OBJ_WRITE((c1), &(c1)->nd_clss, __tmp_c2->nd_clss); \
160
+ (c1)->nd_visi = __tmp_c2->nd_visi;\
161
+ RB_OBJ_WRITE((c1), &(c1)->nd_next, __tmp_c2->nd_next); \
162
+ if (__tmp_c2->flags & NODE_FL_CREF_PUSHED_BY_EVAL) { \
163
+ (c1)->flags |= NODE_FL_CREF_PUSHED_BY_EVAL; \
164
+ } \
165
+ } while (0)
166
+
167
+ #define CALL_METHOD(ci) do { \
168
+ VALUE v = (*(ci)->call)(th, GET_CFP(), (ci)); \
169
+ if (v == Qundef) { \
170
+ RESTORE_REGS(); \
171
+ NEXT_INSN(); \
172
+ } \
173
+ else { \
174
+ val = v; \
175
+ } \
176
+ } while (0)
177
+
178
+ /* set fastpath when cached method is *NOT* protected
179
+ * because inline method cache does not care about receiver.
180
+ */
181
+
182
+ #ifndef OPT_CALL_FASTPATH
183
+ #define OPT_CALL_FASTPATH 1
184
+ #endif
185
+
186
+ #if OPT_CALL_FASTPATH
187
+ #define CI_SET_FASTPATH(ci, func, enabled) do { \
188
+ if (LIKELY(enabled)) ((ci)->call = (func)); \
189
+ } while (0)
190
+ #else
191
+ #define CI_SET_FASTPATH(ci, func, enabled) /* do nothing */
192
+ #endif
193
+
194
+ #define GET_BLOCK_PTR() ((rb_block_t *)(GC_GUARDED_PTR_REF(GET_LEP()[0])))
195
+
196
+ /**********************************************************/
197
+ /* deal with control flow 3: exception */
198
+ /**********************************************************/
199
+
200
+
201
+ /**********************************************************/
202
+ /* others */
203
+ /**********************************************************/
204
+
205
+ /* optimize insn */
206
+ #define FIXNUM_2_P(a, b) ((a) & (b) & 1)
207
+ #if USE_FLONUM
208
+ #define FLONUM_2_P(a, b) (((((a)^2) | ((b)^2)) & 3) == 0) /* (FLONUM_P(a) && FLONUM_P(b)) */
209
+ #else
210
+ #define FLONUM_2_P(a, b) 0
211
+ #endif
212
+
213
+ #ifndef USE_IC_FOR_SPECIALIZED_METHOD
214
+ #define USE_IC_FOR_SPECIALIZED_METHOD 1
215
+ #endif
216
+
217
+ #define CALL_SIMPLE_METHOD(recv_) do { \
218
+ ci->blockptr = 0; ci->argc = ci->orig_argc; \
219
+ vm_search_method(ci, ci->recv = (recv_)); \
220
+ CALL_METHOD(ci); \
221
+ } while (0)
222
+
223
+ #define NEXT_CLASS_SERIAL() (++ruby_vm_class_serial)
224
+ #define GET_GLOBAL_METHOD_STATE() (ruby_vm_global_method_state)
225
+ #define INC_GLOBAL_METHOD_STATE() (++ruby_vm_global_method_state)
226
+ #define GET_GLOBAL_CONSTANT_STATE() (ruby_vm_global_constant_state)
227
+ #define INC_GLOBAL_CONSTANT_STATE() (++ruby_vm_global_constant_state)
228
+
229
+ static VALUE make_no_method_exception(VALUE exc, const char *format,
230
+ VALUE obj, int argc, const VALUE *argv);
231
+
232
+
233
+ #endif /* RUBY_INSNHELPER_H */
@@ -0,0 +1,56 @@
1
+ /*-*-c-*-*/
2
+ /**********************************************************************
3
+
4
+ vm_opts.h - VM optimize option
5
+
6
+ $Author: tmm1 $
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_TRACE_INSTRUCTION 1
22
+ #define OPT_TAILCALL_OPTIMIZATION 0
23
+ #define OPT_PEEPHOLE_OPTIMIZATION 1
24
+ #define OPT_SPECIALISED_INSTRUCTION 1
25
+ #define OPT_INLINE_CONST_CACHE 1
26
+
27
+
28
+ /* Build Options.
29
+ * You can't change these options at runtime.
30
+ */
31
+
32
+ /* C compiler dependent */
33
+ #define OPT_DIRECT_THREADED_CODE 1
34
+ #define OPT_TOKEN_THREADED_CODE 0
35
+ #define OPT_CALL_THREADED_CODE 0
36
+
37
+ /* VM running option */
38
+ #define OPT_CHECKED_RUN 1
39
+ #define OPT_INLINE_METHOD_CACHE 1
40
+ #define OPT_GLOBAL_METHOD_CACHE 1
41
+ #define OPT_BLOCKINLINING 0
42
+
43
+ /* architecture independent, affects generated code */
44
+ #define OPT_OPERANDS_UNIFICATION 1
45
+ #define OPT_INSTRUCTIONS_UNIFICATION 0
46
+ #define OPT_UNIFY_ALL_COMBINATION 0
47
+ #define OPT_STACK_CACHING 0
48
+
49
+ /* misc */
50
+ #define SUPPORT_JOKE 0
51
+
52
+ #ifndef VM_COLLECT_USAGE_DETAILS
53
+ #define VM_COLLECT_USAGE_DETAILS 0
54
+ #endif
55
+
56
+ #endif /* RUBY_VM_OPTS_H */
@@ -0,0 +1,105 @@
1
+ /* -*-c-*- *********************************************************/
2
+ /*******************************************************************/
3
+ /*******************************************************************/
4
+ /**
5
+ This file is for threaded code.
6
+
7
+ ----
8
+ This file is auto generated by insns2vm.rb
9
+ DO NOT TOUCH!
10
+
11
+ If you want to fix something, you must edit 'template/vmtc.inc.tmpl'
12
+ or insns2vm.rb
13
+ */
14
+
15
+ static const void *const insns_address_table[] = {
16
+ LABEL_PTR(nop),
17
+ LABEL_PTR(getlocal),
18
+ LABEL_PTR(setlocal),
19
+ LABEL_PTR(getspecial),
20
+ LABEL_PTR(setspecial),
21
+ LABEL_PTR(getinstancevariable),
22
+ LABEL_PTR(setinstancevariable),
23
+ LABEL_PTR(getclassvariable),
24
+ LABEL_PTR(setclassvariable),
25
+ LABEL_PTR(getconstant),
26
+ LABEL_PTR(setconstant),
27
+ LABEL_PTR(getglobal),
28
+ LABEL_PTR(setglobal),
29
+ LABEL_PTR(putnil),
30
+ LABEL_PTR(putself),
31
+ LABEL_PTR(putobject),
32
+ LABEL_PTR(putspecialobject),
33
+ LABEL_PTR(putiseq),
34
+ LABEL_PTR(putstring),
35
+ LABEL_PTR(concatstrings),
36
+ LABEL_PTR(tostring),
37
+ LABEL_PTR(toregexp),
38
+ LABEL_PTR(newarray),
39
+ LABEL_PTR(duparray),
40
+ LABEL_PTR(expandarray),
41
+ LABEL_PTR(concatarray),
42
+ LABEL_PTR(splatarray),
43
+ LABEL_PTR(newhash),
44
+ LABEL_PTR(newrange),
45
+ LABEL_PTR(pop),
46
+ LABEL_PTR(dup),
47
+ LABEL_PTR(dupn),
48
+ LABEL_PTR(swap),
49
+ LABEL_PTR(reput),
50
+ LABEL_PTR(topn),
51
+ LABEL_PTR(setn),
52
+ LABEL_PTR(adjuststack),
53
+ LABEL_PTR(defined),
54
+ LABEL_PTR(checkmatch),
55
+ LABEL_PTR(checkkeyword),
56
+ LABEL_PTR(trace),
57
+ LABEL_PTR(defineclass),
58
+ LABEL_PTR(send),
59
+ LABEL_PTR(opt_str_freeze),
60
+ LABEL_PTR(opt_send_without_block),
61
+ LABEL_PTR(invokesuper),
62
+ LABEL_PTR(invokeblock),
63
+ LABEL_PTR(leave),
64
+ LABEL_PTR(throw),
65
+ LABEL_PTR(jump),
66
+ LABEL_PTR(branchif),
67
+ LABEL_PTR(branchunless),
68
+ LABEL_PTR(getinlinecache),
69
+ LABEL_PTR(setinlinecache),
70
+ LABEL_PTR(once),
71
+ LABEL_PTR(opt_case_dispatch),
72
+ LABEL_PTR(opt_plus),
73
+ LABEL_PTR(opt_minus),
74
+ LABEL_PTR(opt_mult),
75
+ LABEL_PTR(opt_div),
76
+ LABEL_PTR(opt_mod),
77
+ LABEL_PTR(opt_eq),
78
+ LABEL_PTR(opt_neq),
79
+ LABEL_PTR(opt_lt),
80
+ LABEL_PTR(opt_le),
81
+ LABEL_PTR(opt_gt),
82
+ LABEL_PTR(opt_ge),
83
+ LABEL_PTR(opt_ltlt),
84
+ LABEL_PTR(opt_aref),
85
+ LABEL_PTR(opt_aset),
86
+ LABEL_PTR(opt_aset_with),
87
+ LABEL_PTR(opt_aref_with),
88
+ LABEL_PTR(opt_length),
89
+ LABEL_PTR(opt_size),
90
+ LABEL_PTR(opt_empty_p),
91
+ LABEL_PTR(opt_succ),
92
+ LABEL_PTR(opt_not),
93
+ LABEL_PTR(opt_regexpmatch1),
94
+ LABEL_PTR(opt_regexpmatch2),
95
+ LABEL_PTR(opt_call_c_function),
96
+ LABEL_PTR(bitblt),
97
+ LABEL_PTR(answer),
98
+ LABEL_PTR(getlocal_OP__WC__0),
99
+ LABEL_PTR(getlocal_OP__WC__1),
100
+ LABEL_PTR(setlocal_OP__WC__0),
101
+ LABEL_PTR(setlocal_OP__WC__1),
102
+ LABEL_PTR(putobject_OP_INT2FIX_O_0_C_),
103
+ LABEL_PTR(putobject_OP_INT2FIX_O_1_C_),
104
+ };
105
+
@@ -1,5 +1,5 @@
1
1
  module Debase
2
2
  module RubyCoreSource
3
- VERSION = '0.7.5'
3
+ VERSION = '0.7.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debase-ruby_core_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Moseley
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-25 00:00:00.000000000 Z
13
+ date: 2015-03-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: archive-tar-minitar
@@ -731,6 +731,49 @@ files:
731
731
  - lib/debase/ruby_core_source/ruby-2.2.0-p0/vm_insnhelper.h
732
732
  - lib/debase/ruby_core_source/ruby-2.2.0-p0/vm_opts.h
733
733
  - lib/debase/ruby_core_source/ruby-2.2.0-p0/vmtc.inc
734
+ - lib/debase/ruby_core_source/ruby-2.2.1/addr2line.h
735
+ - lib/debase/ruby_core_source/ruby-2.2.1/ccan/build_assert/build_assert.h
736
+ - lib/debase/ruby_core_source/ruby-2.2.1/ccan/check_type/check_type.h
737
+ - lib/debase/ruby_core_source/ruby-2.2.1/ccan/container_of/container_of.h
738
+ - lib/debase/ruby_core_source/ruby-2.2.1/ccan/list/list.h
739
+ - lib/debase/ruby_core_source/ruby-2.2.1/ccan/str/str.h
740
+ - lib/debase/ruby_core_source/ruby-2.2.1/constant.h
741
+ - lib/debase/ruby_core_source/ruby-2.2.1/dln.h
742
+ - lib/debase/ruby_core_source/ruby-2.2.1/eval_intern.h
743
+ - lib/debase/ruby_core_source/ruby-2.2.1/gc.h
744
+ - lib/debase/ruby_core_source/ruby-2.2.1/id.h
745
+ - lib/debase/ruby_core_source/ruby-2.2.1/insns.inc
746
+ - lib/debase/ruby_core_source/ruby-2.2.1/insns_info.inc
747
+ - lib/debase/ruby_core_source/ruby-2.2.1/internal.h
748
+ - lib/debase/ruby_core_source/ruby-2.2.1/iseq.h
749
+ - lib/debase/ruby_core_source/ruby-2.2.1/known_errors.inc
750
+ - lib/debase/ruby_core_source/ruby-2.2.1/method.h
751
+ - lib/debase/ruby_core_source/ruby-2.2.1/node.h
752
+ - lib/debase/ruby_core_source/ruby-2.2.1/node_name.inc
753
+ - lib/debase/ruby_core_source/ruby-2.2.1/opt_sc.inc
754
+ - lib/debase/ruby_core_source/ruby-2.2.1/optinsn.inc
755
+ - lib/debase/ruby_core_source/ruby-2.2.1/optunifs.inc
756
+ - lib/debase/ruby_core_source/ruby-2.2.1/parse.h
757
+ - lib/debase/ruby_core_source/ruby-2.2.1/probes_helper.h
758
+ - lib/debase/ruby_core_source/ruby-2.2.1/regenc.h
759
+ - lib/debase/ruby_core_source/ruby-2.2.1/regint.h
760
+ - lib/debase/ruby_core_source/ruby-2.2.1/regparse.h
761
+ - lib/debase/ruby_core_source/ruby-2.2.1/revision.h
762
+ - lib/debase/ruby_core_source/ruby-2.2.1/ruby_atomic.h
763
+ - lib/debase/ruby_core_source/ruby-2.2.1/siphash.h
764
+ - lib/debase/ruby_core_source/ruby-2.2.1/symbol.h
765
+ - lib/debase/ruby_core_source/ruby-2.2.1/thread_pthread.h
766
+ - lib/debase/ruby_core_source/ruby-2.2.1/thread_win32.h
767
+ - lib/debase/ruby_core_source/ruby-2.2.1/timev.h
768
+ - lib/debase/ruby_core_source/ruby-2.2.1/transcode_data.h
769
+ - lib/debase/ruby_core_source/ruby-2.2.1/version.h
770
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm.inc
771
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm_core.h
772
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm_debug.h
773
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm_exec.h
774
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm_insnhelper.h
775
+ - lib/debase/ruby_core_source/ruby-2.2.1/vm_opts.h
776
+ - lib/debase/ruby_core_source/ruby-2.2.1/vmtc.inc
734
777
  - lib/debase/ruby_core_source/version.rb
735
778
  homepage: http://github.com/os97673/debase-ruby_core_source
736
779
  licenses: