vm: when jit-direct-only, disable VM-side JIT manager (set None) and keep VM compiling; continue P3 guard path

This commit is contained in:
nyash-dev
2025-09-06 12:33:00 +09:00
parent 6ec88590e7
commit 4a110c1674

View File

@ -87,7 +87,10 @@ impl VM {
boxcall_poly_pic: std::collections::HashMap::new(),
boxcall_vtable_funcname: std::collections::HashMap::new(),
type_versions: std::collections::HashMap::new(),
#[cfg(not(feature = "jit-direct-only"))]
jit_manager: Some(crate::jit::manager::JitManager::new(Self::jit_threshold_from_env())),
#[cfg(feature = "jit-direct-only")]
jit_manager: None,
}
}
@ -116,7 +119,10 @@ impl VM {
boxcall_poly_pic: std::collections::HashMap::new(),
boxcall_vtable_funcname: std::collections::HashMap::new(),
type_versions: std::collections::HashMap::new(),
#[cfg(not(feature = "jit-direct-only"))]
jit_manager: Some(crate::jit::manager::JitManager::new(Self::jit_threshold_from_env())),
#[cfg(feature = "jit-direct-only")]
jit_manager: None,
}
}
@ -190,4 +196,3 @@ impl VM {
*self.instr_counter.entry(key).or_insert(0) += 1;
}
}