From f70c23dc899fffaa83b460e1ff1c4c4033bf2f35 Mon Sep 17 00:00:00 2001 From: liu-zelin Date: Fri, 16 Aug 2024 15:06:56 +0800 Subject: [PATCH] Rename shared to sendable Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAKIQI?from=project-issue Signed-off-by: liu-zelin Change-Id: I3cc798d59b8110f69180705ac9997ab7d0e761e6 --- tooling/agent/runtime_impl.cpp | 12 ++++++------ tooling/agent/runtime_impl.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tooling/agent/runtime_impl.cpp b/tooling/agent/runtime_impl.cpp index 2cd0c683..ba0a410e 100644 --- a/tooling/agent/runtime_impl.cpp +++ b/tooling/agent/runtime_impl.cpp @@ -228,8 +228,8 @@ DispatchResponse RuntimeImpl::GetProperties(const GetPropertiesParams ¶ms, GetCollatorValue(value, outPropertyDesc); } else if (value->IsJSDateTimeFormat(vm_)) { GetDateTimeFormatValue(value, outPropertyDesc); - } else if (value->IsSharedMap(vm_)) { - GetSharedMapValue(value, outPropertyDesc); + } else if (value->IsSendableMap(vm_)) { + GetSendableMapValue(value, outPropertyDesc); } else if (value->IsMap(vm_)) { GetMapValue(value, outPropertyDesc); } else if (value->IsWeakMap(vm_)) { @@ -256,7 +256,7 @@ DispatchResponse RuntimeImpl::GetProperties(const GetPropertiesParams ¶ms, GetListValue(value, outPropertyDesc); } else if (value->IsPlainArray(vm_)) { GetPlainArrayValue(value, outPropertyDesc); - } else if (value->IsTreeMap(vm_)) { + } else if (value->IsTreeMap(vm_)) { GetTreeMapValue(value, outPropertyDesc); } else if (value->IsTreeSet(vm_)) { GetTreeSetValue(value, outPropertyDesc); @@ -596,8 +596,8 @@ void RuntimeImpl::GetDateTimeFormatValue(Local value, SetKeyValue(jsValueRef, outPropertyDesc, "format"); } -void RuntimeImpl::GetSharedMapValue(Local value, - std::vector> *outPropertyDesc) +void RuntimeImpl::GetSendableMapValue(Local value, + std::vector> *outPropertyDesc) { Local sendableMapRef(value); uint32_t size = sendableMapRef->GetSize(vm_); @@ -912,4 +912,4 @@ void RuntimeImpl::GetPromiseValue(Local value, Local promiseResult = promiseRef->GetPromiseResult(vm_); SetKeyValue(promiseResult, outPropertyDesc, "[[PromiseResult]]"); } -} // namespace panda::ecmascript::tooling \ No newline at end of file +} // namespace panda::ecmascript::tooling diff --git a/tooling/agent/runtime_impl.h b/tooling/agent/runtime_impl.h index d7e6a1d7..57c7f984 100644 --- a/tooling/agent/runtime_impl.h +++ b/tooling/agent/runtime_impl.h @@ -110,8 +110,8 @@ private: std::vector> *outPropertyDesc); void GetDateTimeFormatValue(Local value, std::vector> *outPropertyDesc); - void GetSharedMapValue(Local value, - std::vector> *outPropertyDesc); + void GetSendableMapValue(Local value, + std::vector> *outPropertyDesc); void GetMapValue(Local value, std::vector> *outPropertyDesc); void GetWeakMapValue(Local value, @@ -182,4 +182,4 @@ private: friend class DebuggerImpl; }; } // namespace panda::ecmascript::tooling -#endif \ No newline at end of file +#endif -- Gitee