Permalink
Browse files

Debug getter within IR module

  • Loading branch information...
1 parent abe66c6 commit f4fbbbd6c169025fc3deb43295e913af63bc94ec @komax committed Jul 18, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 core/src/main/ruby/jruby/jruby.rb
@@ -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

0 comments on commit f4fbbbd

Please sign in to comment.