module Bootsnap::CompileCache::ISeq::InstructionSequenceMixin

def load_iseq(path)

def load_iseq(path)
  # Having coverage enabled prevents iseq dumping/loading.
  return nil if defined?(Coverage) && Bootsnap::CompileCache::Native.coverage_running?
  Bootsnap::CompileCache::ISeq.fetch(path.to_s)
rescue Errno::EACCES
  Bootsnap::CompileCache.permission_error(path)
rescue RuntimeError => error
  if error.message =~ /unmatched platform/
    puts("unmatched platform for file #{path}")
  end
  raise
end