Skip to content

Commit

Permalink
Merge pull request #897 from komax/komax_ir_debug_getter
Browse files Browse the repository at this point in the history
Convenient debug flags for IR
  • Loading branch information
enebo committed Jul 18, 2013
2 parents abe66c6 + f4fbbbd commit 12ede13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/main/ruby/jruby/jruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,25 @@ def self.debug=(value)
org.jruby.RubyInstanceConfig.IR_DEBUG = !!value
end

def self.debug
org.jruby.RubyInstanceConfig.IR_DEBUG
end

def self.compiler_debug=(value)
org.jruby.RubyInstanceConfig.IR_COMPILER_DEBUG = !!value
end

def self.compiler_debug
org.jruby.RubyInstanceConfig.IR_COMPILER_DEBUG
end

def self.visualize=(value)
org.jruby.RubyInstanceConfig.IR_VISUALIZER = !!value
end

def self.visualize
org.jruby.RubyInstanceConfig.IR_VISUALIZER
end
end

class CompiledScript
Expand Down

0 comments on commit 12ede13

Please sign in to comment.