fastruby 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +2 -0
- data/Rakefile +2 -2
- data/ext/fastruby_base/extconf.rb +11 -1
- data/ext/fastruby_base/fastruby_base.inl +47 -3
- data/lib/fastruby/builder.rb +15 -2
- data/lib/fastruby/cache/cache.rb +2 -2
- data/lib/fastruby/inline_extension.rb +13 -60
- data/lib/fastruby/object.rb +1 -1
- data/lib/fastruby/self +82 -0
- data/lib/fastruby/sexp_extension.rb +13 -5
- data/lib/fastruby/translator/modules/block.rb +3 -3
- data/lib/fastruby/translator/modules/call.rb +2 -2
- data/lib/fastruby/translator/modules/defn.rb +3 -1
- data/lib/fastruby/translator/modules/iter.rb +85 -22
- data/lib/fastruby/translator/modules/variable.rb +5 -1
- data/lib/fastruby/translator/translator.rb +53 -14
- data/lib/fastruby.rb +8 -1
- data/lib/len +280 -0
- data/spec/block/callcc_spec.rb +3 -0
- data/spec/block_spec.rb +16 -0
- data/spec/defn/multiple_args_spec.rb +2 -2
- metadata +11 -12
- data/lib/targetted +0 -84
data/lib/targetted
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
fastruby/translator/modules/variable.rb 27| "rb_cvar_get(CLASS_OF(plocals->self) != rb_cClass ? CLASS_OF(plocals->self) : plocals->self,#{intern_num tree[1]})"
|
2
|
-
fastruby/translator/modules/variable.rb 31| "__rb_cvar_set(CLASS_OF(plocals->self) != rb_cClass ? CLASS_OF(plocals->self) : plocals->self,#{intern_num tree[1]},#{to_c tree[2]},Qfalse)"
|
3
|
-
fastruby/translator/modules/variable.rb 55| "rb_const_get(CLASS_OF(plocals->self), #{intern_num(tree[1])})"
|
4
|
-
fastruby/translator/modules/variable.rb 166| "rb_ivar_defined(plocals->self,#{intern_num tree[1][1]}) ? #{literal_value "instance-variable"} : Qnil"
|
5
|
-
fastruby/translator/modules/defn.rb 44| rb_define_method(plocals->self, #{method_name.to_s.inspect}, #{anonymous_method_name}, -1 );
|
6
|
-
fastruby/translator/modules/defn.rb 46| #{global_klass_variable} = plocals->self;
|
7
|
-
fastruby/translator/modules/method_group.rb 116| plocals->active = Qtrue;
|
8
|
-
fastruby/translator/modules/method_group.rb 117| plocals->self = self;
|
9
|
-
fastruby/translator/modules/method_group.rb 118| plocals->targetted = Qfalse;
|
10
|
-
fastruby/translator/modules/method_group.rb 119| plocals->call_frame = LONG2FIX(0);
|
11
|
-
fastruby/translator/modules/method_group.rb 130| plocals->active = Qfalse;
|
12
|
-
fastruby/translator/modules/iter.rb 106| str_arg_initialization << "plocals->#{args_tree[1]} = arg;"
|
13
|
-
fastruby/translator/modules/iter.rb 128| str_arg_initialization << "plocals->#{arguments[i].last} = rb_ary_entry(arg,#{i});\n"
|
14
|
-
fastruby/translator/modules/iter.rb 130| str_arg_initialization << "plocals->#{arg.last.last} = rb_ary_new2(RARRAY(arg)->len-#{i});\n
|
15
|
-
fastruby/translator/modules/iter.rb 134| rb_ary_store(plocals->#{arg.last.last},i-#{i},rb_ary_entry(arg,i));
|
16
|
-
fastruby/translator/modules/iter.rb 146| str_recv = "plocals->self" unless recv_tree
|
17
|
-
fastruby/translator/modules/iter.rb 199| str_recv = "plocals->self" unless recv_tree
|
18
|
-
fastruby/translator/modules/iter.rb 276| if (plocals->targetted == 1) {
|
19
|
-
fastruby/translator/modules/iter.rb 334| if (plocals->targetted == 1) {
|
20
|
-
fastruby/translator/modules/iter.rb 335| if (plocals->active == Qfalse) {
|
21
|
-
fastruby/translator/modules/iter.rb 336| printf(\"return plocals->active == Qfalse\\n\");
|
22
|
-
fastruby/translator/modules/iter.rb 340| printf(\"return plocals->active == Qtrue\\n\");
|
23
|
-
fastruby/translator/modules/iter.rb 447| fastruby_str_arg_initialization = "plocals->#{args_tree[1]} = argv[0];"
|
24
|
-
fastruby/translator/modules/iter.rb 454| fastruby_str_arg_initialization << "plocals->#{arg.last} = #{i} < argc ? argv[#{i}] : Qnil;\n"
|
25
|
-
fastruby/translator/modules/iter.rb 456| fastruby_str_arg_initialization << "plocals->#{arg.last.last} = rb_ary_new2(#{arguments.size-1-i});\n
|
26
|
-
fastruby/translator/modules/iter.rb 460| rb_ary_store(plocals->#{arg.last.last},i-#{i},argv[i]);
|
27
|
-
fastruby/translator/modules/iter.rb 513| str_recv = "plocals->self"
|
28
|
-
fastruby/translator/modules/iter.rb 537| VALUE old_call_frame = plocals->call_frame;
|
29
|
-
fastruby/translator/modules/iter.rb 538| plocals->call_frame = LONG2FIX(&call_frame);
|
30
|
-
fastruby/translator/modules/iter.rb 551| plocals->call_frame = old_call_frame;
|
31
|
-
fastruby/translator/modules/iter.rb 561| pframe->next_recv = #{recv_tree ? to_c(recv_tree) : "plocals->self"};
|
32
|
-
fastruby/translator/modules/iter.rb 649| plocals->call_frame = old_call_frame;
|
33
|
-
fastruby/translator/modules/iter.rb 658| plocals->call_frame = old_call_frame;
|
34
|
-
fastruby/translator/modules/block.rb 36| if (FIX2LONG(plocals->block_function_address) == 0) {
|
35
|
-
fastruby/translator/modules/block.rb 39| return ((VALUE(*)(int,VALUE*,VALUE,VALUE))FIX2LONG(plocals->block_function_address))(size, block_args, FIX2LONG(plocals->block_function_param), (VALUE)pframe);
|
36
|
-
fastruby/translator/modules/nonlocal.rb 27| plocals->return_value = #{to_c(tree[1])};
|
37
|
-
fastruby/translator/modules/nonlocal.rb 28| plocals->targetted = 1;
|
38
|
-
fastruby/translator/modules/nonlocal.rb 41| target_frame_ = (void*)FIX2LONG(plocals->call_frame);
|
39
|
-
fastruby/translator/modules/nonlocal.rb 47| plocals->call_frame = LONG2FIX(0);
|
40
|
-
fastruby/translator/modules/nonlocal.rb 60| target_frame_ = (void*)FIX2LONG(plocals->call_frame);
|
41
|
-
fastruby/translator/translator.rb 189| VALUE old_call_frame = plocals->call_frame;
|
42
|
-
fastruby/translator/translator.rb 190| plocals->call_frame = LONG2FIX(&call_frame);
|
43
|
-
fastruby/translator/translator.rb 202| plocals->call_frame = old_call_frame;
|
44
|
-
fastruby/translator/translator.rb 208| plocals->call_frame = old_call_frame;
|
45
|
-
fastruby/translator/translator.rb 219| plocals->call_frame = old_call_frame;
|
46
|
-
fastruby/translator/translator.rb 372| plocals->active = Qtrue;
|
47
|
-
fastruby/translator/translator.rb 373| plocals->targetted = Qfalse;
|
48
|
-
fastruby/translator/translator.rb 374| plocals->pframe = LONG2FIX(&frame);
|
49
|
-
fastruby/translator/translator.rb 390| printf(\"plocals->active = Qfalse\\n\");
|
50
|
-
fastruby/translator/translator.rb 391| plocals->active = Qfalse;
|
51
|
-
fastruby/translator/translator.rb 392| return plocals->return_value;
|
52
|
-
fastruby/translator/translator.rb 395| plocals->self = self;
|
53
|
-
fastruby/translator/translator.rb 400| "plocals->#{arg} = #{arg};\n"
|
54
|
-
fastruby/translator/translator.rb 403| plocals->block_function_address = LONG2FIX(0);
|
55
|
-
fastruby/translator/translator.rb 404| plocals->block_function_param = LONG2FIX(Qnil);
|
56
|
-
fastruby/translator/translator.rb 405| plocals->call_frame = LONG2FIX(0);
|
57
|
-
fastruby/translator/translator.rb 415| printf(\"plocals->active = Qfalse\\n\");
|
58
|
-
fastruby/translator/translator.rb 416| plocals->active = Qfalse;
|
59
|
-
fastruby/translator/translator.rb 494| "plocals->#{arg} = argv[#{i}];\n"
|
60
|
-
fastruby/translator/translator.rb 516| plocals->#{splat_arg.to_s.gsub("*","")} = rb_ary_new3(0);
|
61
|
-
fastruby/translator/translator.rb 520| plocals->#{splat_arg.to_s.gsub("*","")} = rb_ary_new4(
|
62
|
-
fastruby/translator/translator.rb 537| plocals->#{block_argument.to_s.gsub("&","")} = #{to_c proc_reyield_block_tree.to_fastruby_sexp};
|
63
|
-
fastruby/translator/translator.rb 583| plocals->active = Qtrue;
|
64
|
-
fastruby/translator/translator.rb 584| plocals->targetted = Qfalse;
|
65
|
-
fastruby/translator/translator.rb 585| plocals->pframe = LONG2FIX(&frame);
|
66
|
-
fastruby/translator/translator.rb 586| plocals->call_frame = LONG2FIX(0);
|
67
|
-
fastruby/translator/translator.rb 597| printf(\"plocals->active = Qfalse\\n\");
|
68
|
-
fastruby/translator/translator.rb 598| plocals->active = Qfalse;
|
69
|
-
fastruby/translator/translator.rb 607| if (plocals->targetted == Qfalse) {
|
70
|
-
fastruby/translator/translator.rb 615| return plocals->return_value;
|
71
|
-
fastruby/translator/translator.rb 618| plocals->self = self;
|
72
|
-
fastruby/translator/translator.rb 624| plocals->block_function_address = LONG2FIX(pblock->block_function_address);
|
73
|
-
fastruby/translator/translator.rb 625| plocals->block_function_param = LONG2FIX(pblock->block_function_param);
|
74
|
-
fastruby/translator/translator.rb 627| plocals->block_function_address = LONG2FIX(0);
|
75
|
-
fastruby/translator/translator.rb 628| plocals->block_function_param = LONG2FIX(Qnil);
|
76
|
-
fastruby/translator/translator.rb 639| printf(\"plocals->active = Qfalse\\n\");
|
77
|
-
fastruby/translator/translator.rb 640| plocals->active = Qfalse;
|
78
|
-
fastruby/translator/translator.rb 656| "plocals->"
|
79
|
-
fastruby/translator/translator.rb 721| return "FIX2LONG(plocals->block_function_address) == 0 ? Qfalse : Qtrue"
|
80
|
-
fastruby/translator/translator.rb 935| plocals->pframe = LONG2FIX(&frame);
|
81
|
-
fastruby/translator/translator.rb 936| plocals->targetted = Qfalse;
|
82
|
-
fastruby/translator/translator.rb 946| if (plocals->targetted == Qfalse) {
|
83
|
-
fastruby/translator/translator.rb 950| return plocals->return_value;
|
84
|
-
fastruby/translator/translator.rb 953| plocals->self = self;
|