Convenient debug flags for IR #897

Merged
merged 1 commit into from Jul 18, 2013
Jump to file or symbol
Failed to load files and symbols.
+12 −0
Split
@@ -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