Skip to content

Commit

Permalink
Support eject and compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 3, 2013
1 parent 3bdcdeb commit e12d589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kernel/bootstrap/call_site.rb
Expand Up @@ -40,6 +40,10 @@ def inject
fallback_call_site.update_call_site(self)
end

def eject
update_call_site(fallback_call_site)
end

def inspect
"#<#{self.class.name}:0x#{self.object_id.to_s(16)} fallback:#{fallback_call_site.inspect}>"
end
Expand Down
2 changes: 1 addition & 1 deletion kernel/common/compiled_code.rb
Expand Up @@ -430,7 +430,7 @@ def locate_line(line)
# exactly match the bytecode currently held by the CompiledCode, typically
# as a result of substituting yield_debugger instructions into the bytecode.
def decode(bytecodes = @iseq)
require 'rubinius/compiler/iseq'
#require 'rubinius/compiler/iseq'

decoder = Rubinius::InstructionDecoder.new(bytecodes)
stream = decoder.decode(false)
Expand Down

0 comments on commit e12d589

Please sign in to comment.