!9116 Added maintenance test logs

Merge pull request !9116 from 任堂宇/master
This commit is contained in:
openharmony_ci 2024-09-12 18:13:13 +00:00 committed by Gitee
commit c74ac12139
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 10 additions and 7 deletions

View File

@ -930,7 +930,7 @@ std::vector<void *> DebuggerApi::GetNativePointer(const EcmaVM *ecmaVm)
if (method->IsNativeWithCallField()) {
JSTaggedValue function = it.GetFunction();
JSHandle<JSTaggedValue> extraInfoValue(
thread, JSFunction::Cast(function.GetTaggedObject())->GetFunctionExtraInfo());
thread, JSFunctionBase::Cast(function.GetTaggedObject())->GetFunctionExtraInfo());
auto cb = ecmaVm->GetNativePtrGetter();
if (extraInfoValue->IsJSNativePointer() && cb != nullptr) {
JSHandle<JSNativePointer> extraInfo(extraInfoValue);

View File

@ -93,6 +93,8 @@ std::string JsStackInfo::BuildMethodTrace(Method *method, uint32_t pcOffset, Las
data.push_back('?');
}
data.append(")\n");
LOG_ECMA(DEBUG) << "stack: " << data << "\nfileName: " << pandaFile->GetJSPandaFileDesc()
<< "\nrecordName: " << method->GetRecordNameStr();
return data;
}
@ -329,7 +331,7 @@ std::vector<struct JsFrameInfo> JsStackInfo::BuildJsStackInfo(JSThread *thread,
} else {
JSTaggedValue function = it.GetFunction();
JSHandle<JSTaggedValue> extraInfoValue(
thread, JSFunction::Cast(function.GetTaggedObject())->GetFunctionExtraInfo());
thread, JSFunctionBase::Cast(function.GetTaggedObject())->GetFunctionExtraInfo());
if (extraInfoValue->IsJSNativePointer()) {
JSHandle<JSNativePointer> extraInfo(extraInfoValue);
native = reinterpret_cast<uintptr_t *>(extraInfo->GetData());

View File

@ -1070,7 +1070,7 @@ void JSFunction::SetJitMachineCodeCache(const JSThread *thread, const JSHandle<M
handleRaw->SetMachineCode(thread, machineCode.GetTaggedValue().CreateAndGetWeakRef(), WRITE_BARRIER);
}
JSTaggedValue JSFunction::GetFunctionExtraInfo() const
JSTaggedValue JSFunctionBase::GetFunctionExtraInfo() const
{
JSTaggedType hashField = Barriers::GetValue<JSTaggedType>(this, HASH_OFFSET);
JSTaggedValue value(hashField);

View File

@ -126,6 +126,8 @@ public:
return TaskConcurrentFuncFlagBit::Decode(bitField);
}
JSTaggedValue GetFunctionExtraInfo() const;
/* compiled code flag field */
using IsCompiledCodeBit = BitField<bool, 0, 1>; // offset 0
using IsFastCallBit = IsCompiledCodeBit::NextFlag; // offset 1
@ -315,7 +317,6 @@ public:
JSHandle<JSFunction> targetFunc);
void SetJitMachineCodeCache(const JSThread *thread, const JSHandle<MachineCode> &machineCode);
JSTaggedValue GetFunctionExtraInfo() const;
JSTaggedValue GetNativeFunctionExtraInfo() const;
CString GetRecordName() const;
JSTaggedValue GetProfileTypeInfo() const

View File

@ -441,7 +441,7 @@ JSTaggedValue Callback::RegisterCallback(ecmascript::EcmaRuntimeCallInfo *ecmaRu
return JSTaggedValue::False();
}
[[maybe_unused]] LocalScope scope(thread->GetEcmaVM());
JSHandle<JSFunction> function(constructor);
JSHandle<JSFunctionBase> function(constructor);
JSTaggedValue extraInfoValue = function->GetFunctionExtraInfo();
if (!extraInfoValue.IsJSNativePointer()) {
return JSTaggedValue::False();

View File

@ -3715,7 +3715,7 @@ void* FunctionRef::GetData(const EcmaVM *vm)
CROSS_THREAD_AND_EXCEPTION_CHECK_WITH_RETURN(vm, nullptr);
ecmascript::ThreadManagedScope managedScope(vm->GetJSThread());
JSHandle<JSTaggedValue> funcValue = JSNApiHelper::ToJSHandle(this);
JSHandle<JSFunction> function(funcValue);
JSHandle<JSFunctionBase> function(funcValue);
JSTaggedValue extraInfoValue = function->GetFunctionExtraInfo();
if (!extraInfoValue.IsNativePointer()) {
return nullptr;
@ -3905,7 +3905,7 @@ void *JsiRuntimeCallInfo::GetData()
if (!constructor->IsJSFunction()) {
return nullptr;
}
JSHandle<JSFunction> function(constructor);
JSHandle<JSFunctionBase> function(constructor);
JSTaggedValue extraInfoValue = function->GetFunctionExtraInfo();
if (!extraInfoValue.IsJSNativePointer()) {
return nullptr;