diff --git a/lib/rubinius/code/compiler/generator_methods.rb b/lib/rubinius/code/compiler/generator_methods.rb index a304c4f..6d0baee 100644 --- a/lib/rubinius/code/compiler/generator_methods.rb +++ b/lib/rubinius/code/compiler/generator_methods.rb @@ -1982,5 +1982,17 @@ def r_load_index(arg1, arg2, arg3) @ip += 4 @instruction = 282 end + + def r_refcnt_inc(arg1) + @stream << 283 << arg1 + @ip += 2 + @instruction = 283 + end + + def r_refcnt_dec(arg1) + @stream << 284 << arg1 + @ip += 2 + @instruction = 284 + end end end diff --git a/lib/rubinius/code/compiler/opcodes.rb b/lib/rubinius/code/compiler/opcodes.rb index 11f0146..d9decfa 100644 --- a/lib/rubinius/code/compiler/opcodes.rb +++ b/lib/rubinius/code/compiler/opcodes.rb @@ -322,5 +322,7 @@ class InstructionSet opcode 281, :r_store_ivar, :stack => [0, 0], :args => [:r0, :r1, :literal], :control_flow => :next opcode 282, :r_load_index, :stack => [0, 0], :args => [:r0, :r1, :literal], :control_flow => :next + opcode 283, :r_refcnt_inc, :stack => [0, 0], :args => [:r0], :control_flow => :next + opcode 284, :r_refcnt_dec, :stack => [0, 0], :args => [:r0], :control_flow => :next end end