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

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

Instance Method Summary collapse

Instance Method Details

#compile_option=(hash) ⇒ Object



97
98
99
100
# File 'lib/bootsnap/compile_cache/iseq.rb', line 97

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

#load_iseq(path) ⇒ Object



85
86
87
88
89
90
91
92
93
94
95
# File 'lib/bootsnap/compile_cache/iseq.rb', line 85

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