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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26a66944232ec9a8806826da621853226af12bae
4
- data.tar.gz: bafe95558ec0b29a41e36800ea60381c5e0f2f79
3
+ metadata.gz: 4aae44eca0353defbd5083322aa3585637469faa
4
+ data.tar.gz: 238f9d8beb8eca62ebe2c9f3938c022ea871ce07
5
5
  SHA512:
6
- metadata.gz: 9735fa7257ceda7dcefd084940bd9821ed136d04bef1e6e361fd1a1d28f0a6949ddcfd2cb5d9956d064bfd80a8a4490dfb4285d3990d6fbf778ed9dbd04f94ee
7
- data.tar.gz: bf02707f7c2f1753ec58168b710fb5f839eb66300df8a2ea29ddbdf8fe8b5bd74810187a1c880faf62f0079deaff04302e337fb2a5fc76d88a1a275456c7794d
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, :noop, :stack => [0, 0], :args => [], :control_flow => :next
6
-
7
- # Push primitive values
8
- opcode 1, :push_nil, :stack => [0, 1], :args => [], :control_flow => :next
9
- opcode 2, :push_true, :stack => [0, 1], :args => [], :control_flow => :next
10
- opcode 3, :push_false, :stack => [0, 1], :args => [], :control_flow => :next
11
- opcode 4, :push_int, :stack => [0, 1], :args => [:number], :control_flow => :next
12
- opcode 5, :push_self, :stack => [0, 1], :args => [], :control_flow => :next
13
-
14
- # Manipulate literals
15
- opcode 6, :push_memo, :stack => [1, 1], :args => [:literal], :control_flow => :next
16
- opcode 7, :push_literal, :stack => [0, 1], :args => [:literal], :control_flow => :next
17
-
18
- # Flow control
19
- opcode 8, :goto, :stack => [0, 0], :args => [:location], :control_flow => :branch
20
- opcode 9, :goto_if_false, :stack => [1, 0], :args => [:location], :control_flow => :branch
21
- opcode 10, :goto_if_true, :stack => [1, 0], :args => [:location], :control_flow => :branch
22
- opcode 11, :goto_if_nil, :stack => [1, 0], :args => [:location], :control_flow => :branch
23
- opcode 12, :goto_if_not_nil, :stack => [1, 0], :args => [:location], :control_flow => :branch
24
- opcode 13, :goto_if_undefined, :stack => [1, 0], :args => [:location], :control_flow => :branch
25
- opcode 14, :goto_if_not_undefined, :stack => [1, 0], :args => [:location], :control_flow => :branch
26
- opcode 15, :goto_if_equal, :stack => [2, 0], :args => [:location], :control_flow => :branch
27
- opcode 16, :goto_if_not_equal, :stack => [2, 0], :args => [:location], :control_flow => :branch
28
- opcode 17, :ret, :stack => [1, 1], :args => [], :control_flow => :return
29
-
30
- # Stack manipulations
31
- opcode 18, :swap, :stack => [2, 2], :args => [], :control_flow => :next
32
- opcode 19, :dup, :stack => [1, 2], :args => [], :control_flow => :next
33
- opcode 20, :dup_many, :stack => [[0,1], [0, 1, 2]],:args => [:count], :control_flow => :next
34
- opcode 21, :pop, :stack => [1, 0], :args => [], :control_flow => :next
35
- opcode 22, :pop_many, :stack => [[0,1], 0], :args => [:count], :control_flow => :next
36
- opcode 23, :rotate, :stack => [[0,1], [0, 1, 1]],:args => [:count], :control_flow => :next
37
- opcode 24, :move_down, :stack => [[0,1], [0, 1, 1]],:args => [:positions], :control_flow => :next
38
-
39
- # Manipulate local variables
40
- opcode 25, :set_local, :stack => [1, 1], :args => [:local], :control_flow => :next
41
- opcode 26, :push_local, :stack => [0, 1], :args => [:local], :control_flow => :next
42
- opcode 27, :push_local_depth, :stack => [0, 1], :args => [:depth, :index], :control_flow => :next
43
- opcode 28, :set_local_depth, :stack => [1, 1], :args => [:depth, :index], :control_flow => :next
44
- opcode 29, :passed_arg, :stack => [0, 1], :args => [:index], :control_flow => :next
45
-
46
- # Manipulate exceptions
47
- opcode 30, :push_current_exception, :stack => [0, 1], :args => [], :control_flow => :next
48
- opcode 31, :clear_exception, :stack => [0, 0], :args => [], :control_flow => :next
49
- opcode 32, :push_exception_state, :stack => [0, 1], :args => [], :control_flow => :next
50
- opcode 33, :restore_exception_state, :stack => [1, 0], :args => [], :control_flow => :next
51
- opcode 34, :raise_exc, :stack => [1, 0], :args => [], :control_flow => :raise
52
- opcode 35, :setup_unwind, :stack => [0, 0], :args => [:ip, :type], :control_flow => :handler
53
- opcode 36, :pop_unwind, :stack => [0, 0], :args => [], :control_flow => :next
54
- opcode 37, :raise_return, :stack => [1, 1], :args => [], :control_flow => :raise
55
- opcode 38, :ensure_return, :stack => [1, 1], :args => [], :control_flow => :raise
56
- opcode 39, :raise_break, :stack => [1, 1], :args => [], :control_flow => :raise
57
- opcode 40, :reraise, :stack => [0, 0], :args => [], :control_flow => :raise
58
-
59
- # Manipulate arrays
60
- opcode 41, :make_array, :stack => [[0,1], 1], :args => [:count], :control_flow => :next
61
- opcode 42, :cast_array, :stack => [1, 1], :args => [], :control_flow => :next
62
- opcode 43, :shift_array, :stack => [1, 2], :args => [], :control_flow => :next
63
-
64
- # Manipulate instance variables
65
- opcode 44, :set_ivar, :stack => [1, 1], :args => [:literal], :control_flow => :next
66
- opcode 45, :push_ivar, :stack => [0, 1], :args => [:literal], :control_flow => :next
67
-
68
- # Manipulate constants
69
- opcode 46, :set_const, :stack => [1, 1], :args => [:literal], :control_flow => :next
70
- opcode 47, :set_const_at, :stack => [2, 1], :args => [:literal], :control_flow => :next
71
- opcode 48, :push_cpath_top, :stack => [0, 1], :args => [], :control_flow => :next
72
- opcode 49, :push_const, :stack => [0, 1], :args => [:literal], :control_flow => :next
73
- opcode 50, :find_const, :stack => [1, 1], :args => [:literal], :control_flow => :next
74
-
75
- # Send messages
76
- opcode 51, :set_call_flags, :stack => [0, 0], :args => [:flags], :control_flow => :next
77
- opcode 52, :allow_private, :stack => [0, 0], :args => [], :control_flow => :next
78
- opcode 53, :send_vcall, :stack => [0, 1], :args => [:literal], :control_flow => :send
79
- opcode 54, :send_method, :stack => [1, 1], :args => [:literal], :control_flow => :send
80
- opcode 55, :send_stack, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
81
- opcode 56, :send_stack_with_block, :stack => [[2,2], 1], :args => [:literal, :count], :control_flow => :send
82
-
83
- CALL_FLAG_CONCAT = 2
84
-
85
- opcode 57, :send_stack_with_splat, :stack => [[3,2], 1], :args => [:literal, :count], :control_flow => :send
86
- opcode 58, :send_super_stack_with_block, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
87
- opcode 59, :send_super_stack_with_splat, :stack => [[2,2], 1], :args => [:literal, :count], :control_flow => :send
88
-
89
- # Manipulate blocks
90
- opcode 60, :push_block, :stack => [0, 1], :args => [], :control_flow => :next
91
- opcode 61, :passed_blockarg, :stack => [0, 1], :args => [:count], :control_flow => :next
92
- opcode 62, :create_block, :stack => [0, 1], :args => [:literal], :control_flow => :next
93
- opcode 63, :cast_for_single_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
94
- opcode 64, :cast_for_multi_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
95
- opcode 65, :cast_for_splat_block_arg, :stack => [0, 1], :args => [], :control_flow => :next
96
- opcode 66, :yield_stack, :stack => [[0,1], 1], :args => [:count], :control_flow => :yield
97
- opcode 67, :yield_splat, :stack => [[1,1], 1], :args => [:count], :control_flow => :yield
98
-
99
- # Manipulate strings
100
- opcode 68, :string_append, :stack => [2, 1], :args => [], :control_flow => :next
101
- opcode 69, :string_build, :stack => [[0,1], 1], :args => [:count], :control_flow => :next
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
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  class Compiler
3
- VERSION = "3.5"
3
+ VERSION = "3.6"
4
4
  end
5
5
  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.5'
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-07-19 00:00:00.000000000 Z
11
+ date: 2016-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler