Home
last modified time | relevance | path

Searched refs:rc (Results 1 - 25 of 32) sorted by relevance

12

/arkcompiler/runtime_core/libpandabase/os/
H A Dmutex.cpp28 ALWAYS_INLINE inline void FatalIfError(const char *f, int rc) in FatalIfError() argument
30 if (rc != 0) { in FatalIfError()
34 LOG(FATAL, COMMON) << f << " failed: " << Error(rc).ToString(); in FatalIfError()
52 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
53 FatalIfError("pthread_mutex_destroy", rc); in ~Mutex()
58 int rc = pthread_mutex_init(&mutex_, attrs); in Init() local
59 FatalIfError("pthread_mutex_init", rc); in Init()
64 int rc = pthread_mutex_lock(&mutex_); in Lock() local
65 FatalIfError("pthread_mutex_lock", rc); in Lock()
70 int rc in TryLock() local
82 int rc = pthread_mutex_unlock(&mutex_); Unlock() local
96 int rc = pthread_rwlock_init(&rwlock_, nullptr); RWLock() local
102 int rc = pthread_rwlock_destroy(&rwlock_); ~RWLock() local
108 int rc = pthread_rwlock_rdlock(&rwlock_); ReadLock() local
114 int rc = pthread_rwlock_wrlock(&rwlock_); WriteLock() local
120 int rc = pthread_rwlock_tryrdlock(&rwlock_); TryReadLock() local
132 int rc = pthread_rwlock_trywrlock(&rwlock_); TryWriteLock() local
144 int rc = pthread_rwlock_unlock(&rwlock_); Unlock() local
150 int rc = pthread_cond_init(&cond_, nullptr); ConditionVariable() local
156 int rc = pthread_cond_destroy(&cond_); ~ConditionVariable() local
162 int rc = pthread_cond_signal(&cond_); Signal() local
168 int rc = pthread_cond_broadcast(&cond_); SignalAll() local
174 int rc = pthread_cond_wait(&cond_, &mutex->mutex_); Wait() local
201 int rc = pthread_cond_timedwait(&cond_, &mutex->mutex_, &abs_time); TimedWait() local
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dmutex.cpp28 ALWAYS_INLINE inline void FatalIfError(const char *f, int rc) in FatalIfError() argument
30 if (rc != 0) { in FatalIfError()
34 LOG(FATAL, COMMON) << f << " failed: " << Error(rc).ToString(); in FatalIfError()
52 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
53 FatalIfError("pthread_mutex_destroy", rc); in ~Mutex()
58 int rc = pthread_mutex_init(&mutex_, attrs); in Init() local
59 FatalIfError("pthread_mutex_init", rc); in Init()
64 int rc = pthread_mutex_lock(&mutex_); in Lock() local
65 FatalIfError("pthread_mutex_lock", rc); in Lock()
70 int rc in TryLock() local
82 int rc = pthread_mutex_unlock(&mutex_); Unlock() local
96 int rc = pthread_rwlock_init(&rwlock_, nullptr); RWLock() local
102 int rc = pthread_rwlock_destroy(&rwlock_); ~RWLock() local
108 int rc = pthread_rwlock_rdlock(&rwlock_); ReadLock() local
114 int rc = pthread_rwlock_wrlock(&rwlock_); WriteLock() local
120 int rc = pthread_rwlock_tryrdlock(&rwlock_); TryReadLock() local
132 int rc = pthread_rwlock_trywrlock(&rwlock_); TryWriteLock() local
144 int rc = pthread_rwlock_unlock(&rwlock_); Unlock() local
150 int rc = pthread_cond_init(&cond_, nullptr); ConditionVariable() local
156 int rc = pthread_cond_destroy(&cond_); ~ConditionVariable() local
162 int rc = pthread_cond_signal(&cond_); Signal() local
168 int rc = pthread_cond_broadcast(&cond_); SignalAll() local
174 int rc = pthread_cond_wait(&cond_, &mutex->mutex_); Wait() local
201 int rc = pthread_cond_timedwait(&cond_, &mutex->mutex_, &abs_time); TimedWait() local
[all...]
/arkcompiler/ets_runtime/ecmascript/platform/common/
H A Dmutex.cpp32 [[maybe_unused]]int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
33 FATAL_IF_ERROR("pthread_mutex_destroy", rc); in ~Mutex()
38 [[maybe_unused]]int rc = pthread_mutex_init(&mutex_, attrs); in Init() local
39 FATAL_IF_ERROR("pthread_mutex_init", rc); in Init()
44 [[maybe_unused]]int rc = pthread_mutex_lock(&mutex_); in Lock() local
45 FATAL_IF_ERROR("pthread_mutex_lock", rc); in Lock()
50 int rc = pthread_mutex_trylock(&mutex_); in TryLock() local
51 if (rc == EBUSY) { in TryLock()
55 FATAL_IF_ERROR("pthread_mutex_trylock", rc); in TryLock()
62 [[maybe_unused]]int rc in Unlock() local
76 [[maybe_unused]]int rc = pthread_rwlock_init(&rwlock_, nullptr); RWLock() local
82 [[maybe_unused]]int rc = pthread_rwlock_destroy(&rwlock_); ~RWLock() local
88 [[maybe_unused]]int rc = pthread_rwlock_rdlock(&rwlock_); ReadLock() local
94 [[maybe_unused]]int rc = pthread_rwlock_wrlock(&rwlock_); WriteLock() local
100 int rc = pthread_rwlock_tryrdlock(&rwlock_); TryReadLock() local
112 int rc = pthread_rwlock_trywrlock(&rwlock_); TryWriteLock() local
124 [[maybe_unused]]int rc = pthread_rwlock_unlock(&rwlock_); Unlock() local
130 [[maybe_unused]]int rc = pthread_cond_init(&cond_, nullptr); ConditionVariable() local
136 [[maybe_unused]]int rc = pthread_cond_destroy(&cond_); ~ConditionVariable() local
142 [[maybe_unused]]int rc = pthread_cond_signal(&cond_); Signal() local
148 [[maybe_unused]]int rc = pthread_cond_broadcast(&cond_); SignalAll() local
154 [[maybe_unused]]int rc = pthread_cond_wait(&cond_, &mutex->mutex_); Wait() local
181 int rc = pthread_cond_timedwait(&cond_, &mutex->mutex_, &abs_time); TimedWait() local
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/test262/
H A Dtest_js_test262.py56 lambda o, e, rc: self.es2panda_result_validator(o, e, rc, desc, test_abc)
68 lambda o, e, rc: rc == 0
79 lambda o, e, rc: rc == 0
89 lambda o, e, rc: bool(self.util.validate_runtime_result(rc, e, desc, o))
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Djs_refconvert_array.h76 napi_status rc = napi_set_element(env, jsArr, idx, jsElem); in WrapImpl() local
77 if (UNLIKELY(NapiThrownGeneric(rc))) { in WrapImpl()
99 napi_status rc = napi_get_array_length(env, jsArr, &len); in UnwrapImpl() local
100 if (UNLIKELY(NapiThrownGeneric(rc))) { in UnwrapImpl()
110 rc = napi_get_element(env, jsArr, idx, &jsElem); in UnwrapImpl()
111 if (UNLIKELY(NapiThrownGeneric(rc))) { in UnwrapImpl()
170 napi_status rc = napi_set_element(env, jsArr, idx, jsElem); in WrapImpl() local
171 if (UNLIKELY(NapiThrownGeneric(rc))) { in WrapImpl()
208 napi_status rc = napi_get_array_length(env, jsArr, &len); in UnwrapImpl() local
209 if (UNLIKELY(NapiThrownGeneric(rc))) { in UnwrapImpl()
[all...]
H A Dinterop_common.h235 inline bool NapiThrownGeneric(napi_status rc) in NapiThrownGeneric() argument
237 INTEROP_FATAL_IF(rc != napi_ok && rc != napi_generic_failure); in NapiThrownGeneric()
238 return rc == napi_generic_failure; in NapiThrownGeneric()
H A Dintrinsics_api_impl.cpp203 napi_status rc = napi_instanceof(env, jsObj, jsCtor, &res); in JSRuntimeInstanceOfDynamic() local
204 if (UNLIKELY(NapiThrownGeneric(rc))) { in JSRuntimeInstanceOfDynamic()
376 napi_status rc = napi_get_named_property(env, jsVal, propStr, &res); in CompilerGetJSNamedProperty() local
377 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in CompilerGetJSNamedProperty()
393 napi_status rc = napi_get_property(env, jsVal, ToLocal(prop), &res); in CompilerGetJSProperty() local
394 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in CompilerGetJSProperty()
409 auto rc = napi_get_element(env, ToLocal(val), index, &res); in CompilerGetJSElement() local
410 if (UNLIKELY(NapiThrownGeneric(rc))) { in CompilerGetJSElement()
[all...]
H A Dintrinsics_api_impl.h110 auto rc = napi_get_element(env, jsVal, index, &result); in JSValueIndexedGetter() local
111 if (UNLIKELY(NapiThrownGeneric(rc))) { in JSValueIndexedGetter()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/hermes/
H A Dtest_js_hermes.py45 lambda o, e, rc: self._validate_compiler(rc, test_abc)
57 lambda o, e, rc: rc == 0
68 lambda o, e, rc: rc == 0
/arkcompiler/ets_runtime/ecmascript/platform/
H A Dmutex.h24 #define FATAL_IF_ERROR(f, rc) \
26 if (rc != 0) { \
27 LOG_ECMA(FATAL)<< f << " failed: " << rc; \
31 #define FATAL_IF_ERROR(f, rc) static_cast<void>(0)
/arkcompiler/runtime_core/panda/
H A Dpanda.cpp69 int rc = 0; in BlockSignals() local
71 rc += sigaddset(&set, SIGPIPE); in BlockSignals()
72 rc += sigaddset(&set, SIGQUIT); in BlockSignals()
73 rc += sigaddset(&set, SIGUSR1); in BlockSignals()
74 rc += sigaddset(&set, SIGUSR2); in BlockSignals()
76 if (rc < 0) { in BlockSignals()
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/
H A Dipc_unix_socket.cpp116 int rc = PANDA_FAILURE_RETRY(::poll(&pfd, 1, timeoutMs)); in WaitDataTimeout() local
117 if (rc == 1) { in WaitDataTimeout()
121 if (rc == -1) { in WaitDataTimeout()
126 if (rc == 0) { in WaitDataTimeout()
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dfile.h139 auto rc = _chsize(fd_, 0); in ClearData() local
140 if (rc < 0) { in ClearData()
148 auto rc = _lseek(fd_, 0, SEEK_SET); in ClearData() local
149 if (rc == -1) { in ClearData()
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dfile.h191 int rc = ftruncate(fd_, 0); in ClearData() local
192 if (rc < 0) { in ClearData()
200 off_t rc = lseek(fd_, 0, SEEK_SET); in ClearData() local
201 if (rc == static_cast<off_t>(-1)) { in ClearData()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dfile.h163 auto rc = _chsize(fd_, 0); in ClearData() local
164 if (rc < 0) { in ClearData()
172 auto rc = _lseek(fd_, 0, SEEK_SET); in ClearData() local
173 if (rc == -1) { in ClearData()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dtest_ets.py160 lambda o, e, rc: rc == 0 and path.exists(self.test_an) and path.getsize(self.test_an) > 0
169 lambda _, _2, rc: self._runtime_result_validator(rc))
259 result_validator=lambda _, _2, rc: self._validate_compiler(rc, test_abc)
296 result_validator=lambda _, _2, rc: rc == 0,
H A Dtest_sts_ts_subset.py151 result_validator=lambda _, _2, rc: self._runtime_result_validator(rc)
169 result_validator=lambda _, _2, rc: self._runtime_result_validator(rc)
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dfile.h181 int rc = ftruncate(fd_, 0); in ClearData() local
182 if (rc < 0) { in ClearData()
190 off_t rc = lseek(fd_, 0, SEEK_SET); in ClearData() local
191 if (rc == static_cast<off_t>(-1)) { in ClearData()
H A Dsighook.cpp59 int rc = os::memory::PandaThreadKeyCreate(&key, nullptr); in GetHandlingSignalKey() local
60 if (rc != 0) { in GetHandlingSignalKey()
61 LOG(FATAL, RUNTIME) << "failed to create sigchain thread key: " << os::Error(rc).ToString(); in GetHandlingSignalKey()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/
H A Dcall_js.cpp251 napi_status rc = napi_get_named_property(env, jsVal, name.c_str(), &jsVal); in ResolveQualifiedReceiverTarget()
252 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in ResolveQualifiedReceiverTarget()
330 napi_status rc = napi_get_property(env, jsVal, jsStr, &jsVal); in JSRuntimeCallJSBase()
331 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in JSRuntimeCallJSBase()
393 napi_status rc = napi_get_named_property(env, jsThis, methodName, &jsFn); in CallJSProxy() local
394 if (UNLIKELY(rc == napi_object_expected || NapiThrownGeneric(rc))) { in CallJSProxy()
/arkcompiler/runtime_core/static_core/verification/util/tests/
H A Dtagged_index_property_test.cpp50 namespace rc { namespace
145 } // namespace rc
150 using namespace rc;
/arkcompiler/ets_runtime/ecmascript/platform/unix/
H A Daot_crash_info.cpp43 int rc = syscall(SYS_rt_tgsigqueueinfo, getpid(), syscall(SYS_gettid), info->si_signo, info); in GetSignalHandler() local
44 if (rc != 0) { in GetSignalHandler()
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
H A DetsUnionType.cpp468 bool rc = false;
481 rc = true;
487 rc = true;
488 } else if (!rc && constituentType->IsETSObjectType()) {
508 if (rc) {
/arkcompiler/ets_frontend/ets2panda/checker/
H A DcheckerContext.h219 auto const rc = (status_ & (CheckerStatus::MEET_RETURN | CheckerStatus::MEET_BREAK | variable
223 return rc;
/arkcompiler/runtime_core/static_core/runtime/
H A Druntime.cpp1429 int rc = 0; in BlockSignals() local
1430 rc += sigaddset(&set, SIGPIPE); in BlockSignals()
1432 rc += sigaddset(&set, SIGQUIT); in BlockSignals()
1433 rc += sigaddset(&set, SIGUSR1); in BlockSignals()
1434 rc += sigaddset(&set, SIGUSR2); in BlockSignals()
1436 if (rc < 0) { in BlockSignals()

Completed in 17 milliseconds

12