mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-06 23:54:03 +00:00
!9116 Added maintenance test logs
Merge pull request !9116 from 任堂宇/master
This commit is contained in:
commit
c74ac12139
@ -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);
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user