Skip to content

Commit

Permalink
Added register for array-like object size.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jan 22, 2020
1 parent 57efead commit c1a0fa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/rubinius/code/compiler/generator_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1914,15 +1914,15 @@ def n_dsign(arg1, arg2)
@instruction = 271
end

def r_load_ref_addr(arg1, arg2)
@stream << 272 << arg1 << arg2
@ip += 3
def r_load_ref_addr(arg1, arg2, arg3)
@stream << 272 << arg1 << arg2 << arg3
@ip += 4
@instruction = 272
end

def r_load_byte_addr(arg1, arg2)
@stream << 273 << arg1 << arg2
@ip += 3
def r_load_byte_addr(arg1, arg2, arg3)
@stream << 273 << arg1 << arg2 << arg3
@ip += 4
@instruction = 273
end

Expand Down
4 changes: 2 additions & 2 deletions lib/rubinius/code/compiler/opcodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class InstructionSet
opcode 270, :n_dclass, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
opcode 271, :n_dsign, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next

opcode 272, :r_load_ref_addr, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
opcode 273, :r_load_byte_addr, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
opcode 272, :r_load_ref_addr, :stack => [0, 0], :args => [:r0, :r1, :r2], :control_flow => :next
opcode 273, :r_load_byte_addr, :stack => [0, 0], :args => [:r0, :r1, :r2], :control_flow => :next
opcode 274, :r_load_ref, :stack => [0, 0], :args => [:r0, :r1, :r2], :control_flow => :next
opcode 275, :r_store_ref, :stack => [0, 0], :args => [:r0, :r1, :r2], :control_flow => :next
opcode 276, :r_load_byte, :stack => [0, 0], :args => [:r0, :r1, :r2], :control_flow => :next
Expand Down

0 comments on commit c1a0fa9

Please sign in to comment.