fastruby 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/CHANGELOG +10 -0
  2. data/Rakefile +2 -1
  3. data/benchmarks/benchmark.rb~ +2 -4
  4. data/benchmarks/benchmark3.rb~ +2 -4
  5. data/ext/fastruby_base/fastruby_base.inl +1 -1
  6. data/lib/fastruby/builder.rb +8 -7
  7. data/lib/fastruby/fastruby_sexp.rb +18 -0
  8. data/lib/fastruby/inliner/modules/call.rb +254 -67
  9. data/lib/fastruby/inliner/modules/recursive.rb +5 -0
  10. data/lib/fastruby/reductor/modules/case.rb +2 -1
  11. data/lib/fastruby/translator/modules/block.rb +65 -59
  12. data/lib/fastruby/translator/modules/call.rb +7 -4
  13. data/lib/fastruby/translator/modules/exceptions.rb +66 -64
  14. data/lib/fastruby/translator/modules/flow.rb +8 -8
  15. data/lib/fastruby/translator/modules/literal.rb +5 -4
  16. data/lib/fastruby/translator/modules/method_group.rb +6 -5
  17. data/lib/fastruby/translator/modules/nonlocal.rb +153 -11
  18. data/lib/fastruby/translator/modules/static.rb +8 -8
  19. data/lib/fastruby/translator/modules/variable.rb +15 -15
  20. data/lib/fastruby/translator/translator.rb +156 -59
  21. data/lib/fastruby.rb +1 -1
  22. data/lib/fastruby.rb~ +36 -0
  23. data/spec/fastruby/inliner/modules/call_spec.rb +0 -0
  24. data/spec/fastruby/translator/modules/nonlocal_spec.rb +0 -0
  25. data/spec/fastruby/translator/translator_spec.rb +0 -0
  26. data/spec/ruby/base_spec.rb~ +5 -5
  27. data/spec/ruby/block/break_spec.rb~ +236 -0
  28. data/spec/ruby/block/lambda_spec.rb~ +38 -0
  29. data/spec/ruby/block/next_spec.rb~ +85 -0
  30. data/spec/ruby/call/base_call_spec.rb~ +83 -0
  31. data/spec/ruby/defn/replacement_spec.rb +52 -2
  32. data/spec/ruby/defn/replacement_spec.rb~ +52 -2
  33. data/spec/ruby/exception/base_spec.rb +22 -1
  34. data/spec/ruby/return_spec.rb~ +99 -0
  35. metadata +30 -10
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-05 00:00:00.000000000Z
12
+ date: 2012-02-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: RubyInline
16
- requirement: &82092610 !ruby/object:Gem::Requirement
16
+ requirement: &77624300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.11.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82092610
24
+ version_requirements: *77624300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby_parser
27
- requirement: &82092320 !ruby/object:Gem::Requirement
27
+ requirement: &77624040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82092320
35
+ version_requirements: *77624040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: define_method_handler
38
- requirement: &82092060 !ruby/object:Gem::Requirement
38
+ requirement: &77623780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *82092060
46
+ version_requirements: *77623780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: method_source
49
- requirement: &82091800 !ruby/object:Gem::Requirement
49
+ requirement: &77613160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,18 @@ dependencies:
54
54
  version: 0.6.7
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *82091800
57
+ version_requirements: *77613160
58
+ - !ruby/object:Gem::Dependency
59
+ name: ruby2ruby
60
+ requirement: &77612930 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 1.3.1
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *77612930
58
69
  description:
59
70
  email: robertodarioseminara@gmail.com
60
71
  executables: []
@@ -118,8 +129,12 @@ files:
118
129
  - lib/fastruby/reductor/modules/nontree.rb
119
130
  - lib/fastruby/reductor/modules/case.rb
120
131
  - lib/fastruby/reductor/reductor.rb
132
+ - lib/fastruby.rb~
121
133
  - lib/fastruby_load_path.rb
122
134
  - lib/fastruby.rb
135
+ - spec/fastruby/translator/modules/nonlocal_spec.rb
136
+ - spec/fastruby/translator/translator_spec.rb
137
+ - spec/fastruby/inliner/modules/call_spec.rb
123
138
  - spec/edges_helper.rb
124
139
  - spec/scope_mode/base_spec.rb
125
140
  - spec/scope_mode/exception_spec.rb
@@ -137,12 +152,15 @@ files:
137
152
  - spec/ruby/block/arguments_spec.rb
138
153
  - spec/ruby/block/proc_spec.rb
139
154
  - spec/ruby/block/break_spec.rb
155
+ - spec/ruby/block/break_spec.rb~
140
156
  - spec/ruby/block/proc_as_block_spec.rb
141
157
  - spec/ruby/block/next_spec.rb
142
158
  - spec/ruby/block/lambda_spec.rb
159
+ - spec/ruby/block/lambda_spec.rb~
143
160
  - spec/ruby/block/redo_spec.rb
144
161
  - spec/ruby/block/block_as_proc_spec.rb
145
162
  - spec/ruby/block/retry_spec.rb~
163
+ - spec/ruby/block/next_spec.rb~
146
164
  - spec/ruby/block/proc_as_block_spec.rb~
147
165
  - spec/ruby/block/callcc_spec.rb
148
166
  - spec/ruby/base_spec.rb~
@@ -156,6 +174,7 @@ files:
156
174
  - spec/ruby/base_spec.rb
157
175
  - spec/ruby/singleton_spec.rb
158
176
  - spec/ruby/variable_spec.rb
177
+ - spec/ruby/return_spec.rb~
159
178
  - spec/ruby/block_spec.rb~
160
179
  - spec/ruby/module_spec.rb
161
180
  - spec/ruby/jump/next_spec.rb
@@ -166,6 +185,7 @@ files:
166
185
  - spec/ruby/flow_control/case_spec.rb
167
186
  - spec/ruby/call/base_call_spec.rb
168
187
  - spec/ruby/call/multiple_args_spec.rb
188
+ - spec/ruby/call/base_call_spec.rb~
169
189
  - spec/ruby/integrity_spec.rb
170
190
  - spec/ruby/block_spec.rb
171
191
  - spec/ruby/defn/multiple_args_spec.rb