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

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

Instance Method Summary collapse

Instance Method Details

#compile_option=(hash) ⇒ Object



118
119
120
121
# File 'lib/bootsnap/compile_cache/iseq.rb', line 118

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

#load_iseq(path) ⇒ Object



106
107
108
109
110
111
112
113
114
115
116
# File 'lib/bootsnap/compile_cache/iseq.rb', line 106

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