Add Runnable::initialize

This commit is contained in:
Shunsuke Shibayama 2022-11-23 19:43:56 +09:00
parent 64dcc17399
commit 7bcc766500
11 changed files with 80 additions and 2 deletions

View file

@ -129,7 +129,14 @@ impl Runnable for Compiler {
#[inline]
fn finish(&mut self) {}
fn initialize(&mut self) {
self.builder.initialize();
self.code_generator.clear();
// .mod_cache will be initialized in .builder
}
fn clear(&mut self) {
self.builder.clear();
self.code_generator.clear();
}