rubinius-compiler 3.5 → 3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/code/compiler/opcodes.rb +97 -132
- data/lib/rubinius/code/compiler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aae44eca0353defbd5083322aa3585637469faa
|
4
|
+
data.tar.gz: 238f9d8beb8eca62ebe2c9f3938c022ea871ce07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f343de31766cef7a4a5e4d28e3f72bec68a50611a5373244a278592888138d53753bac2faa8dcb5f2c37c2ba718f335d75803063bb89c7745e3c3c996691bde0
|
7
|
+
data.tar.gz: a975c2dc7f3b6f6d2633a6a77d28822113cbf8364a413a48523128e81dbdd9db7234f84004a9039f20ec50164692ea48b2c7f955dbdac962467a7ad94a0d4322
|
@@ -2,137 +2,102 @@
|
|
2
2
|
|
3
3
|
module Rubinius
|
4
4
|
class InstructionSet
|
5
|
-
opcode 0, :
|
6
|
-
|
7
|
-
|
8
|
-
opcode
|
9
|
-
opcode
|
10
|
-
opcode
|
11
|
-
opcode
|
12
|
-
opcode
|
13
|
-
|
14
|
-
|
15
|
-
opcode
|
16
|
-
opcode
|
17
|
-
|
18
|
-
|
19
|
-
opcode
|
20
|
-
opcode
|
21
|
-
opcode
|
22
|
-
opcode
|
23
|
-
opcode
|
24
|
-
opcode
|
25
|
-
opcode
|
26
|
-
opcode
|
27
|
-
opcode
|
28
|
-
opcode
|
29
|
-
|
30
|
-
|
31
|
-
opcode
|
32
|
-
opcode
|
33
|
-
opcode
|
34
|
-
opcode
|
35
|
-
opcode
|
36
|
-
opcode
|
37
|
-
opcode
|
38
|
-
|
39
|
-
|
40
|
-
opcode
|
41
|
-
opcode
|
42
|
-
opcode
|
43
|
-
opcode
|
44
|
-
opcode
|
45
|
-
|
46
|
-
|
47
|
-
opcode
|
48
|
-
opcode
|
49
|
-
opcode
|
50
|
-
opcode
|
51
|
-
opcode
|
52
|
-
opcode
|
53
|
-
opcode
|
54
|
-
opcode
|
55
|
-
opcode
|
56
|
-
opcode
|
57
|
-
opcode
|
58
|
-
|
59
|
-
|
60
|
-
opcode
|
61
|
-
opcode
|
62
|
-
opcode
|
63
|
-
|
64
|
-
|
65
|
-
opcode
|
66
|
-
opcode
|
67
|
-
|
68
|
-
|
69
|
-
opcode
|
70
|
-
opcode
|
71
|
-
opcode
|
72
|
-
opcode
|
73
|
-
opcode
|
74
|
-
|
75
|
-
|
76
|
-
opcode
|
77
|
-
opcode
|
78
|
-
opcode
|
79
|
-
opcode
|
80
|
-
opcode
|
81
|
-
opcode
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
opcode
|
86
|
-
opcode
|
87
|
-
opcode
|
88
|
-
|
89
|
-
|
90
|
-
opcode
|
91
|
-
opcode
|
92
|
-
opcode
|
93
|
-
opcode
|
94
|
-
opcode
|
95
|
-
opcode
|
96
|
-
opcode
|
97
|
-
opcode
|
98
|
-
|
99
|
-
|
100
|
-
opcode
|
101
|
-
opcode
|
102
|
-
opcode 70, :string_dup, :stack => [1, 1], :args => [], :control_flow => :next
|
103
|
-
|
104
|
-
# Manipulate scope
|
105
|
-
opcode 71, :push_scope, :stack => [0, 1], :args => [], :control_flow => :next
|
106
|
-
opcode 72, :add_scope, :stack => [1, 0], :args => [], :control_flow => :next
|
107
|
-
opcode 73, :push_variables, :stack => [0, 1], :args => [], :control_flow => :next
|
108
|
-
|
109
|
-
# Miscellaneous. TODO: better categorize these
|
110
|
-
opcode 74, :check_interrupts, :stack => [0, 0], :args => [], :control_flow => :next
|
111
|
-
opcode 75, :yield_debugger, :stack => [0, 0], :args => [], :control_flow => :next
|
112
|
-
opcode 76, :check_serial, :stack => [1, 1], :args => [:literal, :serial], :control_flow => :next
|
113
|
-
opcode 77, :check_serial_private, :stack => [1, 1], :args => [:literal, :serial], :control_flow => :next
|
114
|
-
|
115
|
-
# Access object fields
|
116
|
-
opcode 78, :push_my_field, :stack => [0, 1], :args => [:index], :control_flow => :next
|
117
|
-
opcode 79, :store_my_field, :stack => [1, 1], :args => [:index], :control_flow => :next
|
118
|
-
|
119
|
-
# Type checks
|
120
|
-
opcode 80, :kind_of, :stack => [2, 1], :args => [], :control_flow => :next
|
121
|
-
opcode 81, :instance_of, :stack => [2, 1], :args => [], :control_flow => :next
|
122
|
-
opcode 82, :push_my_offset, :stack => [0, 1], :args => [:index], :control_flow => :next
|
123
|
-
opcode 83, :zsuper, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
124
|
-
opcode 84, :push_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
|
125
|
-
opcode 85, :push_undef, :stack => [0, 1], :args => [], :control_flow => :next
|
126
|
-
opcode 86, :push_stack_local, :stack => [0, 1], :args => [:which], :control_flow => :next
|
127
|
-
opcode 87, :set_stack_local, :stack => [1, 1], :args => [:which], :control_flow => :next
|
128
|
-
opcode 88, :push_has_block, :stack => [0, 1], :args => [], :control_flow => :next
|
129
|
-
opcode 89, :push_proc, :stack => [0, 1], :args => [], :control_flow => :next
|
130
|
-
opcode 90, :check_frozen, :stack => [1, 1], :args => [], :control_flow => :next
|
131
|
-
opcode 91, :cast_multi_value, :stack => [1, 1], :args => [], :control_flow => :next
|
132
|
-
opcode 92, :invoke_primitive, :stack => [[0,2], 1], :args => [:literal, :count], :control_flow => :next
|
133
|
-
opcode 93, :push_rubinius, :stack => [0, 1], :args => [], :control_flow => :next
|
134
|
-
opcode 94, :object_to_s, :stack => [1, 1], :args => [:literal], :control_flow => :send
|
135
|
-
opcode 95, :push_type, :stack => [0, 1], :args => [], :control_flow => :next
|
136
|
-
opcode 96, :push_mirror, :stack => [0, 1], :args => [], :control_flow => :next
|
5
|
+
opcode 0, :add_scope, :stack => [1, 0], :args => [], :control_flow => :next
|
6
|
+
opcode 1, :allow_private, :stack => [0, 0], :args => [], :control_flow => :next
|
7
|
+
opcode 2, :cast_array, :stack => [1, 1], :args => [], :control_flow => :next
|
8
|
+
opcode 3, :cast_for_multi_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
|
9
|
+
opcode 4, :cast_for_single_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
|
10
|
+
opcode 5, :cast_for_splat_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
|
11
|
+
opcode 6, :cast_multi_value, :stack => [1, 1], :args => [], :control_flow => :next
|
12
|
+
opcode 7, :check_frozen, :stack => [1, 1], :args => [], :control_flow => :next
|
13
|
+
opcode 8, :check_interrupts, :stack => [0, 0], :args => [], :control_flow => :next
|
14
|
+
opcode 9, :check_serial, :stack => [1, 1], :args => [:literal, :serial], :control_flow => :next
|
15
|
+
opcode 10, :check_serial_private, :stack => [1, 1], :args => [:literal, :serial], :control_flow => :next
|
16
|
+
opcode 11, :clear_exception, :stack => [0, 0], :args => [], :control_flow => :next
|
17
|
+
opcode 12, :create_block, :stack => [0, 1], :args => [:literal], :control_flow => :next
|
18
|
+
opcode 13, :dup, :stack => [1, 2], :args => [], :control_flow => :next
|
19
|
+
opcode 14, :dup_many, :stack => [[0,1], [0, 1, 2]],:args => [:count], :control_flow => :next
|
20
|
+
opcode 15, :ensure_return, :stack => [1, 1], :args => [], :control_flow => :raise
|
21
|
+
opcode 16, :find_const, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
22
|
+
opcode 17, :goto, :stack => [0, 0], :args => [:location], :control_flow => :branch
|
23
|
+
opcode 18, :goto_if_equal, :stack => [2, 0], :args => [:location], :control_flow => :branch
|
24
|
+
opcode 19, :goto_if_false, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
25
|
+
opcode 20, :goto_if_nil, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
26
|
+
opcode 21, :goto_if_not_equal, :stack => [2, 0], :args => [:location], :control_flow => :branch
|
27
|
+
opcode 22, :goto_if_not_nil, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
28
|
+
opcode 23, :goto_if_not_undefined, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
29
|
+
opcode 24, :goto_if_true, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
30
|
+
opcode 25, :goto_if_undefined, :stack => [1, 0], :args => [:location], :control_flow => :branch
|
31
|
+
opcode 26, :instance_of, :stack => [2, 1], :args => [], :control_flow => :next
|
32
|
+
opcode 27, :invoke_primitive, :stack => [[0,2], 1], :args => [:literal, :count], :control_flow => :next
|
33
|
+
opcode 28, :kind_of, :stack => [2, 1], :args => [], :control_flow => :next
|
34
|
+
opcode 29, :make_array, :stack => [[0,1], 1], :args => [:count], :control_flow => :next
|
35
|
+
opcode 30, :move_down, :stack => [[0,1], [0, 1, 1]],:args => [:positions], :control_flow => :next
|
36
|
+
opcode 31, :noop, :stack => [0, 0], :args => [], :control_flow => :next
|
37
|
+
opcode 32, :object_to_s, :stack => [1, 1], :args => [:literal], :control_flow => :send
|
38
|
+
opcode 33, :passed_arg, :stack => [0, 1], :args => [:index], :control_flow => :next
|
39
|
+
opcode 34, :passed_blockarg, :stack => [0, 1], :args => [:count], :control_flow => :next
|
40
|
+
opcode 35, :pop, :stack => [1, 0], :args => [], :control_flow => :next
|
41
|
+
opcode 36, :pop_many, :stack => [[0,1], 0], :args => [:count], :control_flow => :next
|
42
|
+
opcode 37, :pop_unwind, :stack => [0, 0], :args => [], :control_flow => :next
|
43
|
+
opcode 38, :push_block, :stack => [0, 1], :args => [], :control_flow => :next
|
44
|
+
opcode 39, :push_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
|
45
|
+
opcode 40, :push_const, :stack => [0, 1], :args => [:literal], :control_flow => :next
|
46
|
+
opcode 41, :push_cpath_top, :stack => [0, 1], :args => [], :control_flow => :next
|
47
|
+
opcode 42, :push_current_exception, :stack => [0, 1], :args => [], :control_flow => :next
|
48
|
+
opcode 43, :push_exception_state, :stack => [0, 1], :args => [], :control_flow => :next
|
49
|
+
opcode 44, :push_false, :stack => [0, 1], :args => [], :control_flow => :next
|
50
|
+
opcode 45, :push_has_block, :stack => [0, 1], :args => [], :control_flow => :next
|
51
|
+
opcode 46, :push_int, :stack => [0, 1], :args => [:number], :control_flow => :next
|
52
|
+
opcode 47, :push_ivar, :stack => [0, 1], :args => [:literal], :control_flow => :next
|
53
|
+
opcode 48, :push_literal, :stack => [0, 1], :args => [:literal], :control_flow => :next
|
54
|
+
opcode 49, :push_local, :stack => [0, 1], :args => [:local], :control_flow => :next
|
55
|
+
opcode 50, :push_local_depth, :stack => [0, 1], :args => [:depth, :index], :control_flow => :next
|
56
|
+
opcode 51, :push_memo, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
57
|
+
opcode 52, :push_mirror, :stack => [0, 1], :args => [], :control_flow => :next
|
58
|
+
opcode 53, :push_my_field, :stack => [0, 1], :args => [:index], :control_flow => :next
|
59
|
+
opcode 54, :push_my_offset, :stack => [0, 1], :args => [:index], :control_flow => :next
|
60
|
+
opcode 55, :push_nil, :stack => [0, 1], :args => [], :control_flow => :next
|
61
|
+
opcode 56, :push_proc, :stack => [0, 1], :args => [], :control_flow => :next
|
62
|
+
opcode 57, :push_rubinius, :stack => [0, 1], :args => [], :control_flow => :next
|
63
|
+
opcode 58, :push_scope, :stack => [0, 1], :args => [], :control_flow => :next
|
64
|
+
opcode 59, :push_self, :stack => [0, 1], :args => [], :control_flow => :next
|
65
|
+
opcode 60, :push_stack_local, :stack => [0, 1], :args => [:which], :control_flow => :next
|
66
|
+
opcode 61, :push_true, :stack => [0, 1], :args => [], :control_flow => :next
|
67
|
+
opcode 62, :push_type, :stack => [0, 1], :args => [], :control_flow => :next
|
68
|
+
opcode 63, :push_undef, :stack => [0, 1], :args => [], :control_flow => :next
|
69
|
+
opcode 64, :push_variables, :stack => [0, 1], :args => [], :control_flow => :next
|
70
|
+
opcode 65, :raise_break, :stack => [1, 1], :args => [], :control_flow => :raise
|
71
|
+
opcode 66, :raise_exc, :stack => [1, 0], :args => [], :control_flow => :raise
|
72
|
+
opcode 67, :raise_return, :stack => [1, 1], :args => [], :control_flow => :raise
|
73
|
+
opcode 68, :reraise, :stack => [0, 0], :args => [], :control_flow => :raise
|
74
|
+
opcode 69, :restore_exception_state, :stack => [1, 0], :args => [], :control_flow => :next
|
75
|
+
opcode 70, :ret, :stack => [1, 1], :args => [], :control_flow => :return
|
76
|
+
opcode 71, :rotate, :stack => [[0,1], [0, 1, 1]],:args => [:count], :control_flow => :next
|
77
|
+
opcode 72, :send_method, :stack => [1, 1], :args => [:literal], :control_flow => :send
|
78
|
+
opcode 73, :send_stack, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
|
79
|
+
opcode 74, :send_stack_with_block, :stack => [[2,2], 1], :args => [:literal, :count], :control_flow => :send
|
80
|
+
opcode 75, :send_stack_with_splat, :stack => [[3,2], 1], :args => [:literal, :count], :control_flow => :send
|
81
|
+
opcode 76, :send_super_stack_with_block, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
|
82
|
+
opcode 77, :send_super_stack_with_splat, :stack => [[2,2], 1], :args => [:literal, :count], :control_flow => :send
|
83
|
+
opcode 78, :send_vcall, :stack => [0, 1], :args => [:literal], :control_flow => :send
|
84
|
+
opcode 79, :set_call_flags, :stack => [0, 0], :args => [:flags], :control_flow => :next
|
85
|
+
opcode 80, :set_const, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
86
|
+
opcode 81, :set_const_at, :stack => [2, 1], :args => [:literal], :control_flow => :next
|
87
|
+
opcode 82, :set_ivar, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
88
|
+
opcode 83, :set_local, :stack => [1, 1], :args => [:local], :control_flow => :next
|
89
|
+
opcode 84, :set_local_depth, :stack => [1, 1], :args => [:depth, :index], :control_flow => :next
|
90
|
+
opcode 85, :set_stack_local, :stack => [1, 1], :args => [:which], :control_flow => :next
|
91
|
+
opcode 86, :setup_unwind, :stack => [0, 0], :args => [:ip, :type], :control_flow => :handler
|
92
|
+
opcode 87, :shift_array, :stack => [1, 2], :args => [], :control_flow => :next
|
93
|
+
opcode 88, :store_my_field, :stack => [1, 1], :args => [:index], :control_flow => :next
|
94
|
+
opcode 89, :string_append, :stack => [2, 1], :args => [], :control_flow => :next
|
95
|
+
opcode 90, :string_build, :stack => [[0,1], 1], :args => [:count], :control_flow => :next
|
96
|
+
opcode 91, :string_dup, :stack => [1, 1], :args => [], :control_flow => :next
|
97
|
+
opcode 92, :swap, :stack => [2, 2], :args => [], :control_flow => :next
|
98
|
+
opcode 93, :yield_debugger, :stack => [0, 0], :args => [], :control_flow => :next
|
99
|
+
opcode 94, :yield_splat, :stack => [[1,1], 1], :args => [:count], :control_flow => :yield
|
100
|
+
opcode 95, :yield_stack, :stack => [[0,1], 1], :args => [:count], :control_flow => :yield
|
101
|
+
opcode 96, :zsuper, :stack => [1, 1], :args => [:literal], :control_flow => :next
|
137
102
|
end
|
138
103
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|