/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | js_refconvert_array.h | 73 if (UNLIKELY(jsElem == nullptr)) { in WrapImpl() 77 if (UNLIKELY(NapiThrownGeneric(rc))) { in WrapImpl() 92 if (UNLIKELY(!isArray)) { in UnwrapImpl() 100 if (UNLIKELY(NapiThrownGeneric(rc))) { in UnwrapImpl() 111 if (UNLIKELY(NapiThrownGeneric(rc))) { in UnwrapImpl() 115 if (UNLIKELY(!res)) { in UnwrapImpl() 157 if (UNLIKELY(elemConv == nullptr)) { in WrapImpl() 164 if (UNLIKELY(jsElem == nullptr)) { in WrapImpl() 171 if (UNLIKELY(NapiThrownGeneric(rc))) { in WrapImpl() 181 if (UNLIKELY(baseElemConv in UnwrapNonUndefined() [all...] |
H A D | intrinsics_api_impl.cpp | 111 if (UNLIKELY(!res)) { in JSRuntimeGetValueString() 143 if (UNLIKELY(refconv == nullptr)) { in JSRuntimeGetValueObject() 204 if (UNLIKELY(NapiThrownGeneric(rc))) { in JSRuntimeInstanceOfDynamic() 346 if (UNLIKELY(status != napi_ok)) { in JSValueToString() 353 if (UNLIKELY(!res.has_value())) { in JSValueToString() 377 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in CompilerGetJSNamedProperty() 394 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in CompilerGetJSProperty() 410 if (UNLIKELY(NapiThrownGeneric(rc))) { in CompilerGetJSElement() 425 if (UNLIKELY(GetValueType(env, jsFn) != napi_function)) { in CompilerJSCallCheck() 450 if (UNLIKELY(jsStatu in CompilerJSNewInstance() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_Class.cpp | 50 if (UNLIKELY(!cls->IsInitialized())) { in StdCoreClassInitialize() 71 if (UNLIKELY(!cls->GetRuntimeClass()->IsInstantiable() || cls->IsArrayClass())) { in StdCoreClassCreateInstance() 77 if (UNLIKELY(ctor == nullptr)) { in StdCoreClassCreateInstance() 83 if (UNLIKELY(!cls->IsInitialized() && !linker->InitializeClass(coro, cls))) { in StdCoreClassCreateInstance() 87 if (UNLIKELY(obj == nullptr)) { in StdCoreClassCreateInstance() 94 if (UNLIKELY(coro->HasPendingException())) { in StdCoreClassCreateInstance() 111 if (UNLIKELY(init != 0 && !klass->IsInitialized())) { in StdCoreRuntimeLinkerLoadClassInternal() 112 if (UNLIKELY(!coro->GetPandaVM()->GetClassLinker()->InitializeClass(coro, klass))) { in StdCoreRuntimeLinkerLoadClassInternal()
|
H A D | std_core_String.cpp | 49 if (UNLIKELY(begin > end)) { in StdCoreStringGetDataAsArray() 53 if (UNLIKELY(begin > length || begin < 0)) { in StdCoreStringGetDataAsArray() 57 if (UNLIKELY(end > length)) { in StdCoreStringGetDataAsArray() 115 if (UNLIKELY(indexes.first == 0 && indexes.second == str->GetLength())) { in StdCoreStringSubstring() 127 if (UNLIKELY(index >= length || index < 0)) { in StdCoreStringCharAt() 196 if (UNLIKELY(U_FAILURE(errorCode))) { in StringNormalize() 210 if (UNLIKELY(U_FAILURE(errorCode))) { in StdCoreStringNormalizeNFC() 222 if (UNLIKELY(U_FAILURE(errorCode))) { in StdCoreStringNormalizeNFD() 234 if (UNLIKELY(U_FAILURE(errorCode))) { in StdCoreStringNormalizeNFKC() 246 if (UNLIKELY(U_FAILUR in StdCoreStringNormalizeNFKD() [all...] |
H A D | std_core_Double.cpp | 37 if (UNLIKELY(s->IsUtf16())) { in ParseFloat() 54 if (UNLIKELY(radix != helpers::DECIMAL)) { in StdCoreDoubleToString() 72 if (UNLIKELY(U_FAILURE(status))) { in StdCoreDoubleToLocaleString() 86 if (UNLIKELY(U_FAILURE(status))) { in StdCoreDoubleToLocaleString() 170 if (UNLIKELY(digitAbs > helpers::MAX_FRACTION || digitAbs < helpers::MIN_FRACTION)) { in StdCoreDoubleToExponential() 203 if (UNLIKELY(digitAbs > helpers::MAX_FRACTION || digitAbs < helpers::MIN_FRACTION + 1)) { in StdCoreDoubleToPrecision() 236 if (UNLIKELY(digitAbs > helpers::MAX_FRACTION || digitAbs < helpers::MIN_FRACTION)) { in StdCoreDoubleToFixed()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
H A D | ets_napi_macros.h | 97 if (UNLIKELY((a) == (b))) { \ 104 if (UNLIKELY((a) != (b))) { \ 111 if (UNLIKELY((a) > (b))) { \ 118 if (UNLIKELY((a) >= (b))) { \ 125 if (UNLIKELY((a) < (b))) { \ 132 if (UNLIKELY((a) <= (b))) { \
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/ |
H A D | ets_method_wrapper.cpp | 32 if (UNLIKELY(nullptr == wrapper)) { in CreateMethod() 89 if (UNLIKELY(nullptr != methodSet && !methodSet->IsValid())) { in FindSuitableMethod() 93 if (UNLIKELY(nullptr == etsMethod)) { in FindSuitableMethod() 119 if (UNLIKELY(_this == nullptr)) { in EtsMethodCallHandler() 125 if (UNLIKELY(nullptr == etsMethod)) { in EtsMethodCallHandler() 135 if (UNLIKELY(!coro->GetPandaVM()->GetClassLinker()->InitializeClass(coro, etsClass))) { in EtsMethodCallHandler() 142 if (UNLIKELY(IsNullOrUndefined(env, jsThis))) { in EtsMethodCallHandler() 148 if (UNLIKELY(etsThis == nullptr)) { in EtsMethodCallHandler()
|
H A D | shared_reference.cpp | 33 if (UNLIKELY(napi_ok != NapiWrap(env, jsObject, this, FinalizeJSWeak, nullptr, &jsRef_))) { in InitETSObject() 39 if (UNLIKELY(etsRef_ == nullptr)) { in InitETSObject() 53 if (UNLIKELY(napi_ok != NapiWrap(env, jsObject, this, CBDoNothing, nullptr, &jsRef_))) { in InitJSObject() 64 if (UNLIKELY(boxLong == nullptr || in InitJSObject() 79 if (UNLIKELY(napi_ok != NapiWrap(env, jsObject, this, CBDoNothing, nullptr, &jsRef_))) { in InitHybridObject() 86 if (UNLIKELY(etsRef_ == nullptr)) { in InitHybridObject() 98 if (UNLIKELY(Runtime::GetCurrent() == nullptr)) { in FinalizeJSWeak()
|
H A D | ets_field_wrapper.cpp | 38 if (UNLIKELY(!coro->GetPandaVM()->GetClassLinker()->InitializeClass(coro, etsClass))) { in EtsAccessorsHandleThis() 45 if (UNLIKELY(IsNullOrUndefined(env, jsThis))) { in EtsAccessorsHandleThis() 51 if (UNLIKELY(etsThis == nullptr)) { in EtsAccessorsHandleThis() 67 if (UNLIKELY(argc != 0)) { in EtsFieldGetter() 78 if (UNLIKELY(etsThis == nullptr)) { in EtsFieldGetter() 96 if (UNLIKELY(argc != 1)) { in EtsFieldSetter() 107 if (UNLIKELY(etsThis == nullptr)) { in EtsFieldSetter() 115 if (UNLIKELY(!res)) { in EtsFieldSetter() 146 if (UNLIKELY(refconv == nullptr)) { in Setter() 150 if (UNLIKELY(etsValu in Setter() [all...] |
H A D | shared_reference_storage.cpp | 58 if (UNLIKELY(data == nullptr)) { in GetReference() 67 if (UNLIKELY(!IsValidItem(sharedRef))) { in GetReference() 81 if (UNLIKELY(sharedRef == nullptr)) { in CreateReference() 85 if (UNLIKELY(!(sharedRef->*REF_INIT)(ctx, etsObject, jsObject, GetIndexByItem(sharedRef)))) { in CreateReference()
|
H A D | ets_proxy.cpp | 47 if (UNLIKELY(napi_ok != resolveStatus || GetValueType(env, jsMethod) != napi_function)) { in GetETSFunction() 64 if (UNLIKELY(etsKlass == nullptr)) { in GetETSClass() 70 if (UNLIKELY(etsClassWrapper == nullptr)) { in GetETSClass()
|
/arkcompiler/runtime_core/libpandabase/trace/ |
H A D | trace.h | 44 if (UNLIKELY(IsEnabled())) { in BeginTracePoint() 51 if (UNLIKELY(IsEnabled())) { in EndTracePoint() 58 if (UNLIKELY(IsEnabled())) { in IntTracePoint() 65 if (UNLIKELY(IsEnabled())) { in Int64TracePoint() 124 UNLIKELY(::panda::trace::IsEnabled()) && ::panda::trace::internal::ScopeTraceStremHelperBegin().GetStream()
|
/arkcompiler/runtime_core/static_core/libpandabase/trace/ |
H A D | trace.h | 41 if (UNLIKELY(IsEnabled())) { in BeginTracePoint() 48 if (UNLIKELY(IsEnabled())) { in EndTracePoint() 55 if (UNLIKELY(IsEnabled())) { in IntTracePoint() 62 if (UNLIKELY(IsEnabled())) { in Int64TracePoint() 121 UNLIKELY(::ark::trace::IsEnabled()) && ::ark::trace::internal::ScopeTraceStremHelperBegin().GetStream()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
H A D | inspector.cpp | 221 if (UNLIKELY(CheckVmDead())) { in RuntimeEnable() 231 if (UNLIKELY(CheckVmDead())) { in RunIfWaitingForDebugger() 244 if (UNLIKELY(CheckVmDead())) { in Pause() 257 if (UNLIKELY(CheckVmDead())) { in Continue() 270 if (UNLIKELY(CheckVmDead())) { in SetBreakpointsActive() 284 if (UNLIKELY(CheckVmDead())) { in GetPossibleBreakpoints() 296 if (UNLIKELY(CheckVmDead())) { in SetBreakpoint() 311 if (UNLIKELY(CheckVmDead())) { in RemoveBreakpoint() 324 if (UNLIKELY(CheckVmDead())) { in SetPauseOnExceptions() 337 if (UNLIKELY(CheckVmDea in StepInto() [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | runtime_notification.h | 218 if (UNLIKELY(hasLoadModuleListeners_)) { in LoadModuleEvent() 229 if (UNLIKELY(hasThreadEventsListeners_)) { in ThreadStartEvent() 240 if (UNLIKELY(hasThreadEventsListeners_)) { in ThreadEndEvent() 251 if (UNLIKELY(hasBytecodePcListeners_)) { in BytecodePcChangedEvent() 262 if (UNLIKELY(hasGarbageCollectorListeners_)) { in GarbageCollectorStartEvent() 274 if (UNLIKELY(hasGarbageCollectorListeners_)) { in GarbageCollectorFinishEvent() 286 if (UNLIKELY(hasExceptionListeners_)) { in ExceptionThrowEvent() 299 if (UNLIKELY(hasExceptionListeners_)) { in ExceptionCatchEvent() 312 if (UNLIKELY(hasVmEventsListeners_)) { in VmStartEvent() 323 if (UNLIKELY(hasVmEventsListeners in VmInitializationEvent() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/ |
H A D | sp_mc_lock_free_queue.h | 269 if (UNLIKELY(pushIndex < popIndex && popIndex != pushIndex_.load(std::memory_order_acquire))) { 291 if (UNLIKELY(bufferIndex == 0 && pushIndex != 0)) { 323 if (UNLIKELY(pushIndex < popIndex)) { 328 if (UNLIKELY(pushIndex == popIndex)) { 339 if (UNLIKELY(currentHead == nullptr)) { 343 if (UNLIKELY(currentHead->id > nodeId)) { 349 if (UNLIKELY(bufferIndex == 0 && popIndex != 0)) { 351 if (UNLIKELY(!TryMovePopIndex(popIndex))) { 361 if (UNLIKELY(currentHead->id < nodeId)) { 369 if (UNLIKELY(!TryMovePopInde [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_stubs-inl.h | 37 if (UNLIKELY(ref1 == ref2)) { in EtsReferenceEquals() 58 if (UNLIKELY(!stack.HasFrame())) { in GetMethodOwnerClassInFrames() 62 if (UNLIKELY(method == nullptr)) { in GetMethodOwnerClassInFrames()
|
/arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
H A D | entrypoints.cpp | 163 if (UNLIKELY(arr == nullptr)) { in CreateArraySlowPathEntrypoint() 207 if (UNLIKELY(str == nullptr)) { in CreateEmptyStringEntrypoint() 219 if (UNLIKELY(str == nullptr)) { in CreateStringFromStringEntrypoint() 232 if (UNLIKELY(str == nullptr)) { in CreateStringFromCharsEntrypoint() 246 if (UNLIKELY(str == nullptr)) { in CreateStringFromCharsWithOffsetEntrypoint() 259 if (UNLIKELY(str == nullptr)) { in CreateStringFromCharsZeroOffsetEntrypoint() 275 if (UNLIKELY(substr == nullptr)) { in SubStringFromStringEntrypoint() 287 if (UNLIKELY(static_cast<uint32_t>(end) > length)) { in StringGetCharsEntrypoint() 293 if (UNLIKELY(begin > end)) { in StringGetCharsEntrypoint() 300 if (UNLIKELY(begi in StringGetCharsEntrypoint() [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | mark_stack.h | 40 if (UNLIKELY(top_ <= reinterpret_cast<uintptr_t *>(begin_))) { in PopBackChecked() 61 if (UNLIKELY(top_ >= end_)) { in PushBackChecked() 124 if (UNLIKELY(top_ <= reinterpret_cast<uintptr_t *>(begin_))) { in PopBack() 139 if (UNLIKELY(top_ >= end_)) { in PushBack()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | graph_checker_macros.h | 51 if (UNLIKELY(!(cond))) { \ 64 if (UNLIKELY(!(lhs == rhs))) { \ 77 if (UNLIKELY(!(cond))) { \ 83 if (UNLIKELY(!(cond))) { \
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/ |
H A D | call_js.cpp | 135 if (UNLIKELY(!ArgSetup()(ctx_, this))) { in Handle() 138 if (UNLIKELY(GetValueType(env, jsFn_) != napi_function)) { in Handle() 144 if (UNLIKELY(!jsRes.has_value())) { in Handle() 148 if (UNLIKELY(!etsRes.has_value())) { in Handle() 179 bool isVarArgs = UNLIKELY(protoReader_.GetMethod()->HasVarArgs()); in ConvertArgsAndCall() 185 if (UNLIKELY(!ConvertArgToJS(ctx_, protoReader_, &jsargs[argIdx], readVal))) { in ConvertArgsAndCall() 211 if (UNLIKELY(jsStatus != napi_ok)) { in CallConverted() 228 if (UNLIKELY(!res.has_value())) { in ConvertRetval() 234 if (UNLIKELY(!ConvertArgToEts(ctx_, protoReader_, store, jsRet))) { in ConvertRetval() 252 if (UNLIKELY(r in ResolveQualifiedReceiverTarget() [all...] |
H A D | call_ets.cpp | 101 if (UNLIKELY(!ConvertArgToEts(ctx_, protoReader_, store, jsVal))) { in ConvertArgs() 167 if (UNLIKELY(!CheckNumArgs(numArgs))) { in HandleImpl() 172 if (UNLIKELY(!ConvertArgs<IS_STATIC>(*etsArgs))) { in HandleImpl() 177 if (UNLIKELY(coro_->HasPendingException())) { in HandleImpl() 184 if (UNLIKELY(!ConvertArgToJS(ctx_, protoReader_, &jsRes, readVal))) { in HandleImpl() 217 if (UNLIKELY(cls == nullptr)) { in ResolveEntryPoint() 222 if (UNLIKELY(method == nullptr)) { in ResolveEntryPoint()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | fast_json_stringifier.cpp | 67 if (UNLIKELY(toJsonFun->IsCallable())) { in GetSerializeValue() 145 if (UNLIKELY(jsHclass->IsJSProxy() && in SerializeJSONProperty() 213 if (UNLIKELY(value->IsJSProxy() || value->IsTypedArray())) { // serialize proxy and typedArray in SerializeJSONObject() 221 if (UNLIKELY(valueHandle->IsECMAObject() || valueHandle->IsBigInt())) { in SerializeJSONObject() 224 if (UNLIKELY(serializeValue.IsUndefined() || serializeValue.IsSymbol() || in SerializeJSONObject() 309 if (UNLIKELY(valHandle->IsECMAObject() || valHandle->IsBigInt())) { in SerializeJSProxy() 349 if (UNLIKELY(tagVal.IsAccessor())) { in SerializeJSArray() 434 if (UNLIKELY(value.IsAccessor())) { in TryCacheSerializeElements() 467 if (UNLIKELY(value.IsAccessor())) { in SerializeElementsWithCache() 525 if (UNLIKELY(valu in TryCacheSerializeKeysFromPropertiesArray() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/ |
H A D | macros.h | 138 #define UNLIKELY(exp) (__builtin_expect((exp) != 0, false)) // NOLINT(cppcoreguidelines-macro-usage) macro 150 if (UNLIKELY(!(__lhs op __rhs))) { \ 174 if (UNLIKELY(!(cond))) { \ 181 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \ 189 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | heap_sampling.cpp | 57 if (UNLIKELY(frameStack_.size() >= static_cast<size_t>(stackDepth_))) { in PushStackInfo() 66 if (UNLIKELY(frameInfoTemps_.size() >= static_cast<size_t>(stackDepth_))) { in PushFrameInfo() 112 if (UNLIKELY(!JsStackGetter::ParseMethodInfo(methodKey, it, vm_, codeEntry))) { in GetStack() 115 if (UNLIKELY(!PushFrameInfo(codeEntry))) { in GetStack() 119 if (UNLIKELY(!PushStackInfo(methodKey))) { in GetStack()
|