Home
last modified time | relevance | path

Searched refs:success (Results 1 – 25 of 33) sorted by relevance

12

/ark/js_runtime/ecmascript/ic/
Dic_runtime.cpp178 bool success = JSTaggedValue::SetProperty(GetThread(), receiver, key, value, true); in StoreMiss() local
179 return success ? JSTaggedValue::Undefined() : JSTaggedValue::Exception(); in StoreMiss()
196 bool success = JSObject::SetProperty(&op, value, true); in StoreMiss() local
197 if (!success && GetICKind() == ICKind::NamedGlobalStoreIC) { in StoreMiss()
203 return success ? JSTaggedValue::Undefined() : JSTaggedValue::Exception(); in StoreMiss()
209 return success ? JSTaggedValue::Undefined() : JSTaggedValue::Exception(); in StoreMiss()
211 if (success) { in StoreMiss()
/ark/js_runtime/ecmascript/
Djs_tagged_value.cpp550 bool success = false; in SetProperty() local
552 success = JSProxy::SetProperty(thread, JSHandle<JSProxy>(obj), key, value, mayThrow); in SetProperty()
554success = JSTypedArray::SetProperty(thread, obj, JSTypedArray::ToPropKey(thread, key), value, mayT… in SetProperty()
556 success = JSObject::SetProperty(thread, obj, key, value, mayThrow); in SetProperty()
559 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, success); in SetProperty()
562 return success; in SetProperty()
573 bool success = false; in SetProperty() local
576 success = JSProxy::SetProperty(thread, JSHandle<JSProxy>(obj), keyHandle, value, mayThrow); in SetProperty()
579 success = JSTypedArray::SetProperty( in SetProperty()
582 success = JSObject::SetProperty(thread, obj, key, value, mayThrow); in SetProperty()
[all …]
Djs_array.cpp242 [[maybe_unused]] bool success = GetOwnProperty(thread, array, lengthKeyHandle, oldLenDesc); in ArraySetLength() local
244 ASSERT(success); in ArraySetLength()
283 success = JSObject::DefineOwnProperty(thread, array, lengthKeyHandle, readonly); in ArraySetLength()
284 ASSERT_PRINT(success, "DefineOwnProperty of length must be success here!"); in ArraySetLength()
311 bool success = JSObject::OrdinaryDefineOwnProperty(thread, array, key, desc); in DefineOwnProperty() local
312 if (success) { in DefineOwnProperty()
319 return success; in DefineOwnProperty()
Djs_object.cpp870 bool success = false; in ValidateAndApplyPropertyDescriptor() local
872 success = op->AddPropertyInHolder(desc.GetValue(), attr); in ValidateAndApplyPropertyDescriptor()
884 success = op->AddPropertyInHolder(JSHandle<JSTaggedValue>::Cast(accessor), attr); in ValidateAndApplyPropertyDescriptor()
887 return success; in ValidateAndApplyPropertyDescriptor()
1130 bool success = CreateDataProperty(thread, obj, key, value); in CreateDataPropertyOrThrow() local
1131 if (!success) { in CreateDataPropertyOrThrow()
1132 THROW_TYPE_ERROR_AND_RETURN(thread, "failed to create data property", success); in CreateDataPropertyOrThrow()
1134 return success; in CreateDataPropertyOrThrow()
1142 bool success = CreateDataProperty(thread, obj, index, value); in CreateDataPropertyOrThrow() local
1143 if (!success) { in CreateDataPropertyOrThrow()
[all …]
Djs_function.cpp66 … [[maybe_unused]] bool success = JSObject::DefineOwnProperty(thread, JSHandle<JSObject>(func), in InitializeJSFunction() local
68 ASSERT(success); in InitializeJSFunction()
/ark/js_runtime/ecmascript/tests/
Dtagged_tree_test.cpp354 bool success = tmap->HasValue(thread, value.GetTaggedValue()); in HWTEST_F_L0() local
355 EXPECT_TRUE(success); in HWTEST_F_L0()
858 bool success = IsVaildRBTree<TaggedTreeMap>(thread, tmap, tmap->GetRootEntries()); in HWTEST_F_L0() local
859 EXPECT_TRUE(success); in HWTEST_F_L0()
867 bool success = IsVaildRBTree<TaggedTreeMap>(thread, tmap, tmap->GetRootEntries()); in HWTEST_F_L0() local
868 EXPECT_TRUE(success); in HWTEST_F_L0()
877 bool success = IsVaildRBTree<TaggedTreeSet>(thread, tset, tset->GetRootEntries()); in HWTEST_F_L0() local
878 EXPECT_TRUE(success); in HWTEST_F_L0()
884 bool success = IsVaildRBTree<TaggedTreeSet>(thread, tset, tset->GetRootEntries()); in HWTEST_F_L0() local
885 EXPECT_TRUE(success); in HWTEST_F_L0()
[all …]
Djs_serializer_test.cpp63 [[maybe_unused]] bool success = EcmaVM::Destroy(ecmaVm); in Destroy() local
64 EXPECT_TRUE(success) << "Cannot destroy Runtime"; in Destroy()
656 bool success = serializer->SerializeJSTaggedValue(JSHandle<JSTaggedValue>::Cast(obj)); in HWTEST_F_L0() local
657 EXPECT_TRUE(success); in HWTEST_F_L0()
694 bool success = serializer->SerializeJSTaggedValue(JSHandle<JSTaggedValue>::Cast(set)); in HWTEST_F_L0() local
695 EXPECT_TRUE(success); in HWTEST_F_L0()
726 bool success = serializer->SerializeJSTaggedValue(JSHandle<JSTaggedValue>::Cast(array)); in HWTEST_F_L0() local
727 EXPECT_TRUE(success); in HWTEST_F_L0()
776 bool success = serializer->SerializeJSTaggedValue(JSHandle<JSTaggedValue>(ecmaString)); in HWTEST_F_L0() local
777 EXPECT_TRUE(success) << "Serialize EcmaString fail"; in HWTEST_F_L0()
[all …]
Dgc_test.cpp48 [[maybe_unused]] bool success = Runtime::Create(options, {&lcEcma}); in SetUp() local
49 ASSERT_TRUE(success) << "Cannot create Runtime"; in SetUp()
Djs_object_test.cpp241 bool success = JSObject::CreateDataProperty(thread, obj, key, value); in HWTEST_F_L0() local
242 EXPECT_TRUE(success); in HWTEST_F_L0()
244 success = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in HWTEST_F_L0()
245 EXPECT_TRUE(success); in HWTEST_F_L0()
248 success = JSObject::GetOwnProperty(thread, obj, key, desc); in HWTEST_F_L0()
249 EXPECT_TRUE(success); in HWTEST_F_L0()
266 bool success = JSObject::CreateMethodProperty(thread, obj, key, value); in HWTEST_F_L0() local
267 EXPECT_TRUE(success); in HWTEST_F_L0()
269 success = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in HWTEST_F_L0()
270 EXPECT_TRUE(success); in HWTEST_F_L0()
[all …]
Dconcurrent_marking_test.cpp48 [[maybe_unused]] bool success = Runtime::Create(options, {&lcEcma}); in SetUp() local
49 ASSERT_TRUE(success) << "Cannot create Runtime"; in SetUp()
Dtest_helper.h101 [[maybe_unused]] bool success = Runtime::Create(options, {&lcEcma}); variable
102 ASSERT_TRUE(success) << "Cannot create Runtime";
Djs_api_tree_set_test.cpp142 bool success = JSAPITreeSet::Delete(thread, tset, key); in HWTEST_F_L0() local
143 EXPECT_EQ(success, true); in HWTEST_F_L0()
268 bool success = JSAPITreeSet::Delete(thread, tset, key); in HWTEST_F_L0() local
269 EXPECT_EQ(success, true); in HWTEST_F_L0()
Djs_api_tree_map_test.cpp210 bool success = JSAPITreeMap::Replace(thread, tmap, key, value); in HWTEST_F_L0() local
211 EXPECT_EQ(success, true); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/snapshot/tests/
Dsnapshot_test.cpp62 [[maybe_unused]] bool success = EcmaVM::Destroy(ecmaVm); in TearDown() local
63 ASSERT_TRUE(success) << "Cannot destroy Runtime"; in TearDown()
/ark/runtime_core/runtime/tests/
Dmem_stats_gc_test.cpp40 bool success = Runtime::Create(options); in SetupRuntime() local
41 ASSERT_TRUE(success) << "Cannot create Runtime"; in SetupRuntime()
52 bool success = Runtime::Destroy(); in TearDown() local
53 ASSERT_TRUE(success) << "Cannot destroy Runtime"; in TearDown()
/ark/runtime_core/libziparchive/
Dzip_archive.cpp165 int success = ZIPARCHIVE_OK; in CreateOrAddFileIntoZip() local
175 success = ZIPARCHIVE_ERR; in CreateOrAddFileIntoZip()
185 return success; in CreateOrAddFileIntoZip()
/ark/runtime_core/runtime/include/
Dobject_accessor-inl.h268 bool success = false; in CompareAndSetFieldObject() local
274 success = value.first; in CompareAndSetFieldObject()
279 success = value.first; in CompareAndSetFieldObject()
291 if (success && !mem::IsEmptyBarrier(barrier_set->GetPostType())) { in CompareAndSetFieldObject()
294 return {success, result}; in CompareAndSetFieldObject()
298 return {success, result}; in CompareAndSetFieldObject()
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_json.cpp69 bool success = JSObject::CreateDataProperty(thread, root, rootName, result); in Parse() local
70 if (success) { in Parse()
Dbuiltins_object.cpp106 …bool success = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(from), key, des… in Assign() local
110 if (success && desc.IsEnumerable()) { in Assign()
173 …bool success = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(props), handleK… in ObjectDefineProperties() local
177 if (success && propDesc.IsEnumerable()) { in ObjectDefineProperties()
274 [[maybe_unused]] bool success = JSTaggedValue::DefinePropertyOrThrow(thread, obj, key, desc); in DefineProperty() local
/ark/js_runtime/ecmascript/tooling/backend/
Djs_debugger.cpp41 auto [_, success] = breakpoints_.emplace(method, location.GetBytecodeOffset(), in SetBreakpoint()
43 if (!success) { in SetBreakpoint()
/ark/js_runtime/test/moduletest/weaktransitions/
Dexpect_output.txt14 success
/ark/runtime_core/libpandabase/os/unix/futex/
Dmutex.cpp527 …bool success = futex(GetCondAddr(), FUTEX_REQUEUE_PRIVATE, 0, reinterpret_cast<const timespec *>(t… in SignalCount() local
529 if (!success) { in SignalCount()
/ark/runtime_core/libpandabase/utils/
Dpandargs.h176 bool success = args_.insert(arg).second; in Add() local
177 if (!success) { in Add()
180 return success; in Add()
/ark/js_runtime/ecmascript/containers/
Dcontainers_treemap.cpp273 bool success = JSAPITreeMap::Replace(thread, map, key, value); in Replace() local
275 return GetTaggedBoolean(success); in Replace()
/ark/runtime_core/runtime/
Dmonitor.cpp626 [[maybe_unused]] bool success = this->SetOwner(thread, nullptr); in Acquire() local
627 ASSERT(success); in Acquire()

12