/arkcompiler/ets_runtime/ecmascript/ohos/tests/ |
H A D | crash_test.cpp | 25 #include "ecmascript/ohos/aot_runtime_info.h" 26 #include "ecmascript/ohos/tests/mock/mock_aot_runtime_info.h" 59 ohos::AotRuntimeInfo *runtimeInfo = new MockAotRuntimeInfo(); in HWTEST_F_L0() 67 char timestamp[ohos::AotRuntimeInfo::TIME_STAMP_SIZE]; in HWTEST_F_L0() 68 ohos::AotRuntimeInfo *runtimeInfo = new MockAotRuntimeInfo(); in HWTEST_F_L0() 69 runtimeInfo->GetMicrosecondsTimeStamp(timestamp, ohos::AotRuntimeInfo::TIME_STAMP_SIZE); in HWTEST_F_L0() 76 char timestamp[ohos::AotRuntimeInfo::TIME_STAMP_SIZE]; in HWTEST_F_L0() 78 ohos::AotRuntimeInfo *runtimeInfo = new MockAotRuntimeInfo(); in HWTEST_F_L0() 79 runtimeInfo->GetMicrosecondsTimeStamp(timestamp, ohos::AotRuntimeInfo::TIME_STAMP_SIZE); in HWTEST_F_L0() 87 runtimeInfo->BuildCrashRuntimeInfo(ecmascript::ohos in HWTEST_F_L0() [all...] |
H A D | ohos_test.cpp | 25 #include "ecmascript/ohos/ohos_pkg_args.h" 26 #include "ecmascript/ohos/enable_aot_list_helper.h" 27 #include "ecmascript/ohos/tests/mock/mock_enable_aot_list_helper.h" 52 runtimeOptions_.SetAOTOutputFile("/data/local/ark-cache/com.ohos.test/arm64/phone"); 53 runtimeOptions_.SetCompilerPkgJsonInfo(BuildOhosPkgJson("/data/local/ark-profile/100/com.ohos.test")); 65 ohos::EnableAotJitListHelper::GetInstance()->Clear(); 82 pkgJson += R"(,"pkgPath": "/data/app/el1/bundle/public/com.ohos.test/entry.hap","abcName": "ets/modules.abc")"; in BuildOhosPkgJson() 91 static constexpr const char *TEST_BUNDLE_NAME = "com.ohos.test"; 98 const char *whiteListTestDir = "ohos-whiteList/"; in HWTEST_F_L0() 99 const char *enableListName = "ohos in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
H A D | aot_crash_info.cpp | 76 !ohos::EnableAotJitListHelper::GetInstance()->IsEnableAot(bundleName)) { in IsAotEscapedOrNotInEnableList() 93 pgoRealPath.append(ohos::OhosConstants::PATH_SEPARATOR); in IsAotEscapedOrCompiledOnce() 94 pgoRealPath.append(ohos::OhosConstants::AOT_RUNTIME_INFO_NAME); in IsAotEscapedOrCompiledOnce() 95 if (ohos::EnableAotJitListHelper::GetInstance()->IsAotCompileSuccessOnce(pgoRealPath)) { in IsAotEscapedOrCompiledOnce() 111 if (ohos::EnableAotJitListHelper::GetInstance()->IsEnableAot(bundleName)) { in SetOptionPGOProfiler() 114 ohos::EnableAotJitListHelper::GetInstance()->IsAotCompileSuccessOnce() || in SetOptionPGOProfiler() 130 auto escapeMap = ohos::AotRuntimeInfo::GetInstance().CollectCrashSum(pgoRealPath); in IsAotEscaped() 131 int totalCrashes = escapeMap[ohos::RuntimeInfoType::AOT_CRASH] + in IsAotEscaped() 132 escapeMap[ohos::RuntimeInfoType::JIT] + in IsAotEscaped() 133 escapeMap[ohos in IsAotEscaped() [all...] |
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | enable_aot_list_helper.h | 29 #include "ecmascript/ohos/aot_runtime_info.h" 35 namespace panda::ecmascript::ohos { namespace in panda::ecmascript 102 runtimePgoRealPath.append(ohos::OhosConstants::PATH_SEPARATOR); in AddEnableListCount() 103 runtimePgoRealPath.append(ohos::OhosConstants::AOT_RUNTIME_INFO_NAME); in AddEnableListCount() 104 ohos::AotRuntimeInfo::GetInstance().BuildCompileRuntimeInfo(ohos::RuntimeInfoType::AOT_BUILD, in AddEnableListCount() 113 int count = ohos::AotRuntimeInfo::GetInstance().GetCompileCountByType( in IsAotCompileSuccessOnce() 114 ohos::RuntimeInfoType::AOT_BUILD, pgoRealPath); in IsAotCompileSuccessOnce() 171 } // namespace panda::ecmascript::ohos
|
H A D | enable_aot_list_helper.cpp | 16 #include "ecmascript/ohos/enable_aot_list_helper.h" 18 namespace panda::ecmascript::ohos { namespace in panda::ecmascript 20 } // namespace panda::ecmascript::ohos
|
H A D | aot_tools.h | 22 namespace panda::ecmascript::ohos { namespace in panda::ecmascript
|
H A D | ohos_params.h | 22 namespace panda::ecmascript::ohos { namespace in panda::ecmascript
|
H A D | ohos_constants.h | 19 namespace panda::ecmascript::ohos { namespace in panda::ecmascript 28 } // namespace panda::ecmascript::ohos
|
H A D | code_decrypt.h | 19 namespace panda::ecmascript::ohos { namespace in panda::ecmascript
|
H A D | code_decrypt.cpp | 19 #include "ecmascript/ohos/code_decrypt.h" 21 namespace panda::ecmascript::ohos { namespace in panda::ecmascript 63 } // namespace panda::ecmascript::ohos
|
H A D | jit_tools.h | 18 #include "ecmascript/ohos/enable_aot_list_helper.h" 29 namespace panda::ecmascript::ohos { namespace in panda::ecmascript
|
H A D | ohos_pkg_args.h | 38 #include "ecmascript/ohos/enable_aot_list_helper.h" 39 #include "ecmascript/ohos/framework_helper.h" 43 #include "ecmascript/ohos/code_decrypt.h" 100 if (ohos::DecryptSetKey(fd, static_cast<int>(GetBundleUid())) < 0) { in DecryptSetKey() 103 if (ohos::DecryptAssociateKey(fd, static_cast<int>(GetProcessUid()), in DecryptSetKey() 111 if (ohos::DecrypRemoveKey(fd, static_cast<int>(GetProcessUid())) < 0 in DecryptRemoveKey() 112 || ohos::DecrypRemoveKey(fd, static_cast<int>(GetBundleUid())) < 0) { in DecryptRemoveKey()
|
/arkcompiler/ets_runtime/ecmascript/ohos/tests/mock/ |
H A D | mock_aot_runtime_info.cpp | 16 #include "ecmascript/ohos/tests/mock/mock_aot_runtime_info.h" 34 char tmp[ecmascript::ohos::AotRuntimeInfo::TIME_STAMP_SIZE] = "1970-01-01 00:00:00"; in GetMicrosecondsTimeStamp() 56 ecmascript::ohos::RuntimeInfoType type) const in BuildRuntimeInfoPart() 58 return ecmascript::ohos::AotRuntimeInfo::BuildRuntimeInfoPart(runtimeInfoPart, soBuildId, timestamp, type); in BuildRuntimeInfoPart()
|
H A D | mock_enable_aot_list_helper.h | 19 #include "ecmascript/ohos/enable_aot_list_helper.h" 22 class MockEnableAotJitListHelper : public ecmascript::ohos::EnableAotJitListHelper { 25 const std::string &enableListName): ecmascript::ohos::EnableAotJitListHelper(enableListName) in MockEnableAotJitListHelper()
|
H A D | mock_aot_runtime_info.h | 19 #include "ecmascript/ohos/aot_runtime_info.h" 22 class MockAotRuntimeInfo : public ecmascript::ohos::AotRuntimeInfo { 24 static constexpr const char *SANBOX_DIR = "ohos-crash-test"; 35 ecmascript::ohos::RuntimeInfoType type) const;
|
/arkcompiler/ets_runtime/ecmascript/jit/ |
H A D | jit.cpp | 19 #include "ecmascript/ohos/jit_tools.h" 38 bool jitEnable = ohos::JitTools::GetJitEscapeDisable() || !AotCrashInfo::IsJitEscape(); in SetJitEnablePostFork() 39 jitEnable &= ohos::EnableAotJitListHelper::GetInstance()->IsEnableJit(bundleName); in SetJitEnablePostFork() 45 options.SetEnableJitFrame(ohos::JitTools::GetJitFrameEnable()); in SetJitEnablePostFork() 49 uint32_t threshold = ohos::JitTools::GetJitHotnessThreshold(defaultSize); in SetJitEnablePostFork() 92 bool jitEnableLitecg = ohos::JitTools::IsJitEnableLitecg(options.IsCompilerEnableLiteCG()); in ConfigOptions() 95 uint8_t jitCallThreshold = ohos::JitTools::GetJitCallThreshold(options.GetJitCallThreshold()); in ConfigOptions() 101 bool jitDisableCodeSign = ohos::JitTools::GetCodeSignDisable(options.GetDisableCodeSign()); in ConfigOptions() 104 bool jitEnableJitFort = ohos::JitTools::GetEnableJitFort(options.GetEnableJitFort()); in ConfigOptions() 107 bool jitEnableAsyncCopyToFort = ohos in ConfigOptions() [all...] |
/arkcompiler/ets_runtime/test/fuzztest/readenablelist_fuzzer/ |
H A D | readenablelist_fuzzer.cpp | 18 #include "ecmascript/ohos/enable_aot_list_helper.h" 20 using namespace panda::ecmascript::ohos;
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | aot_crash_info.cpp | 75 return ohos::OhosConstants::SANDBOX_ARK_PROFILE_PATH; in GetSandBoxPath()
|
/arkcompiler/runtime_core/static_core/scripts/sdk/ |
H A D | build_sdk.sh | 29 echo "$(basename "${BASH_SOURCE[0]}") path/to/ohos/sdk/native path/to/panda/sdk/destination build_type:[$BUILD_TYPE_RELEASE,$BUILD_TYPE_FAST_VERIFY,$BUILD_TYPE_DEBUG]" 116 -DPANDA_CROSS_AARCH64_TOOLCHAIN_FILE=cmake/toolchain/cross-ohos-musl-aarch64.cmake \ 134 function ohos() { function 139 -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/cross-ohos-musl-aarch64.cmake \ 186 ohos
|
/arkcompiler/runtime_core/static_core/scripts/llvm/ |
H A D | build_llvm.sh | 302 TARGET="ohos${BUILD_SUFFIX}" 312 -DCMAKE_TOOLCHAIN_FILE="${OHOS_SDK}/build/cmake/ohos.toolchain.cmake" \ 316 -DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-linux-ohos \ 341 TARGET="ohos-gn${BUILD_SUFFIX}" 355 -DLLVM_HOST_TRIPLE=aarch64-linux-ohos \ 356 -DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-linux-ohos \ 357 -DCMAKE_C_FLAGS="-fstack-protector-strong --target=aarch64-linux-ohos -ffunction-sections -fdata-sections -v -funwind-tables -no-canonical-prefixes -D__MUSL__" \ 358 -DCMAKE_CXX_FLAGS="-fstack-protector-strong --target=aarch64-linux-ohos -ffunction-sections -fdata-sections -v -funwind-tables -no-canonical-prefixes -D__MUSL__ -stdlib=libc++" \ 361 -DCMAKE_C_COMPILER="${OHOS_PREBUILTS}/clang/ohos/linux-x86_64/llvm/bin/clang" \ 362 -DCMAKE_CXX_COMPILER="${OHOS_PREBUILTS}/clang/ohos/linu [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | aot_compiler.cpp | 31 #include "ecmascript/ohos/enable_aot_list_helper.h" 32 #include "ecmascript/ohos/ohos_pkg_args.h" 211 if (ohos::EnableAotJitListHelper::GetInstance()->IsEnableAot(bundleName)) { in Main() 234 ohos::EnableAotJitListHelper::GetInstance()->AddEnableListCount( in Main()
|
/arkcompiler/ets_runtime/test/fuzztest/setruntimeinfo_fuzzer/ |
H A D | setruntimeinfo_fuzzer.cpp | 16 #include "ecmascript/ohos/aot_runtime_info.h" 20 using namespace panda::ecmascript::ohos;
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_vm.cpp | 44 #include "ecmascript/ohos/jit_tools.h" 45 #include "ecmascript/ohos/aot_tools.h" 56 using JitTools = ohos::JitTools; 141 pgo::PGOTrace::GetInstance()->SetEnable(ohos::AotTools::GetPgoTraceEnable()); in PostFork() 202 pgo::PGOTrace::GetInstance()->SetEnable(options_.GetPGOTrace() || ohos::AotTools::GetPgoTraceEnable()); in InitializePGOProfiler() 551 thread_->ClearException(); // clear for ohos app in GetAndClearEcmaUncaughtException()
|
/arkcompiler/toolchain/build/compile_script/ |
H A D | ark.py | 123 "Build for arkcompiler target of target-operating-system ohos and " 125 "gn_args": ["target_os=\"ohos\"", "target_cpu=\"arm\""], 131 "Build for arkcompiler target of target-operating-system ohos and " 133 "gn_args": ["target_os=\"ohos\"", "target_cpu=\"arm64\""], 155 "Build for arkcompiler target of target-operating-system ohos and " 157 "gn_args": ["target_os=\"ohos\"", "target_cpu=\"mipsel\""], 318 f"../../prebuilts/clang/ohos/linux-x86_64/llvm/lib") 320 return ("--libs-dir ../../prebuilts/clang/ohos/linux-x86_64/llvm/lib" 327 f"../../prebuilts/clang/ohos/linux-x86_64/llvm/lib") 329 return " --libs-dir ../../prebuilts/clang/ohos/linu [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
H A D | js_stackinfo.cpp | 261 ohos::RuntimeInfoType type; in BuildCrashInfo() 263 type = ohos::RuntimeInfoType::JS; in BuildCrashInfo() 265 type = ohos::RuntimeInfoType::AOT_CRASH; in BuildCrashInfo() 267 type = ohos::RuntimeInfoType::OTHERS; in BuildCrashInfo() 269 ohos::AotRuntimeInfo::GetInstance().BuildCrashRuntimeInfo(type); in BuildCrashInfo()
|