Permalink
Browse files

Merge pull request #897 from komax/komax_ir_debug_getter

Convenient debug flags for IR
  • Loading branch information...
2 parents abe66c6 + f4fbbbd commit 12ede1365cde9fbf75bfcdedf9a492c96affd96f @enebo enebo 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 12ede13

Please sign in to comment.