Home
last modified time | relevance | path

Searched refs:patchFileName (Results 1 - 14 of 14) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
H A Dquick_fix_test.cpp64 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local
73 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
77 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
80 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
87 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local
96 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
100 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
106 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
109 res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
113 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
123 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; HWTEST_F_L0() local
146 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; HWTEST_F_L0() local
210 const char *patchFileName = "__patch.pa"; HWTEST_F_L0() local
242 CString patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; HWTEST_F_L0() local
269 QuickFixQueryFunc( std::string baseFileName, std::string &patchFileName, uint8_t ** patchBuffer, size_t &patchBufferSize) QuickFixQueryFunc() argument
292 std::string patchFileName = "__index.pa"; HWTEST_F_L0() local
[all...]
/arkcompiler/ets_runtime/ecmascript/patch/
H A Dquick_fix_manager.cpp31 std::string &patchFileName, in RegisterQuickFixQueryFunc()
45 std::string patchFileName; in LoadPatchIfNeeded() local
55 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
62 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatchIfNeeded()
69 patchAndBaseFileNameMap_[patchFileName.c_str()] = baseFileName; in LoadPatchIfNeeded()
82 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch() argument
85 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
100 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, patchFileName.c_str(), ""); in LoadPatch()
123 const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch()
126 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", bas in LoadPatch()
30 RegisterQuickFixQueryFunc(const std::function<bool(std::string baseFileName, std::string &patchFileName, uint8_t **patchBuffer, size_t &patchSize)> callBack) RegisterQuickFixQueryFunc() argument
122 LoadPatch(JSThread *thread, const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize) LoadPatch() argument
162 UnloadPatch(JSThread *thread, const std::string &patchFileName) UnloadPatch() argument
211 CString patchFileName = patchInfo.patchFileName; CheckAndGetPatch() local
236 IsQuickFixCausedException(JSThread *thread, const JSHandle<JSTaggedValue> &exceptionInfo, const std::string &patchFileName) IsQuickFixCausedException() argument
[all...]
H A Dquick_fix_manager.h30 std::string &patchFileName,
34 PatchErrorCode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &baseFileName);
36 const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
38 PatchErrorCode UnloadPatch(JSThread *thread, const std::string &patchFileName);
41 const std::string &patchFileName);
56 std::string &patchFileName,
H A Dpatch_loader.h91 CString patchFileName; member
126 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
153 static void ClearPatchInfo(JSThread *thread, const CString &patchFileName);
H A Dpatch_loader.cpp114 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal() argument
123 std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatchInternal()
177 ClearPatchInfo(thread, patchFileName); in UnloadPatchInternal()
211 void PatchLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) in ClearPatchInfo() argument
220 std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo()
354 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceSameMethod() local
355 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceSameMethod()
413 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceClassLiteral() local
416 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceClassLiteral()
498 patchInfo.patchFileName in GeneratePatchInfo()
[all...]
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
H A Dhot_reload_manager_test.cpp66 std::string patchFileName = DEBUGGER_ABC_DIR "single_file/patch/index.abc"; in HWTEST_F_L0() local
79 auto res = JSNApi::LoadPatch(ecmaVm, patchFileName, baseFileName); in HWTEST_F_L0()
81 auto patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName.c_str()); in HWTEST_F_L0()
89 result = JSNApi::IsQuickFixCausedException(ecmaVm, exception, patchFileName); in HWTEST_F_L0()
92 res = JSNApi::UnloadPatch(ecmaVm, patchFileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/loadpatch_fuzzer/
H A Dloadpatch_fuzzer.cpp31 std::string patchFileName = "index.abc"; in LoadPatchFuzzTest() local
36 JSNApi::LoadPatch(vm, patchFileName, baseFileName); in LoadPatchFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/isquickfixcausedexception_fuzzer/
H A Disquickfixcausedexception_fuzzer.cpp30 std::string patchFileName = "index.abc"; in IsQuickFixCausedExceptionFuzzerTest() local
36 JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in IsQuickFixCausedExceptionFuzzerTest()
/arkcompiler/ets_runtime/test/fuzztest/jsnapiunloadpatch_fuzzer/
H A Djsnapiunloadpatch_fuzzer.cpp30 std::string patchFileName = "index.abc"; in JSNApiUnloadPatchTest() local
35 JSNApi::UnloadPatch(vm, patchFileName); in JSNApiUnloadPatchTest()
/arkcompiler/ets_runtime/test/fuzztest/loadpatchlong_fuzzer/
H A Dloadpatchlong_fuzzer.cpp31 std::string patchFileName = "index.abc"; in LoadPatchLongFuzzTest() local
36 JSNApi::LoadPatch(vm, patchFileName, const_cast<uint8_t *>(data), size, in LoadPatchLongFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/registerquickfixqueryfunc_fuzzer/
H A Dregisterquickfixqueryfunc_fuzzer.cpp25 bool QuickFixQueryFunc(std::string baseFileName, std::string &patchFileName, uint8_t **patchBuffer, in QuickFixQueryFunc() argument
31 patchFileName = "__index.pa"; in QuickFixQueryFunc()
/arkcompiler/ets_runtime/ecmascript/quick_fix/
H A Dmain.cpp57 bool QuickFixQueryFuncColdPatch(std::string baseFileName, std::string &patchFileName, in QuickFixQueryFuncColdPatch() argument
146 std::string patchFileName = fileNames[i]; in Main() local
148 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
165 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main()
173 result = JSNApi::UnloadPatch(vm, patchFileName); in Main()
/arkcompiler/ets_runtime/ecmascript/napi/include/
H A Djsnapi_expo.h1683 static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName);
1685 const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
1687 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1689 static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName);
1692 std::string &patchFileName,
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp3969 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName) in LoadPatch() argument
3974 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
3978 const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch()
3985 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch()
3988 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument
3993 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch()
3999 bool JSNApi::IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument
4008 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException()
4015 std::string &patchFileName, in RegisterQuickFixQueryFunc()
3977 LoadPatch(EcmaVM *vm, const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize) LoadPatch() argument
4014 RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName, std::string &patchFileName, uint8_t **patchBuffer, size_t &patchSize)> callBack) RegisterQuickFixQueryFunc() argument

Completed in 19 milliseconds