Home
last modified time | relevance | path

Searched refs:PatchErrorCode (Results 1 – 9 of 9) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp66 if (ret != PatchErrorCode::SUCCESS) { in LoadPatchIfNeeded()
74 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch()
80 return PatchErrorCode::PATCH_HAS_LOADED; in LoadPatch()
87 return PatchErrorCode::FILE_NOT_FOUND; in LoadPatch()
95 return PatchErrorCode::FILE_NOT_FOUND; in LoadPatch()
100 if (ret != PatchErrorCode::SUCCESS) { in LoadPatch()
107 return PatchErrorCode::SUCCESS; in LoadPatch()
110 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, in LoadPatch()
117 return PatchErrorCode::PATCH_HAS_LOADED; in LoadPatch()
124 return PatchErrorCode::FILE_NOT_FOUND; in LoadPatch()
[all …]
Dquick_fix_manager.h22 using PatchErrorCode = panda::JSNApi::PatchErrorCode; variable
33PatchErrorCode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &ba…
34 PatchErrorCode LoadPatch(JSThread *thread,
37 PatchErrorCode UnloadPatch(JSThread *thread, const std::string &patchFileName);
Dpatch_loader.h26 using PatchErrorCode = panda::JSNApi::PatchErrorCode; variable
65 static PatchErrorCode LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile,
67 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
Dpatch_loader.cpp24 PatchErrorCode PatchLoader::LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile, in LoadPatchInternal()
33 return PatchErrorCode::PACKAGE_NOT_ESMODULE; in LoadPatchInternal()
41 return PatchErrorCode::SUCCESS; in LoadPatchInternal()
64 return PatchErrorCode::INTERNAL_ERROR; in LoadPatchInternal()
68 return PatchErrorCode::SUCCESS; in LoadPatchInternal()
132 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal()
138 return PatchErrorCode::FILE_NOT_EXECUTED; in UnloadPatchInternal()
144 return PatchErrorCode::FILE_NOT_FOUND; in UnloadPatchInternal()
150 return PatchErrorCode::SUCCESS; in UnloadPatchInternal()
157 return PatchErrorCode::INTERNAL_ERROR; in UnloadPatchInternal()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp30 using PatchErrorCode = panda::JSNApi::PatchErrorCode; typedef
71 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
78 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
94 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
101 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
121 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
124 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
127 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
130 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
156 EXPECT_FALSE(result == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
Dhot_reload_manager_test.cpp30 using PatchErrorCode = panda::JSNApi::PatchErrorCode; typedef
80 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
93 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/quick_fix/
Dmain.cpp33 using PatchErrorCode = panda::JSNApi::PatchErrorCode; typedef
138 if (result != PatchErrorCode::SUCCESS) { in Main()
165 if (result != PatchErrorCode::SUCCESS) { in Main()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h1285 enum class PatchErrorCode : uint8_t { enum
1379 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1380 static PatchErrorCode LoadPatch(EcmaVM *vm,
1383 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp178 using ecmascript::PatchErrorCode;
3493 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… in LoadPatch()
3495 CHECK_HAS_PENDING_EXCEPTION(vm, PatchErrorCode::INTERNAL_ERROR); in LoadPatch()
3501 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, in LoadPatch()
3505 CHECK_HAS_PENDING_EXCEPTION(vm, PatchErrorCode::INTERNAL_ERROR); in LoadPatch()
3512 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch()
3514 CHECK_HAS_PENDING_EXCEPTION(vm, PatchErrorCode::INTERNAL_ERROR); in UnloadPatch()