ytljit 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/code_alloc.c +2 -2
- data/ext/memory.c +2 -5
- data/ext/thread.c +144 -0
- data/ext/thread.h +24 -0
- data/ext/ytljit.c +33 -6
- data/ext/ytljit.h +33 -0
- data/lib/ytljit.rb +1 -1
- data/lib/ytljit/asm.rb +11 -4
- data/lib/ytljit/asmext_x64.rb +1 -1
- data/lib/ytljit/asmext_x86.rb +1 -1
- data/lib/ytljit/dyna_method.rb +136 -0
- data/lib/ytljit/marshal.rb +11 -0
- data/lib/ytljit/type.rb +2 -2
- data/lib/ytljit/vm.rb +781 -211
- data/lib/ytljit/vm_codegen.rb +73 -24
- data/lib/ytljit/vm_cruby_obj.rb +42 -30
- data/lib/ytljit/vm_inline_method.rb +40 -14
- data/lib/ytljit/vm_sendnode.rb +609 -190
- data/lib/ytljit/vm_trans.rb +60 -16
- data/lib/ytljit/vm_type.rb +29 -9
- data/lib/ytljit/vm_type_gen.rb +131 -56
- data/test/foo.rb +12 -0
- metadata +9 -16
data/test/foo.rb
ADDED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ytljit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
version: 0.0.8
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.9
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Hideki Miura
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
18
|
-
default_executable:
|
13
|
+
date: 2012-01-20 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: iseq
|
@@ -25,8 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
23
|
version: "0"
|
31
24
|
type: :runtime
|
32
25
|
version_requirements: *id001
|
@@ -47,6 +40,7 @@ files:
|
|
47
40
|
- lib/ytljit/asmext_x86.rb
|
48
41
|
- lib/ytljit/asmutil.rb
|
49
42
|
- lib/ytljit/codespace.rb
|
43
|
+
- lib/ytljit/dyna_method.rb
|
50
44
|
- lib/ytljit/error.rb
|
51
45
|
- lib/ytljit/instruction.rb
|
52
46
|
- lib/ytljit/instruction_ia.rb
|
@@ -72,11 +66,14 @@ files:
|
|
72
66
|
- lib/runtime/object.rb
|
73
67
|
- ext/code_alloc.c
|
74
68
|
- ext/memory.c
|
69
|
+
- ext/thread.c
|
75
70
|
- ext/ytljit.c
|
71
|
+
- ext/thread.h
|
76
72
|
- ext/ytljit.h
|
77
73
|
- ext/extconf.rb
|
78
74
|
- test/asmsample.rb
|
79
75
|
- test/cstest.rb
|
76
|
+
- test/foo.rb
|
80
77
|
- test/marshaltest.rb
|
81
78
|
- test/test_arena.rb
|
82
79
|
- test/test_assemble.rb
|
@@ -91,7 +88,6 @@ files:
|
|
91
88
|
- test/vmtest_execute_only.rb
|
92
89
|
- README
|
93
90
|
- Rakefile
|
94
|
-
has_rdoc: true
|
95
91
|
homepage:
|
96
92
|
licenses: []
|
97
93
|
|
@@ -105,27 +101,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
101
|
requirements:
|
106
102
|
- - ">="
|
107
103
|
- !ruby/object:Gem::Version
|
108
|
-
segments:
|
109
|
-
- 0
|
110
104
|
version: "0"
|
111
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
106
|
none: false
|
113
107
|
requirements:
|
114
108
|
- - ">="
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
segments:
|
117
|
-
- 0
|
118
110
|
version: "0"
|
119
111
|
requirements: []
|
120
112
|
|
121
113
|
rubyforge_project:
|
122
|
-
rubygems_version: 1.
|
114
|
+
rubygems_version: 1.8.11
|
123
115
|
signing_key:
|
124
116
|
specification_version: 3
|
125
117
|
summary: native code generator for ruby compiler
|
126
118
|
test_files:
|
127
119
|
- test/asmsample.rb
|
128
120
|
- test/cstest.rb
|
121
|
+
- test/foo.rb
|
129
122
|
- test/marshaltest.rb
|
130
123
|
- test/test_arena.rb
|
131
124
|
- test/test_assemble.rb
|