!7077 Remove set jit enable for appspawn

Merge pull request !7077 from xiaoweidong/fix_jit_enable
This commit is contained in:
openharmony_ci 2024-04-23 09:27:41 +00:00 committed by Gitee
commit 66146b68a0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 4 deletions

View File

@ -185,8 +185,8 @@ void EcmaVM::PostFork()
bool isEnableFastJit = options_.IsEnableJIT() && options_.GetEnableAsmInterpreter();
bool isEnableBaselineJit = options_.IsEnableBaselineJIT() && options_.GetEnableAsmInterpreter();
if (ohos::EnableAotListHelper::GetJitInstance()->IsEnableJit(bundleName) && options_.GetEnableAsmInterpreter()) {
Jit::GetInstance()->SetEnableOrDisable(options_, isEnableFastJit, isEnableBaselineJit);
options_.SetEnableAPPJIT(true);
Jit::GetInstance()->SetEnableOrDisable(options_, isEnableFastJit, isEnableBaselineJit);
bool jitEscapeDisable = panda::ecmascript::ohos::GetJitEscapeEanble();
if ((!jitEscapeDisable) && JSNApi::IsJitEscape()) {
isEnableFastJit = false;

View File

@ -3187,9 +3187,6 @@ EcmaVM *JSNApi::CreateJSVM(const RuntimeOption &option)
runtimeOptions.SetEnableAOT(option.GetEnableAOT());
runtimeOptions.SetEnablePGOProfiler(option.GetEnableProfile());
runtimeOptions.SetPGOProfilerPath(option.GetProfileDir());
// jit
runtimeOptions.SetEnableJIT(option.GetEnableJIT());
runtimeOptions.SetEnableBaselineJIT(option.GetEnableBaselineJIT());
// Dfx
runtimeOptions.SetLogLevel(Log::LevelToString(Log::ConvertFromRuntime(option.GetLogLevel())));
runtimeOptions.SetEnableArkTools(option.GetEnableArkTools());