mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
refactor: 动态编译改经 CompilerService 注入,oxide_vm 去编译器依赖
This commit is contained in:
@@ -68,6 +68,9 @@ impl Vm {
|
||||
active_immutables: std::ptr::slice_from_raw_parts(std::ptr::null(), 0),
|
||||
frames: smallvec::SmallVec::new(),
|
||||
kernel_core: core,
|
||||
// 缺省 no-op 编译服务:动态编译返 Err,生产 entry points 与
|
||||
// 动态编译测试经 set_compiler_service 注入真实实现。
|
||||
compiler: Arc::new(crate::vm::NoopCompilerService),
|
||||
realm: Arc::new(Realm {
|
||||
realm_id,
|
||||
session: RefCell::new(session),
|
||||
@@ -221,6 +224,9 @@ impl Vm {
|
||||
active_immutables: std::ptr::slice_from_raw_parts(std::ptr::null(), 0),
|
||||
frames: smallvec::SmallVec::new(),
|
||||
kernel_core: core,
|
||||
// 缺省 no-op 编译服务:动态编译返 Err,生产 entry points 与
|
||||
// 动态编译测试经 set_compiler_service 注入真实实现。
|
||||
compiler: Arc::new(crate::vm::NoopCompilerService),
|
||||
realm: Arc::new(Realm {
|
||||
realm_id,
|
||||
session: RefCell::new(session),
|
||||
|
||||
Reference in New Issue
Block a user