ruby-internal 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ruby-internal-node-dump +1 -1
- data/bin/ruby-internal-obfuscate +1 -1
- data/ext/cached/ruby-1.8.4/internal/method/{method.h → internal_method.h} +12 -0
- data/ext/cached/ruby-1.8.4/internal/module/getcfp.h +13 -0
- data/ext/cached/ruby-1.8.4/internal/node/global_entry.h +94 -0
- data/ext/cached/ruby-1.8.4/internal/node/node_type_descrip.c +41 -41
- data/ext/cached/ruby-1.8.4/internal/node/nodeinfo.c +288 -273
- data/ext/cached/ruby-1.8.4/internal/vm/instruction/insns_info.c +3 -0
- data/ext/cached/ruby-1.8.4/internal/vm/iseq/iseq_load.inc +21 -2
- data/ext/cached/{ruby-1.8.3/internal/method/method.h → ruby-1.8.5/internal/method/internal_method.h} +12 -0
- data/ext/cached/ruby-1.8.5/internal/module/getcfp.h +13 -0
- data/ext/cached/ruby-1.8.5/internal/node/global_entry.h +94 -0
- data/ext/cached/ruby-1.8.5/internal/node/node_type_descrip.c +45 -45
- data/ext/cached/ruby-1.8.5/internal/node/nodeinfo.c +310 -295
- data/ext/cached/ruby-1.8.5/internal/vm/instruction/insns_info.c +3 -0
- data/ext/cached/ruby-1.8.5/internal/vm/iseq/iseq_load.inc +21 -2
- data/ext/cached/{ruby-1.8.5/internal/method/method.h → ruby-1.8.6/internal/method/internal_method.h} +12 -0
- data/ext/cached/ruby-1.8.6/internal/module/getcfp.h +13 -0
- data/ext/cached/ruby-1.8.6/internal/node/global_entry.h +94 -0
- data/ext/cached/ruby-1.8.6/internal/node/node_type_descrip.c +48 -48
- data/ext/cached/ruby-1.8.6/internal/node/nodeinfo.c +323 -308
- data/ext/cached/ruby-1.8.6/internal/vm/instruction/insns_info.c +3 -0
- data/ext/cached/ruby-1.8.6/internal/vm/iseq/iseq_load.inc +21 -2
- data/ext/cached/{ruby-1.8.6/internal/method/method.h → ruby-1.8.7/internal/method/internal_method.h} +12 -0
- data/ext/cached/ruby-1.8.7/internal/module/getcfp.h +13 -0
- data/ext/cached/ruby-1.8.7/internal/node/global_entry.h +98 -0
- data/ext/cached/ruby-1.8.7/internal/node/node_type_descrip.c +42 -42
- data/ext/cached/ruby-1.8.7/internal/node/nodeinfo.c +276 -261
- data/ext/cached/ruby-1.8.7/internal/vm/instruction/insns_info.c +3 -0
- data/ext/cached/ruby-1.8.7/internal/vm/iseq/iseq_load.inc +21 -2
- data/ext/cached/{ruby-1.9.0/internal/method/method.h → ruby-1.9.1/internal/method/internal_method.h} +12 -0
- data/ext/cached/ruby-1.9.1/internal/module/classpath.c +12 -14
- data/ext/cached/ruby-1.9.1/internal/module/getcfp.h +25 -0
- data/ext/cached/ruby-1.9.1/internal/node/global_entry.h +86 -0
- data/ext/cached/ruby-1.9.1/internal/node/node_type_descrip.c +46 -48
- data/ext/cached/ruby-1.9.1/internal/node/nodeinfo.c +311 -412
- data/ext/cached/ruby-1.9.1/internal/vm/instruction/insns_info.c +3 -0
- data/ext/cached/ruby-1.9.1/internal/vm/iseq/iseq_load.inc +28 -6
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/iseq.h +1 -0
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/parse.h +6 -6
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/revision.h +1 -1
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/version.h +6 -5
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/vm_core.h +3 -2
- data/ext/cached/ruby-1.9.1/internal/yarv-headers/vm_insnhelper.h +1 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/binding/block.h +0 -0
- data/ext/cached/{ruby-1.9.1/internal/method/method.h → ruby-1.9.2/internal/method/internal_method.h} +16 -5
- data/ext/cached/ruby-1.9.2/internal/module/classpath.c +40 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/module/classpath.h +0 -0
- data/ext/cached/ruby-1.9.2/internal/module/getcfp.h +25 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/node/block.h +0 -0
- data/ext/cached/ruby-1.9.2/internal/node/global_entry.h +93 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/node/node_type_descrip.c +44 -48
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/node/nodeinfo.c +291 -439
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/node/nodeinfo.h +0 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/proc/block.h +0 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/tag/tag.h +0 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/vm/instruction/insns_info.c +141 -64
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/vm/instruction/insns_info.h +88 -80
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/vm/iseq/insns_info.inc +77 -70
- data/ext/cached/ruby-1.9.2/internal/vm/iseq/iseq_load.inc +426 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/debug.h +1 -1
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/dln.h +3 -3
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/encdb.h +18 -2
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/eval_intern.h +39 -28
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/gc.h +7 -5
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/id.h +170 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/iseq.h +20 -10
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/method.h +103 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/node.h +14 -47
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/parse.h +31 -148
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/regenc.h +7 -3
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/regint.h +16 -17
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/regparse.h +4 -1
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/revision.h +1 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/thread_pthread.h +4 -1
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/thread_win32.h +1 -1
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/timev.h +21 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/transcode_data.h +20 -10
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/transdb.h +179 -0
- data/ext/cached/ruby-1.9.2/internal/yarv-headers/version.h +55 -0
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/vm_core.h +127 -84
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/vm_exec.h +4 -7
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/vm_insnhelper.h +53 -36
- data/ext/cached/{ruby-1.9.0 → ruby-1.9.2}/internal/yarv-headers/vm_opts.h +1 -1
- data/ext/cached/ruby-1.9.3/internal/binding/block.h +12 -0
- data/ext/cached/ruby-1.9.3/internal/method/internal_method.h +32 -0
- data/ext/cached/ruby-1.9.3/internal/module/classpath.c +40 -0
- data/ext/cached/{ruby-1.8.0 → ruby-1.9.3}/internal/module/classpath.h +5 -2
- data/ext/cached/ruby-1.9.3/internal/module/getcfp.h +25 -0
- data/ext/cached/ruby-1.9.3/internal/node/block.h +12 -0
- data/ext/cached/ruby-1.9.3/internal/node/global_entry.h +93 -0
- data/ext/cached/{ruby-1.8.3 → ruby-1.9.3}/internal/node/node_type_descrip.c +48 -57
- data/ext/cached/{ruby-1.6.8 → ruby-1.9.3}/internal/node/nodeinfo.c +589 -740
- data/ext/cached/{ruby-1.8.0 → ruby-1.9.3}/internal/node/nodeinfo.h +4 -3
- data/ext/cached/ruby-1.9.3/internal/proc/block.h +12 -0
- data/ext/cached/ruby-1.9.3/internal/tag/tag.h +6 -0
- data/ext/cached/ruby-1.9.3/internal/vm/instruction/insns_info.c +6013 -0
- data/ext/cached/ruby-1.9.3/internal/vm/instruction/insns_info.h +899 -0
- data/ext/cached/ruby-1.9.3/internal/vm/iseq/insns_info.inc +707 -0
- data/ext/cached/ruby-1.9.3/internal/vm/iseq/iseq_load.inc +423 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/addr2line.h +21 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/atomic.h +56 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/constant.h +34 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/debug.h +41 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/dln.h +50 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/encdb.h +167 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/eval_intern.h +234 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/gc.h +98 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/id.h +175 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/internal.h +232 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/iseq.h +125 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/method.h +105 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/node.h +503 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/parse.h +186 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/regenc.h +219 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/regint.h +850 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/regparse.h +362 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/revision.h +1 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/thread_pthread.h +51 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/thread_win32.h +40 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/timev.h +21 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/transcode_data.h +117 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/transdb.h +189 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/version.h +52 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/vm_core.h +756 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/vm_exec.h +184 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/vm_insnhelper.h +220 -0
- data/ext/cached/ruby-1.9.3/internal/yarv-headers/vm_opts.h +51 -0
- data/ext/internal/binding/block.h +20 -0
- data/ext/internal/method/internal_method.h +5 -38
- data/ext/internal/method/internal_method.h.rpp +0 -7
- data/ext/internal/method/method.c +52 -32
- data/ext/internal/module/classpath.c +18 -13
- data/ext/internal/module/classpath.h +3 -3
- data/ext/internal/module/extconf.rb +3 -2
- data/ext/internal/module/getcfp.h +13 -0
- data/ext/internal/module/getcfp.h.rpp +44 -0
- data/ext/internal/module/module.c +58 -21
- data/ext/internal/node/block.h +20 -0
- data/ext/internal/node/extconf.rb +2 -0
- data/ext/internal/node/global_entry.h +69 -13
- data/ext/internal/node/global_entry.h.rpp +11 -2
- data/ext/internal/node/node.c +30 -3
- data/ext/internal/node/node_type_descrip.c +47 -38
- data/ext/internal/node/nodeinfo.c +622 -306
- data/ext/internal/node/nodeinfo.h +1 -4
- data/ext/internal/proc/block.h +20 -0
- data/ext/internal/tag/tag.h +10 -0
- data/ext/internal/thread/thread.c +9 -3
- data/ext/internal/vm/extconf.rb +1 -0
- data/ext/internal/vm/instruction/insns_info.c +3 -5974
- data/ext/internal/vm/instruction/insns_info.h +0 -878
- data/ext/internal/vm/iseq/extconf.rb +1 -0
- data/ext/internal/vm/iseq/iseq.c +38 -4
- data/ext/internal/vm/iseq/iseq_load.inc.rpp +23 -5
- data/ext/internal/vm/vm.c +28 -0
- data/lib/internal/classtree.rb +28 -0
- data/lib/internal/debug.rb +10 -2
- data/lib/internal/method/as_code.rb +25 -0
- data/lib/internal/method/as_expression.rb +2 -3
- data/lib/internal/method/origin.rb +29 -0
- data/lib/internal/method/signature.rb +5 -300
- data/lib/internal/method/signature/argument.rb +102 -0
- data/lib/internal/method/signature/iseq.rb +52 -0
- data/lib/internal/method/signature/node.rb +160 -0
- data/lib/internal/method/signature/signature.rb +23 -0
- data/lib/internal/proc/as_code.rb +2 -0
- data/lib/internal/proc/as_expression.rb +2 -0
- data/lib/internal/vm/bytedecoder.rb +5 -5
- data/lib/internal/vm/iseq/as_code.rb +2 -2
- data/lib/internal/vm/iseq/as_expression.rb +2 -2
- data/test/test_dump_method.rb +1 -1
- data/test/test_method.rb +21 -3
- data/test/test_node.rb +20 -4
- metadata +152 -155
- data/ext/cached/ruby-1.6.8/internal/binding/block.h +0 -35
- data/ext/cached/ruby-1.6.8/internal/method/method.h +0 -19
- data/ext/cached/ruby-1.6.8/internal/module/classpath.c +0 -3
- data/ext/cached/ruby-1.6.8/internal/module/classpath.h +0 -8
- data/ext/cached/ruby-1.6.8/internal/node/block.h +0 -35
- data/ext/cached/ruby-1.6.8/internal/node/global_entry.h +0 -15
- data/ext/cached/ruby-1.6.8/internal/node/node_type_descrip.c +0 -149
- data/ext/cached/ruby-1.6.8/internal/node/nodeinfo.h +0 -69
- data/ext/cached/ruby-1.6.8/internal/proc/block.h +0 -35
- data/ext/cached/ruby-1.6.8/internal/tag/tag.h +0 -15
- data/ext/cached/ruby-1.6.8/internal/vm/instruction/insns_info.c +0 -39
- data/ext/cached/ruby-1.6.8/internal/vm/instruction/insns_info.h +0 -21
- data/ext/cached/ruby-1.6.8/internal/vm/iseq/insns_info.inc +0 -12
- data/ext/cached/ruby-1.6.8/internal/vm/iseq/iseq_load.inc +0 -9
- data/ext/cached/ruby-1.8.0/internal/binding/block.h +0 -37
- data/ext/cached/ruby-1.8.0/internal/method/method.h +0 -19
- data/ext/cached/ruby-1.8.0/internal/module/classpath.c +0 -27
- data/ext/cached/ruby-1.8.0/internal/node/block.h +0 -37
- data/ext/cached/ruby-1.8.0/internal/node/global_entry.h +0 -10
- data/ext/cached/ruby-1.8.0/internal/node/node_type_descrip.c +0 -155
- data/ext/cached/ruby-1.8.0/internal/node/nodeinfo.c +0 -5744
- data/ext/cached/ruby-1.8.0/internal/proc/block.h +0 -37
- data/ext/cached/ruby-1.8.0/internal/tag/tag.h +0 -15
- data/ext/cached/ruby-1.8.0/internal/vm/instruction/insns_info.c +0 -39
- data/ext/cached/ruby-1.8.0/internal/vm/instruction/insns_info.h +0 -21
- data/ext/cached/ruby-1.8.0/internal/vm/iseq/insns_info.inc +0 -12
- data/ext/cached/ruby-1.8.0/internal/vm/iseq/iseq_load.inc +0 -9
- data/ext/cached/ruby-1.8.1/internal/binding/block.h +0 -31
- data/ext/cached/ruby-1.8.1/internal/method/method.h +0 -19
- data/ext/cached/ruby-1.8.1/internal/module/classpath.c +0 -27
- data/ext/cached/ruby-1.8.1/internal/module/classpath.h +0 -14
- data/ext/cached/ruby-1.8.1/internal/node/block.h +0 -31
- data/ext/cached/ruby-1.8.1/internal/node/global_entry.h +0 -10
- data/ext/cached/ruby-1.8.1/internal/node/node_type_descrip.c +0 -154
- data/ext/cached/ruby-1.8.1/internal/node/nodeinfo.c +0 -5736
- data/ext/cached/ruby-1.8.1/internal/node/nodeinfo.h +0 -69
- data/ext/cached/ruby-1.8.1/internal/proc/block.h +0 -31
- data/ext/cached/ruby-1.8.1/internal/tag/tag.h +0 -16
- data/ext/cached/ruby-1.8.1/internal/vm/instruction/insns_info.c +0 -39
- data/ext/cached/ruby-1.8.1/internal/vm/instruction/insns_info.h +0 -21
- data/ext/cached/ruby-1.8.1/internal/vm/iseq/insns_info.inc +0 -12
- data/ext/cached/ruby-1.8.1/internal/vm/iseq/iseq_load.inc +0 -9
- data/ext/cached/ruby-1.8.2/internal/binding/block.h +0 -32
- data/ext/cached/ruby-1.8.2/internal/method/method.h +0 -19
- data/ext/cached/ruby-1.8.2/internal/module/classpath.c +0 -45
- data/ext/cached/ruby-1.8.2/internal/module/classpath.h +0 -17
- data/ext/cached/ruby-1.8.2/internal/node/block.h +0 -32
- data/ext/cached/ruby-1.8.2/internal/node/global_entry.h +0 -10
- data/ext/cached/ruby-1.8.2/internal/node/node_type_descrip.c +0 -154
- data/ext/cached/ruby-1.8.2/internal/node/nodeinfo.c +0 -5736
- data/ext/cached/ruby-1.8.2/internal/node/nodeinfo.h +0 -69
- data/ext/cached/ruby-1.8.2/internal/proc/block.h +0 -32
- data/ext/cached/ruby-1.8.2/internal/tag/tag.h +0 -16
- data/ext/cached/ruby-1.8.2/internal/vm/instruction/insns_info.c +0 -39
- data/ext/cached/ruby-1.8.2/internal/vm/instruction/insns_info.h +0 -21
- data/ext/cached/ruby-1.8.2/internal/vm/iseq/insns_info.inc +0 -12
- data/ext/cached/ruby-1.8.2/internal/vm/iseq/iseq_load.inc +0 -9
- data/ext/cached/ruby-1.8.3/internal/binding/block.h +0 -32
- data/ext/cached/ruby-1.8.3/internal/module/classpath.c +0 -45
- data/ext/cached/ruby-1.8.3/internal/module/classpath.h +0 -17
- data/ext/cached/ruby-1.8.3/internal/node/block.h +0 -32
- data/ext/cached/ruby-1.8.3/internal/node/global_entry.h +0 -10
- data/ext/cached/ruby-1.8.3/internal/node/nodeinfo.c +0 -5736
- data/ext/cached/ruby-1.8.3/internal/node/nodeinfo.h +0 -69
- data/ext/cached/ruby-1.8.3/internal/proc/block.h +0 -32
- data/ext/cached/ruby-1.8.3/internal/tag/tag.h +0 -16
- data/ext/cached/ruby-1.8.3/internal/vm/instruction/insns_info.c +0 -39
- data/ext/cached/ruby-1.8.3/internal/vm/instruction/insns_info.h +0 -21
- data/ext/cached/ruby-1.8.3/internal/vm/iseq/insns_info.inc +0 -12
- data/ext/cached/ruby-1.8.3/internal/vm/iseq/iseq_load.inc +0 -9
- data/ext/cached/ruby-1.8.7/internal/method/method.h +0 -20
- data/ext/cached/ruby-1.9.0/internal/module/classpath.c +0 -42
- data/ext/cached/ruby-1.9.0/internal/node/global_entry.h +0 -10
- data/ext/cached/ruby-1.9.0/internal/vm/iseq/iseq_load.inc +0 -13
- data/ext/cached/ruby-1.9.0/internal/yarv-headers/id.h +0 -83
- data/ext/cached/ruby-1.9.0/internal/yarv-headers/revision.h +0 -1
- data/ext/cached/ruby-1.9.0/internal/yarv-headers/transdb.h +0 -67
- data/ext/cached/ruby-1.9.0/internal/yarv-headers/version.h +0 -57
- data/ext/internal/module/cfp.h +0 -13
@@ -1,69 +0,0 @@
|
|
1
|
-
#ifndef nodeinfo_h
|
2
|
-
#define nodeinfo_h
|
3
|
-
|
4
|
-
#include "ruby_internal_node.h"
|
5
|
-
|
6
|
-
#include "ruby.h"
|
7
|
-
|
8
|
-
enum Node_Elem_Name
|
9
|
-
{
|
10
|
-
NEN_NONE,
|
11
|
-
NEN_1ST,
|
12
|
-
NEN_2ND,
|
13
|
-
NEN_AID,
|
14
|
-
NEN_ALEN,
|
15
|
-
NEN_ARGC,
|
16
|
-
NEN_ARGS,
|
17
|
-
NEN_BEG,
|
18
|
-
NEN_BODY,
|
19
|
-
NEN_CFLAG,
|
20
|
-
NEN_CFNC,
|
21
|
-
NEN_CLSS,
|
22
|
-
NEN_CNT,
|
23
|
-
NEN_COND,
|
24
|
-
NEN_CPATH,
|
25
|
-
NEN_CVAL,
|
26
|
-
NEN_DEFN,
|
27
|
-
NEN_ELSE,
|
28
|
-
NEN_END,
|
29
|
-
NEN_ENSR,
|
30
|
-
NEN_ENTRY,
|
31
|
-
NEN_FRML,
|
32
|
-
NEN_HEAD,
|
33
|
-
NEN_IBDY,
|
34
|
-
NEN_ITER,
|
35
|
-
NEN_LIT,
|
36
|
-
NEN_MID,
|
37
|
-
NEN_MODL,
|
38
|
-
NEN_NEW,
|
39
|
-
NEN_NEXT,
|
40
|
-
NEN_NOEX,
|
41
|
-
NEN_NTH,
|
42
|
-
NEN_OLD,
|
43
|
-
NEN_OPT,
|
44
|
-
NEN_ORIG,
|
45
|
-
NEN_RECV,
|
46
|
-
NEN_RESQ,
|
47
|
-
NEN_REST,
|
48
|
-
NEN_RVAL,
|
49
|
-
NEN_STATE,
|
50
|
-
NEN_STTS,
|
51
|
-
NEN_SUPER,
|
52
|
-
NEN_TAG,
|
53
|
-
NEN_TBL,
|
54
|
-
NEN_TVAL,
|
55
|
-
NEN_VALUE,
|
56
|
-
NEN_VAR,
|
57
|
-
NEN_VID,
|
58
|
-
};
|
59
|
-
|
60
|
-
VALUE dump_node_elem(enum Node_Elem_Name nen, NODE * n, VALUE node_hash);
|
61
|
-
void load_node_elem(enum Node_Elem_Name nen, VALUE v, NODE * n, VALUE node_hash, VALUE id_hash);
|
62
|
-
VALUE node_s_members(VALUE klass);
|
63
|
-
void define_node_subclass_methods();
|
64
|
-
|
65
|
-
#define NODE_OP_ASGN2_ARG NODE_LAST + 1
|
66
|
-
#define NUM_NODE_TYPE_DESCRIPS NODE_OP_ASGN2_ARG + 1
|
67
|
-
|
68
|
-
#endif
|
69
|
-
|
@@ -1,32 +0,0 @@
|
|
1
|
-
#ifndef ruby_internal_block__h_
|
2
|
-
#define ruby_internal_block__h_
|
3
|
-
|
4
|
-
#include <ruby.h>
|
5
|
-
|
6
|
-
#ifndef RUBY_VM
|
7
|
-
#include "env.h"
|
8
|
-
#endif
|
9
|
-
|
10
|
-
struct BLOCK {
|
11
|
-
NODE *var;
|
12
|
-
NODE *body;
|
13
|
-
VALUE self;
|
14
|
-
struct FRAME frame;
|
15
|
-
struct SCOPE *scope;
|
16
|
-
VALUE klass;
|
17
|
-
NODE *cref;
|
18
|
-
int iter;
|
19
|
-
int vmode;
|
20
|
-
int flags;
|
21
|
-
int uniq;
|
22
|
-
struct RVarmap *dyna_vars;
|
23
|
-
VALUE orig_thread;
|
24
|
-
VALUE wrapper;
|
25
|
-
VALUE block_obj;
|
26
|
-
struct BLOCK *outer;
|
27
|
-
struct BLOCK *prev;
|
28
|
-
};
|
29
|
-
|
30
|
-
|
31
|
-
#endif
|
32
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
#include <ruby.h>
|
2
|
-
|
3
|
-
#ifdef RUBY_VM
|
4
|
-
#include "eval_intern.h"
|
5
|
-
#endif
|
6
|
-
|
7
|
-
#define TAG_DST() (_tag.dst == (VALUE)ruby_frame->uniq)
|
8
|
-
#define TAG_RETURN 0x1
|
9
|
-
#define TAG_BREAK 0x2
|
10
|
-
#define TAG_NEXT 0x3
|
11
|
-
#define TAG_RETRY 0x4
|
12
|
-
#define TAG_REDO 0x5
|
13
|
-
#define TAG_RAISE 0x6
|
14
|
-
#define TAG_THROW 0x7
|
15
|
-
#define TAG_FATAL 0x8
|
16
|
-
#define TAG_MASK 0xf
|
@@ -1,39 +0,0 @@
|
|
1
|
-
#include "insns_info.h"
|
2
|
-
|
3
|
-
#ifdef RUBY_VM
|
4
|
-
|
5
|
-
|
6
|
-
VALUE instruction_class[VM_INSTRUCTION_SIZE];
|
7
|
-
|
8
|
-
static ID operand_type_name_of(int operand_type)
|
9
|
-
{
|
10
|
-
char const * retval = "????";
|
11
|
-
|
12
|
-
switch(operand_type)
|
13
|
-
{
|
14
|
-
case TS_ISEQ: retval = "iseq"; break;
|
15
|
-
case TS_GENTRY: retval = "gentry"; break;
|
16
|
-
case TS_OFFSET: retval = "operand"; break;
|
17
|
-
case TS_DINDEX: retval = "dindex"; break;
|
18
|
-
case TS_VARIABLE: retval = "variable"; break;
|
19
|
-
case TS_CDHASH: retval = "cdhash"; break;
|
20
|
-
case TS_IC: retval = "ic"; break;
|
21
|
-
case TS_ID: retval = "id"; break;
|
22
|
-
case TS_VALUE: retval = "value"; break;
|
23
|
-
case TS_LINDEX: retval = "lindex"; break;
|
24
|
-
case TS_NUM: retval = "num"; break;
|
25
|
-
}
|
26
|
-
|
27
|
-
return rb_intern(retval);
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
void define_instruction_subclasses(VALUE rb_cInstruction)
|
32
|
-
{
|
33
|
-
/* For rdoc: rb_cVM = rb_define_class("VM", rb_cObject); */
|
34
|
-
/* For rdoc: rb_cInstruction = rb_define_class_under(rb_cVM, "Instruction", rb_cObject); */
|
35
|
-
|
36
|
-
}
|
37
|
-
|
38
|
-
#endif
|
39
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
#ifndef insns_info__h_
|
2
|
-
#define insns_info__h_
|
3
|
-
|
4
|
-
#include "ruby.h"
|
5
|
-
|
6
|
-
#ifdef RUBY_VM
|
7
|
-
|
8
|
-
#include "vm_core.h"
|
9
|
-
|
10
|
-
#ifdef HAVE_VM_H
|
11
|
-
#include "vm.h"
|
12
|
-
#endif
|
13
|
-
|
14
|
-
|
15
|
-
extern VALUE instruction_class[VM_INSTRUCTION_SIZE];
|
16
|
-
void define_instruction_subclasses(VALUE rb_cInstruction);
|
17
|
-
|
18
|
-
#endif
|
19
|
-
|
20
|
-
#endif
|
21
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
#ifndef ruby_internal_method__h_
|
2
|
-
#define ruby_internal_method__h_
|
3
|
-
|
4
|
-
#include <ruby.h>
|
5
|
-
|
6
|
-
#include "internal/node/ruby_internal_node.h"
|
7
|
-
|
8
|
-
struct METHOD {
|
9
|
-
VALUE klass, rklass;
|
10
|
-
VALUE recv;
|
11
|
-
ID id, oid;
|
12
|
-
int safe_level;
|
13
|
-
NODE *body;
|
14
|
-
};
|
15
|
-
|
16
|
-
#define METHOD_OCLASS(m) m->klass
|
17
|
-
#define METHOD_RCLASS(m) m->rklass
|
18
|
-
|
19
|
-
#endif
|
20
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
#include "classpath.h"
|
2
|
-
|
3
|
-
VALUE
|
4
|
-
class2path(VALUE klass)
|
5
|
-
{
|
6
|
-
VALUE path = rb_class_path(klass);
|
7
|
-
char *n = RSTRING_PTR(path);
|
8
|
-
|
9
|
-
if (n[0] == '#') {
|
10
|
-
rb_raise(rb_eTypeError, "can't dump anonymous %s %s",
|
11
|
-
(TYPE(klass) == T_CLASS ? "class" : "module"),
|
12
|
-
n);
|
13
|
-
}
|
14
|
-
if (rb_path2class(n) != rb_class_real(klass)) {
|
15
|
-
rb_raise(rb_eTypeError, "%s can't be referred", n);
|
16
|
-
}
|
17
|
-
return path;
|
18
|
-
}
|
19
|
-
|
20
|
-
VALUE
|
21
|
-
path2class(const char *path)
|
22
|
-
{
|
23
|
-
VALUE v = rb_path2class(path);
|
24
|
-
|
25
|
-
if (TYPE(v) != T_CLASS) {
|
26
|
-
rb_raise(rb_eArgError, "%s does not refer class", path);
|
27
|
-
}
|
28
|
-
return v;
|
29
|
-
}
|
30
|
-
|
31
|
-
VALUE
|
32
|
-
path2module(const char *path)
|
33
|
-
{
|
34
|
-
VALUE v = rb_path2class(path);
|
35
|
-
|
36
|
-
if (TYPE(v) != T_MODULE) {
|
37
|
-
rb_raise(rb_eArgError, "%s does not refer module", path);
|
38
|
-
}
|
39
|
-
return v;
|
40
|
-
}
|
41
|
-
|
42
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#ifndef ruby_internal_iseq_load__inc_
|
2
|
-
#define ruby_internal_iseq_load__inc_
|
3
|
-
|
4
|
-
#include "internal/yarv-headers/gc.h"
|
5
|
-
#include "internal/yarv-headers/iseq.h"
|
6
|
-
|
7
|
-
|
8
|
-
/* Defined but not declared by ruby */
|
9
|
-
VALUE iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt);
|
10
|
-
|
11
|
-
|
12
|
-
#endif
|
13
|
-
|
@@ -1,83 +0,0 @@
|
|
1
|
-
/**********************************************************************
|
2
|
-
|
3
|
-
id.h -
|
4
|
-
|
5
|
-
$Author: ko1 $
|
6
|
-
created at: Thu Jul 12 04:38:07 2007
|
7
|
-
|
8
|
-
Copyright (C) 2007 Koichi Sasada
|
9
|
-
|
10
|
-
**********************************************************************/
|
11
|
-
|
12
|
-
#ifndef RUBY_ID_H
|
13
|
-
#define RUBY_ID_H
|
14
|
-
|
15
|
-
#define ID_SCOPE_SHIFT 3
|
16
|
-
#define ID_SCOPE_MASK 0x07
|
17
|
-
#define ID_LOCAL 0x00
|
18
|
-
#define ID_INSTANCE 0x01
|
19
|
-
#define ID_GLOBAL 0x03
|
20
|
-
#define ID_ATTRSET 0x04
|
21
|
-
#define ID_CONST 0x05
|
22
|
-
#define ID_CLASS 0x06
|
23
|
-
#define ID_JUNK 0x07
|
24
|
-
#define ID_INTERNAL ID_JUNK
|
25
|
-
|
26
|
-
#include "parse.h"
|
27
|
-
|
28
|
-
#define symIFUNC ID2SYM(idIFUNC)
|
29
|
-
#define symCFUNC ID2SYM(idCFUNC)
|
30
|
-
|
31
|
-
enum ruby_method_ids {
|
32
|
-
idPLUS = '+',
|
33
|
-
idMINUS = '-',
|
34
|
-
idMULT = '*',
|
35
|
-
idDIV = '/',
|
36
|
-
idMOD = '%',
|
37
|
-
idLT = '<',
|
38
|
-
idLTLT = tLSHFT,
|
39
|
-
idLE = tLEQ,
|
40
|
-
idGT = '>',
|
41
|
-
idGE = tGEQ,
|
42
|
-
idEq = tEQ,
|
43
|
-
idEqq = tEQQ,
|
44
|
-
idNeq = tNEQ,
|
45
|
-
idNot = '!',
|
46
|
-
idBackquote = '`',
|
47
|
-
idEqTilde = tMATCH,
|
48
|
-
idAREF = tAREF,
|
49
|
-
idASET = tASET,
|
50
|
-
idLAST_TOKEN = tLAST_TOKEN >> ID_SCOPE_SHIFT,
|
51
|
-
tIntern,
|
52
|
-
tMethodMissing,
|
53
|
-
tLength,
|
54
|
-
tGets,
|
55
|
-
tSucc,
|
56
|
-
tEach,
|
57
|
-
tLambda,
|
58
|
-
tSend,
|
59
|
-
t__send__,
|
60
|
-
tInitialize,
|
61
|
-
#if SUPPORT_JOKE
|
62
|
-
tBitblt,
|
63
|
-
tAnswer,
|
64
|
-
#endif
|
65
|
-
tLAST_ID
|
66
|
-
};
|
67
|
-
|
68
|
-
#define idIntern ((tIntern<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
69
|
-
#define idMethodMissing ((tMethodMissing<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
70
|
-
#define idLength ((tLength<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
71
|
-
#define idGets ((tGets<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
72
|
-
#define idSucc ((tSucc<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
73
|
-
#define idEach ((tEach<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
74
|
-
#define idLambda ((tLambda<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
75
|
-
#define idSend ((tSend<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
76
|
-
#define id__send__ ((t__send__<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
77
|
-
#define idInitialize ((tInitialize<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
78
|
-
#if SUPPORT_JOKE
|
79
|
-
#define idBitblt ((tBitblt<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
80
|
-
#define idAnswer ((tAnswer<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
81
|
-
#endif
|
82
|
-
|
83
|
-
#endif /* RUBY_ID_H */
|
@@ -1 +0,0 @@
|
|
1
|
-
#define RUBY_REVISION 19669
|
@@ -1,67 +0,0 @@
|
|
1
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-9", "single_byte");
|
2
|
-
rb_declare_transcoder("UTF-8", "UTF-32BE", "utf_16_32");
|
3
|
-
rb_declare_transcoder("UTF-16LE", "UTF-8", "utf_16_32");
|
4
|
-
rb_declare_transcoder("ASCII-8BIT", "UTF-8", "single_byte");
|
5
|
-
rb_declare_transcoder("EUC-JP", "UTF-8", "japanese_euc");
|
6
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-13", "single_byte");
|
7
|
-
rb_declare_transcoder("ISO-8859-9", "UTF-8", "single_byte");
|
8
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-14", "single_byte");
|
9
|
-
rb_declare_transcoder("UTF-8", "EUC-JP", "japanese_euc");
|
10
|
-
rb_declare_transcoder("UTF-8", "UTF-16LE", "utf_16_32");
|
11
|
-
rb_declare_transcoder("EUC-JP", "stateless-ISO-2022-JP", "iso2022");
|
12
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-15", "single_byte");
|
13
|
-
rb_declare_transcoder("UTF-8", "US-ASCII", "single_byte");
|
14
|
-
rb_declare_transcoder("ISO-8859-15", "UTF-8", "single_byte");
|
15
|
-
rb_declare_transcoder("UTF-32LE", "UTF-8", "utf_16_32");
|
16
|
-
rb_declare_transcoder("ISO-8859-4", "UTF-8", "single_byte");
|
17
|
-
rb_declare_transcoder("US-ASCII", "UTF-8", "single_byte");
|
18
|
-
rb_declare_transcoder("EUC-KR", "UTF-8", "korean");
|
19
|
-
rb_declare_transcoder("ISO-8859-11", "UTF-8", "single_byte");
|
20
|
-
rb_declare_transcoder("", "cr_newline", "newline");
|
21
|
-
rb_declare_transcoder("ISO-8859-10", "UTF-8", "single_byte");
|
22
|
-
rb_declare_transcoder("stateless-ISO-2022-JP", "ISO-2022-JP", "iso2022");
|
23
|
-
rb_declare_transcoder("", "crlf_newline", "newline");
|
24
|
-
rb_declare_transcoder("UTF-8", "ASCII-8BIT", "single_byte");
|
25
|
-
rb_declare_transcoder("UTF-8", "UTF-16BE", "utf_16_32");
|
26
|
-
rb_declare_transcoder("UTF-8", "Shift_JIS", "japanese_sjis");
|
27
|
-
rb_declare_transcoder("ISO-8859-6", "UTF-8", "single_byte");
|
28
|
-
rb_declare_transcoder("CP949", "UTF-8", "korean");
|
29
|
-
rb_declare_transcoder("ISO-8859-1", "UTF-8", "single_byte");
|
30
|
-
rb_declare_transcoder("ISO-8859-5", "UTF-8", "single_byte");
|
31
|
-
rb_declare_transcoder("", "xml_attr_content_escape", "escape");
|
32
|
-
rb_declare_transcoder("Shift_JIS", "EUC-JP", "japanese");
|
33
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-1", "single_byte");
|
34
|
-
rb_declare_transcoder("", "universal_newline", "newline");
|
35
|
-
rb_declare_transcoder("UTF-8", "Windows-31J", "japanese_sjis");
|
36
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-2", "single_byte");
|
37
|
-
rb_declare_transcoder("ISO-2022-JP", "stateless-ISO-2022-JP", "iso2022");
|
38
|
-
rb_declare_transcoder("eucJP-ms", "UTF-8", "japanese_euc");
|
39
|
-
rb_declare_transcoder("", "xml_attr_quote", "escape");
|
40
|
-
rb_declare_transcoder("UTF-16BE", "UTF-8", "utf_16_32");
|
41
|
-
rb_declare_transcoder("UTF-8", "EUC-KR", "korean");
|
42
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-3", "single_byte");
|
43
|
-
rb_declare_transcoder("UTF-8", "UTF-32LE", "utf_16_32");
|
44
|
-
rb_declare_transcoder("stateless-ISO-2022-JP", "EUC-JP", "iso2022");
|
45
|
-
rb_declare_transcoder("Shift_JIS", "UTF-8", "japanese_sjis");
|
46
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-4", "single_byte");
|
47
|
-
rb_declare_transcoder("", "amp_escape", "escape");
|
48
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-5", "single_byte");
|
49
|
-
rb_declare_transcoder("ISO-8859-8", "UTF-8", "single_byte");
|
50
|
-
rb_declare_transcoder("CP51932", "UTF-8", "japanese_euc");
|
51
|
-
rb_declare_transcoder("UTF-8", "eucJP-ms", "japanese_euc");
|
52
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-6", "single_byte");
|
53
|
-
rb_declare_transcoder("ISO-8859-7", "UTF-8", "single_byte");
|
54
|
-
rb_declare_transcoder("Windows-31J", "UTF-8", "japanese_sjis");
|
55
|
-
rb_declare_transcoder("ISO-8859-14", "UTF-8", "single_byte");
|
56
|
-
rb_declare_transcoder("EUC-JP", "Shift_JIS", "japanese");
|
57
|
-
rb_declare_transcoder("ISO-8859-3", "UTF-8", "single_byte");
|
58
|
-
rb_declare_transcoder("UTF-32BE", "UTF-8", "utf_16_32");
|
59
|
-
rb_declare_transcoder("UTF-8", "CP51932", "japanese_euc");
|
60
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-7", "single_byte");
|
61
|
-
rb_declare_transcoder("ISO-8859-13", "UTF-8", "single_byte");
|
62
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-10", "single_byte");
|
63
|
-
rb_declare_transcoder("ISO-8859-2", "UTF-8", "single_byte");
|
64
|
-
rb_declare_transcoder("UTF-8", "CP949", "korean");
|
65
|
-
rb_declare_transcoder("", "xml_text_escape", "escape");
|
66
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-8", "single_byte");
|
67
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-11", "single_byte");
|