Module: Bootsnap::CompileCache::ISeq::InstructionSequenceMixin

Defined in:
lib/bootsnap/compile_cache/iseq.rb

Instance Method Summary collapse

Instance Method Details

#compile_option=(hash) ⇒ Object



112
113
114
115
# File 'lib/bootsnap/compile_cache/iseq.rb', line 112

def compile_option=(hash)
  super
  Bootsnap::CompileCache::ISeq.compile_option_updated
end

#load_iseq(path) ⇒ Object



100
101
102
103
104
105
106
107
108
109
110
# File 'lib/bootsnap/compile_cache/iseq.rb', line 100

def load_iseq(path)
  # Having coverage enabled prevents iseq dumping/loading.
  return nil if defined?(Coverage) && Coverage.running?

  Bootsnap::CompileCache::ISeq.fetch(path.to_s)
rescue RuntimeError => error
  if error.message =~ /unmatched platform/
    puts("unmatched platform for file #{path}")
  end
  raise
end