Home
last modified time | relevance | path

Searched refs:rawStack (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_base_utils.cpp101 std::string rawStack; in GenerateErrorMsg() local
109 rawStack = stack->ToString(runtime); in GenerateErrorMsg()
115 .append(GetMsgStr(rawStack)) in GenerateErrorMsg()
208 std::string rawStack = stack->ToString(runtime); in GenerateSummaryBody() local
209 if (rawStack.empty()) { in GenerateSummaryBody()
215 auto errorPos = GetErrorPos(rawStack); in GenerateSummaryBody()
238 summaryBody.append(stackHead).append(rawStack); in GenerateSummaryBody()
263 size_t findLineEnd = rawStack.find("\n"); in GetErrorPos()
268 if (lineEnd < 1 || rawStack[lineEnd - 1] == '?') { in GetErrorPos()
272 size_t secondPos = rawStack.rfind(':', lineEnd); in GetErrorPos()
[all …]
H A Djsi_base_utils.h40 static std::string TransSourceStack(RefPtr<JsAcePage> runningPage, const std::string& rawStack);
88 static ErrorPos GetErrorPos(const std::string& rawStack);
/ohos5.0/foundation/ability/ability_runtime/js_environment/test/unittest/source_map_test/
H A Dsource_map_test.cpp70 …std::string rawStack = "at AssertException (/mnt/assets/ets/TestAbility/TestAbility_.js:5779:5)\n"; variable
71 auto pos = SourceMap::GetErrorPos(rawStack);
86 std::string rawStack = "\n"; variable
87 auto pos = SourceMap::GetErrorPos(rawStack);
102 std::string rawStack = "?\n"; variable
103 auto pos = SourceMap::GetErrorPos(rawStack);
/ohos5.0/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/
H A Dsource_map.cpp485 ErrorPos SourceMap::GetErrorPos(const std::string& rawStack) in GetErrorPos() argument
487 size_t findLineEnd = rawStack.find("\n"); in GetErrorPos()
492 if (lineEnd < 1 || rawStack[lineEnd - 1] == '?') { in GetErrorPos()
496 uint32_t secondPos = rawStack.rfind(':', lineEnd); in GetErrorPos()
497 uint32_t fristPos = rawStack.rfind(':', secondPos - 1); in GetErrorPos()
499 std::string lineStr = rawStack.substr(fristPos + 1, secondPos - 1 - fristPos); in GetErrorPos()
500 std::string columnStr = rawStack.substr(secondPos + 1, lineEnd - 1 - secondPos); in GetErrorPos()
H A Djs_environment.cpp136 auto translateBySourceMapFunc = [&](const std::string& rawStack) -> std::string { in InitSourceMap() argument
138 return sourceMapOperator_->TranslateBySourceMap(rawStack); in InitSourceMap()
140 return NOT_INIT + rawStack; in InitSourceMap()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Derror_helper.h207 std::string rawStack = NapiHelper::GetString(env, stack); in TranslateErrorEvent() local
208 … std::vector<std::string> result = SplitErrorFileInfo(rawStack, ':', 2); // 2 : the last two : in TranslateErrorEvent()
/ohos5.0/foundation/ability/ability_runtime/js_environment/interfaces/inner_api/
H A Dsource_map.h78 static ErrorPos GetErrorPos(const std::string& rawStack);
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_engine.h83 using SourceMapCallback = std::function<std::string(const std::string& rawStack)>;
388 virtual std::string ExecuteTranslateBySourceMap(const std::string& rawStack) = 0;
H A Dnative_api.cpp3822 std::string rawStack; in napi_get_stack_trace() local
3824 DFXJSNApi::BuildJsStackTrace(vm, rawStack); in napi_get_stack_trace()
3825 stack = engine->ExecuteTranslateBySourceMap(rawStack); in napi_get_stack_trace()
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp666 std::string rawStack; in StartNapiProfilerTrace() local
681 rawStack = ssRawStack.str(); in StartNapiProfilerTrace()
691 __send_hook_misc_data(chainId, rawStack.c_str(), rawStack.size() + 1, 1); in StartNapiProfilerTrace()
2334 std::string ArkNativeEngine::ExecuteTranslateBySourceMap(const std::string& rawStack) in ExecuteTranslateBySourceMap() argument
2337 return SourceMapCallback_(rawStack); in ExecuteTranslateBySourceMap()
2340 return rawStack; in ExecuteTranslateBySourceMap()
H A Dark_native_engine.h307 std::string ExecuteTranslateBySourceMap(const std::string& rawStack) override;