module Bootsnap::CompileCache::ISeq::InstructionSequenceMixin

Public Instance Methods

compile_option=(hash) click to toggle source
Calls superclass method
# File lib/bootsnap/compile_cache/iseq.rb, line 94
def compile_option=(hash)
  super(hash)
  Bootsnap::CompileCache::ISeq.compile_option_updated
end
load_iseq(path) click to toggle source
# File lib/bootsnap/compile_cache/iseq.rb, line 80
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