rubinius-compiler 3.26 → 3.27
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0abb75c78fe52eb27e0f49101fb2acee7d9db9d
|
4
|
+
data.tar.gz: 48b1322a073b595f4a46442327c74a9fd78ffdd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d82351e42cde7a7f25f334bf8a262e38b8dc994d2734fda345bb379cceb271a1fad29efecaefaaa92e2c3e682dd802f7fa4f9c263925c8e99122dbddaa30ca6
|
7
|
+
data.tar.gz: f2561dab2f8e90a424c7f0027c84a9e39fd29223b17945f5b0d881b7408969f7f64c4f0e1da4709f5d4f2418d0c99120b13fa81f435a824208afc17bd1aa0f2b
|
@@ -324,6 +324,7 @@ module CodeTools
|
|
324
324
|
str.append marshal(val.iseq)
|
325
325
|
str.append marshal(val.stack_size)
|
326
326
|
str.append marshal(val.local_count)
|
327
|
+
str.append marshal(val.registers)
|
327
328
|
str.append marshal(val.required_args)
|
328
329
|
str.append marshal(val.post_args)
|
329
330
|
str.append marshal(val.total_args)
|
@@ -291,7 +291,7 @@ module CodeTools
|
|
291
291
|
:required_args, :post_args, :total_args, :splat_index,
|
292
292
|
:local_count, :local_names, :primitive, :for_block, :for_module_body,
|
293
293
|
:current_block, :detected_args, :detected_locals,
|
294
|
-
:block_index, :arity, :keywords, :kwrest_index
|
294
|
+
:block_index, :arity, :keywords, :kwrest_index, :registers
|
295
295
|
|
296
296
|
def execute(node)
|
297
297
|
node.bytecode self
|
@@ -333,6 +333,7 @@ module CodeTools
|
|
333
333
|
code.local_count = @local_count
|
334
334
|
code.local_names = @local_names.to_tuple if @local_names
|
335
335
|
code.keywords = @keywords.to_tuple if @keywords
|
336
|
+
code.registers = @registers
|
336
337
|
|
337
338
|
code.add_metadata :block_index, @block_index if @block_index
|
338
339
|
code.add_metadata :kwrest_index, @kwrest_index if @kwrest_index
|
@@ -54,6 +54,7 @@ module CodeTools
|
|
54
54
|
print "Locals: #{code.local_count}"
|
55
55
|
print code.local_count > 0 ? ": #{code.local_names.join ", "}\n" : "\n"
|
56
56
|
puts "Stack size: #{code.stack_size}"
|
57
|
+
puts "Registers: #{code.registers}"
|
57
58
|
literals = code.literals.collect do |literal|
|
58
59
|
case literal
|
59
60
|
when Rubinius::CompiledCode
|