mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
commit
a30e2b97c1
@ -19,6 +19,7 @@
|
||||
#include "ecmascript/platform/aot_crash_info.h"
|
||||
#include "ecmascript/platform/os.h"
|
||||
#include "ecmascript/stubs/runtime_stubs-inl.h"
|
||||
#include "ecmascript/jit/jit.h"
|
||||
#if defined(PANDA_TARGET_OHOS)
|
||||
#include "ecmascript/extractortool/src/extractor.h"
|
||||
#endif
|
||||
@ -251,7 +252,7 @@ void JsStackInfo::BuildCrashInfo(bool isJsCrash, uintptr_t pc, JSThread *thread)
|
||||
if (JsStackInfo::loader == nullptr || JsStackInfo::options == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (!JsStackInfo::loader->IsEnableAOT() && !thread->GetEcmaVM()->IsEnableFastJit() &&
|
||||
if (!JsStackInfo::loader->IsEnableAOT() && !Jit::GetInstance()->IsEnableFastJit() &&
|
||||
!JsStackInfo::options->IsEnablePGOProfiler()) {
|
||||
return;
|
||||
}
|
||||
@ -264,7 +265,7 @@ void JsStackInfo::BuildCrashInfo(bool isJsCrash, uintptr_t pc, JSThread *thread)
|
||||
type = ohos::RuntimeInfoType::OTHERS;
|
||||
}
|
||||
ohos::AotRuntimeInfo::GetInstance().BuildCrashRuntimeInfo(type);
|
||||
if (isJsCrash) {
|
||||
if (isJsCrash && thread != nullptr) {
|
||||
DumpJitCode(thread);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user