Move inline breakpoint outside of runtime backend

There was some code smell leaking inline breakpoint implementation into the runtime core backend instead of the compiler itself
This commit is contained in:
Syrus
2019-12-20 18:25:03 -08:00
parent 0419df937e
commit 294cc28135
16 changed files with 214 additions and 139 deletions

View File

@ -18,6 +18,7 @@ use std::fmt;
use std::fmt::Debug;
use std::marker::PhantomData;
use std::sync::{Arc, RwLock};
use std::{cell::RefCell, rc::Rc};
use wasmparser::{self, WasmDecoder};
use wasmparser::{Operator, Type as WpType};
@ -249,7 +250,7 @@ impl<
})?;
Ok(ModuleInner {
cache_gen,
runnable_module: Box::new(exec_context),
runnable_module: Rc::new(RefCell::new(Box::new(exec_context))),
info: Arc::try_unwrap(info).unwrap().into_inner().unwrap(),
})
}