rubinius-compiler 3.26 → 3.27

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a6beb07321b5fa2a724d03f66d8626ffc7fe694
4
- data.tar.gz: e98a2577a4d11d718f4c3e10cec1e9a1e7ef292a
3
+ metadata.gz: c0abb75c78fe52eb27e0f49101fb2acee7d9db9d
4
+ data.tar.gz: 48b1322a073b595f4a46442327c74a9fd78ffdd9
5
5
  SHA512:
6
- metadata.gz: 41ce3227f9f7a0045f2d426e73ee7ac088f769fcfaf618720ffce29ceaf20fc69ec8d823b97502a2dc58663bb1474f47b045a0cdad2dc72547ae87fd4492e4e4
7
- data.tar.gz: 247b4d7696a7777fa484a55e286ce6ed75660ee164cf37eb83b38c1575c1c372c1cb502d575bbc76839abf3e6963586977daa2a904a3522db259f29fb9e8c1cf
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
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  class Compiler
3
- VERSION = "3.26"
3
+ VERSION = "3.27"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.26'
4
+ version: '3.27'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai