Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #897 from komax/komax_ir_debug_getter

Convenient debug flags for IR
  • Loading branch information...
commit 12ede1365cde9fbf75bfcdedf9a492c96affd96f 2 parents abe66c6 + f4fbbbd
@enebo enebo authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 core/src/main/ruby/jruby/jruby.rb
View
12 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
Please sign in to comment.
Something went wrong with that request. Please try again.