1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

show RUBY_ISEQ_DUMP_DEBUG envval if given.

This commit is contained in:
Koichi Sasada 2019-09-30 15:35:22 +09:00
parent 8ba48c1b85
commit bf8d7d9c1d

View file

@ -38,8 +38,10 @@ class RubyVM::InstructionSequence
i2 i2
end end
CHECK_TO_A = ENV['RUBY_ISEQ_DUMP_DEBUG'] == 'to_a' opt = ENV['RUBY_ISEQ_DUMP_DEBUG']
CHECK_TO_BINARY = ENV['RUBY_ISEQ_DUMP_DEBUG'] == 'to_binary' puts "RUBY_ISEQ_DUMP_DEBUG = #{opt}" if opt
CHECK_TO_A = 'to_a' == opt
CHECK_TO_BINARY = 'to_binary' == opt
def self.translate i1 def self.translate i1
# check to_a/load_iseq # check to_a/load_iseq