/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | unique_fd_test.cpp | 40 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE); in HWTEST() 41 EXPECT_EQ(fd_b.Get(), dupDF.stdinValue); in HWTEST() 42 EXPECT_EQ(fd_c.Get(), dupDF.stdoutValue); in HWTEST() 43 EXPECT_EQ(fd_d.Get(), dupDF.stferrValue); in HWTEST() 50 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE); in HWTEST() 51 EXPECT_EQ(fd_b.Get(), DEFAULT_VALUE); in HWTEST() 52 EXPECT_EQ(fd_c.Get(), DEFAULT_VALUE); in HWTEST() 53 EXPECT_EQ(fd_d.Get(), DEFAULT_VALUE); in HWTEST() 54 EXPECT_EQ(fd_e.Get(), DEFAULT_VALUE); in HWTEST() 55 EXPECT_EQ(fd_f.Get(), dupD in HWTEST() [all...] |
H A D | json_parser_test.cpp | 65 ASSERT_NE(main_array[0].Get<JsonObject::StringT>(), nullptr); in HWTEST() 66 ASSERT_EQ(*main_array[0].Get<JsonObject::StringT>(), "elem0"); in HWTEST() 69 ASSERT_NE(main_array[1].Get<JsonObject::ArrayT>(), nullptr); in HWTEST() 70 auto &inner_array = *main_array[1].Get<JsonObject::ArrayT>(); in HWTEST() 72 ASSERT_NE(inner_array[0].Get<JsonObject::StringT>(), nullptr); in HWTEST() 73 ASSERT_EQ(*inner_array[0].Get<JsonObject::StringT>(), "elem1.0"); in HWTEST() 75 ASSERT_NE(inner_array[1].Get<JsonObject::StringT>(), nullptr); in HWTEST() 76 ASSERT_EQ(*inner_array[1].Get<JsonObject::StringT>(), "elem1.1"); in HWTEST() 79 ASSERT_NE(main_array[2].Get<JsonObject::StringT>(), nullptr); in HWTEST() 80 ASSERT_EQ(*main_array[2].Get<JsonObjec in HWTEST() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | unique_fd_test.cpp | 46 EXPECT_EQ(fdA.Get(), DEFAULT_VALUE); in TEST() 47 EXPECT_EQ(fdB.Get(), dupDf.stdinValue); in TEST() 48 EXPECT_EQ(fdC.Get(), dupDf.stdoutValue); in TEST() 49 EXPECT_EQ(fdD.Get(), dupDf.stferrValue); in TEST() 57 EXPECT_EQ(fdA.Get(), DEFAULT_VALUE); in TEST() 58 EXPECT_EQ(fdB.Get(), DEFAULT_VALUE); in TEST() 59 EXPECT_EQ(fdC.Get(), DEFAULT_VALUE); in TEST() 60 EXPECT_EQ(fdD.Get(), DEFAULT_VALUE); in TEST() 61 EXPECT_EQ(fdE.Get(), DEFAULT_VALUE); in TEST() 62 EXPECT_EQ(fdF.Get(), dupD in TEST() [all...] |
H A D | json_parser_test.cpp | 63 ASSERT_NE(mainArray[0U].Get<JsonObject::StringT>(), nullptr); in TEST() 64 ASSERT_EQ(*mainArray[0U].Get<JsonObject::StringT>(), "elem0"); in TEST() 67 ASSERT_NE(mainArray[1U].Get<JsonObject::ArrayT>(), nullptr); in TEST() 68 auto &innerArray = *mainArray[1U].Get<JsonObject::ArrayT>(); in TEST() 70 ASSERT_NE(innerArray[0U].Get<JsonObject::StringT>(), nullptr); in TEST() 71 ASSERT_EQ(*innerArray[0U].Get<JsonObject::StringT>(), "elem1.0"); in TEST() 73 ASSERT_NE(innerArray[1U].Get<JsonObject::StringT>(), nullptr); in TEST() 74 ASSERT_EQ(*innerArray[1U].Get<JsonObject::StringT>(), "elem1.1"); in TEST() 77 ASSERT_NE(mainArray[2U].Get<JsonObject::StringT>(), nullptr); in TEST() 78 ASSERT_EQ(*mainArray[2U].Get<JsonObjec in TEST() [all...] |
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | abc_file_processor.cpp | 153 auto res = value.Get<int8_t>(); in ScalarValueToString() 156 auto res = value.Get<uint8_t>(); in ScalarValueToString() 159 ss << value.Get<int16_t>(); in ScalarValueToString() 161 ss << value.Get<uint16_t>(); in ScalarValueToString() 163 ss << value.Get<int32_t>(); in ScalarValueToString() 165 ss << value.Get<uint32_t>(); in ScalarValueToString() 167 ss << value.Get<int64_t>(); in ScalarValueToString() 169 ss << value.Get<uint64_t>(); in ScalarValueToString() 171 ss << value.Get<float>(); in ScalarValueToString() 173 ss << value.Get<doubl in ScalarValueToString() [all...] |
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
H A D | profile_type_info_test.cpp | 140 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsWeak()); in HWTEST_F_L0() 141 EXPECT_EQ(handleProfileTypeInfo->Get(slotId + 1).GetInt(), 2); in HWTEST_F_L0() 147 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsTaggedArray()); in HWTEST_F_L0() 148 JSHandle<TaggedArray> resultArr1(thread, handleProfileTypeInfo->Get(slotId)); in HWTEST_F_L0() 150 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId + 1).IsHole()); in HWTEST_F_L0() 156 JSHandle<TaggedArray> resultArr2(thread, handleProfileTypeInfo->Get(slotId)); in HWTEST_F_L0() 158 EXPECT_EQ(resultArr2->Get(0).GetInt(), 2); in HWTEST_F_L0() 159 EXPECT_TRUE(resultArr2->Get(1).IsUndefined()); in HWTEST_F_L0() 160 EXPECT_TRUE(resultArr2->Get(2).IsWeak()); in HWTEST_F_L0() 161 EXPECT_EQ(resultArr2->Get( in HWTEST_F_L0() [all...] |
H A D | ic_invoke_test.cpp | 62 ASSERT_EQ(array->Get(thread, slotId), func.GetTaggedValue());
in HWTEST_F_L0() 63 ASSERT_EQ(array->Get(thread, slotId + 1), JSTaggedValue(123));
in HWTEST_F_L0() 91 JSTaggedValue slot = array->Get(thread, slotId);
in HWTEST_F_L0() 94 ASSERT_EQ(slotArray->Get(thread, 0), func0.GetTaggedValue());
in HWTEST_F_L0() 95 ASSERT_EQ(slotArray->Get(thread, 1), JSTaggedValue(123));
in HWTEST_F_L0() 96 ASSERT_EQ(slotArray->Get(thread, 2), func1.GetTaggedValue());
in HWTEST_F_L0() 97 ASSERT_EQ(slotArray->Get(thread, 3), JSTaggedValue(456));
in HWTEST_F_L0() 98 ASSERT_EQ(slotArray->Get(thread, 4), func2.GetTaggedValue());
in HWTEST_F_L0() 99 ASSERT_EQ(slotArray->Get(thread, 5), JSTaggedValue(789));
in HWTEST_F_L0() 100 ASSERT_EQ(array->Get(threa in HWTEST_F_L0() [all...] |
H A D | ic_runtime_test.cpp | 85 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsTaggedArray()); in HWTEST_F_L0() 86 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId + 1).IsHole()); in HWTEST_F_L0() 92 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsTaggedArray()); in HWTEST_F_L0() 93 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId + 1).IsHole()); in HWTEST_F_L0() 130 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsWeak()); in HWTEST_F_L0() 131 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId + 1).IsPrototypeHandler()); in HWTEST_F_L0() 141 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId).IsWeak()); in HWTEST_F_L0() 142 EXPECT_TRUE(handleProfileTypeInfo->Get(slotId + 1).IsTransitionHandler()); in HWTEST_F_L0() 180 EXPECT_TRUE(handleProfileTypeInfo->Get(0).IsHole()); in HWTEST_F_L0() 181 EXPECT_TRUE(handleProfileTypeInfo->Get( in HWTEST_F_L0() [all...] |
H A D | properties_cache_test.cpp | 53 * one is string and the other is symbol, and then check whether it is correct through the "Get" function. 73 EXPECT_EQ(handleProCache->Get(FuncHClass, handleStrKey.GetTaggedValue()), i); in HWTEST_F_L0() 75 EXPECT_EQ(handleProCache->Get(FuncHClass, handleKey10.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0() 80 EXPECT_EQ(handleProCache->Get(FuncHClass, handleSymbol.GetTaggedValue()), i); in HWTEST_F_L0() 83 EXPECT_EQ(handleProCache->Get(FuncHClass, handleSymbol.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0() 105 EXPECT_EQ(handleProCache->Get(FuncHClass, handleKey.GetTaggedValue()), 10); in HWTEST_F_L0() 107 EXPECT_EQ(handleProCache->Get(FuncHClass, handleKey.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | property_attributes.h | 156 return PropertyMetaDataField::Get(value_); in GetPropertyMetaData() 211 return AttributesField::Get(value_) == static_cast<int32_t>(DefaultAttributesField::Mask()); in IsDefaultAttributes() 221 return AttributesField::Get(value_) == 0; in IsNoneAttributes() 230 return WritableField::Get(value_); in IsWritable() 238 return EnumerableField::Get(value_); in IsEnumerable() 246 return ConfigurableField::Get(value_); in IsConfigurable() 256 return IsAccessorField::Get(value_); in IsAccessor() 266 return IsInlinedPropsField::Get(value_); in IsInlinedProps() 276 return IsConstPropsField::Get(value_); in IsConstProps() 286 return IsNotHoleField::Get(value in IsNotHole() [all...] |
H A D | tagged_array.cpp | 25 JSTaggedValue TaggedArray::Get([[maybe_unused]] const JSThread *thread, uint32_t idx) const in Get() function in panda::ecmascript::TaggedArray 27 return Get(idx); in Get() 35 if (JSTaggedValue::SameValue(Get(i), value)) { in GetIdx() 45 JSTaggedType element = Get(idx).GetRawData(); in GetBit() 53 JSTaggedType element = Get(idx).GetRawData(); in SetBit() 72 argument->Set(thread, index, first->Get(index)); 75 argument->Set(thread, index, second->Get(index - firstLength)); 91 JSTaggedValue val = first->Get(index); in AppendSkipHole() 99 JSTaggedValue val = second->Get(i); in AppendSkipHole() 114 if (JSTaggedValue::SameValue(Get( in HasDuplicateEntry() [all...] |
H A D | tagged_queue.h | 39 JSTaggedValue value = Get(start); in Pop() 79 newQueue->Set(thread, newEnd, queue->Get(i)); in Push() 116 return JSTaggedValue(Get(start)); in Front() 124 return JSTaggedValue(Get(GetEnd().GetArrayLength() - 1)); in Back() 138 inline JSTaggedValue Get(uint32_t index) const in Get() function in panda::ecmascript::TaggedQueue 140 return TaggedArray::Get(QueueToArrayIndex(index)); in Get() 170 return TaggedArray::Get(CAPACITY_INDEX); in GetCapacity() 180 return TaggedArray::Get(START_INDEX); in GetStart() 190 return TaggedArray::Get(END_INDEX); in GetEnd()
|
H A D | js_thread_stub_entries.h | 49 Address Get(size_t index) const 70 Address Get(size_t index) const 91 Address Get(size_t index) const 113 Address Get(size_t index) const 142 Address Get(size_t index) const 162 Address Get(size_t index) const
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | json_object_matcher.cpp | 22 if (auto *string = value.Get<JsonObject::StringT>()) { in operator <<() 25 if (auto *number = value.Get<JsonObject::NumT>()) { in operator <<() 28 if (auto *boolean = value.Get<JsonObject::BoolT>()) { in operator <<() 31 if (auto *array = value.Get<JsonObject::ArrayT>()) { in operator <<() 34 if (auto *object = value.Get<JsonObject::JsonObjPointer>()) { in operator <<()
|
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | optional_ref.h | 49 const T &Get() const in Get() function 57 return Get(); in operator *() 62 return &Get(); in AsPointer() 72 return Get(); in AsWrapper() 100 using OptionalConstRef<T>::Get; 111 T &Get() in Get() function 119 return Get(); in operator *() 124 return &Get(); in AsPointer() 134 return Get(); in AsWrapper()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | sort_helper.cpp | 65 JSMutableHandle<JSTaggedValue> runHiValue(thread, array->Get(runHi)); in CountRunAndMakeAscending() 66 JSMutableHandle<JSTaggedValue> previousValue(thread, array->Get(runHi - 1)); in CountRunAndMakeAscending() 71 runHiValue.Update(array->Get(i)); in CountRunAndMakeAscending() 94 elementLow.Update(array->Get(low)); 95 elementHigh.Update(array->Get(high)); 114 pivotVal.Update(array->Get(right)); 118 midVal.Update(array->Get(mid)); 128 tmpVal.Update(array->Get(p - 1)); 185 JSHandle<JSTaggedValue> key1(thread_, elements_->Get(base2)); 193 JSHandle<JSTaggedValue> key2(thread_, elements_->Get(base [all...] |
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_sendable_tests.cpp | 193 ASSERT_EQ("static", constructor->Get(vm_, staticKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 194 ASSERT_EQ("nonStatic", prototype->Get(vm_, nonStaticKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 195 ASSERT_EQ("undefined", constructor->Get(vm_, invalidKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 196 ASSERT_EQ("undefined", prototype->Get(vm_, invalidKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 200 ASSERT_EQ("static0", constructor->Get(vm_, staticKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 204 ASSERT_EQ("nonStatic0", prototype->Get(vm_, nonStaticKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 211 ASSERT_EQ("undefined", constructor->Get(vm_, invalidKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 218 ASSERT_EQ("undefined", prototype->Get(vm_, invalidKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 227 ASSERT_EQ("static", constructor->Get(vm_, staticKey)->ToString(vm_)->ToString(vm_)); in HWTEST_F_L0() 228 ASSERT_EQ("nonStatic", prototype->Get(vm in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | tagged_array_test.cpp | 45 EXPECT_TRUE(taggedArray->Get(i).IsHole()); in HWTEST_F_L0() 90 EXPECT_EQ(appendArray->Get(0), newObj1.GetTaggedValue()); in HWTEST_F_L0() 91 EXPECT_EQ(appendArray->Get(2), objValue); // 2: the second index in HWTEST_F_L0() 92 EXPECT_EQ(appendArray->Get(1), appendArray->Get(3)); // 3: the third index in HWTEST_F_L0() 113 EXPECT_EQ(appendArray->Get(0), appendArray->Get(1)); in HWTEST_F_L0() 114 EXPECT_TRUE(appendArray->Get(2).IsUndefined()); // 2: the second index in HWTEST_F_L0() 115 EXPECT_TRUE(appendArray->Get(3).IsHole()); // 3: the third index in HWTEST_F_L0() 116 EXPECT_TRUE(appendArray->Get( in HWTEST_F_L0() [all...] |
H A D | barrier_test.cpp | 66 EXPECT_EQ(dstArray->Get(thread, i), srcArray->Get(thread, i)); in HWTEST_F_L0() 108 EXPECT_EQ(dstArray->Get(thread, i), srcArray->Get(thread, i)); in HWTEST_F_L0() 118 EXPECT_EQ(dstArray2->Get(thread, i), srcArray->Get(thread, i)); in HWTEST_F_L0() 174 EXPECT_EQ(dstArray->Get(thread, i), srcArray->Get(thread, i)); in HWTEST_F_L0() 224 EXPECT_EQ(dstArray->Get(thread, i), srcArray->Get(threa in HWTEST_F_L0() [all...] |
H A D | object_factory_test.cpp | 180 EXPECT_EQ(copiedShort->Get(thread, i), shortTaggedarray->Get(thread, i)); in HWTEST_F_L0() 181 EXPECT_EQ(copiedLong->Get(thread, i), shortTaggedarray->Get(thread, i)); in HWTEST_F_L0() 184 EXPECT_EQ(copiedLong->Get(thread, i), JSTaggedValue::Hole()); in HWTEST_F_L0() 206 EXPECT_EQ(copiedShort->Get(thread, i), shortTaggedarray->Get(thread, i)); in HWTEST_F_L0() 207 EXPECT_EQ(copiedLong->Get(thread, i), shortTaggedarray->Get(thread, i)); in HWTEST_F_L0() 210 EXPECT_EQ(copiedLong->Get(threa in HWTEST_F_L0() [all...] |
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | pipe.cpp | 45 int res = fcntl(fd.Get(), F_GETFL, 0); in SetFdNonblocking() 52 return fcntl(fd.Get(), F_SETFL, flags | O_NONBLOCK); in SetFdNonblocking() 61 ssize_t bytesRead = PANDA_FAILURE_RETRY(read(pipeFd.Get(), buf, size)); in ReadFromPipe() 70 ssize_t bytesWritten = PANDA_FAILURE_RETRY(write(pipeFd.Get(), buf, size)); in WriteToPipe() 92 pollfds[i].fd = handles[i].Get(); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in WaitForEvent() 115 if (PANDA_FAILURE_RETRY(dup2(source.Get(), target.Get())) == -1) { in Dup2()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_shared_memory-inl.h | 31 return reinterpret_cast<EtsByteArray *>(obj)->Get(index); in GetElement() 33 return reinterpret_cast<EtsShortArray *>(obj)->Get(index); in GetElement() 35 return reinterpret_cast<EtsIntArray *>(obj)->Get(index); in GetElement() 37 return reinterpret_cast<EtsLongArray *>(obj)->Get(index); in GetElement() 39 return reinterpret_cast<EtsBooleanArray *>(obj)->Get(index); in GetElement() 41 return reinterpret_cast<EtsCharArray *>(obj)->Get(index); in GetElement() 43 return reinterpret_cast<EtsUintArray *>(obj)->Get(index); in GetElement() 45 return reinterpret_cast<EtsUlongArray *>(obj)->Get(index); in GetElement()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | share_gate_meta_data.h | 404 return static_cast<ValueType>(LeftBits::Get(bitField_)); in GetSrcType() 409 return static_cast<ValueType>(RightBits::Get(bitField_)); in GetDstType() 414 return ConvertSupportBits::Get(bitField_) == ConvertSupport::ENABLE; in IsConvertSupport() 440 return ParamType(LeftBits::Get(bitField_)); in GetLeftType() 445 return GateType(RightBits::Get(bitField_)); in GetRightType() 472 return FirstBits::Get(bitField_); in GetFirstValue() 477 return SecondBits::Get(bitField_); in GetSecondValue() 514 return RegionSpaceFlagBits::Get(bitField_); in GetRegionSpaceFlag() 519 return ElementsKindBits::Get(bitField_); in GetElementsKind() 524 return ModeBits::Get(bitField in GetMode() [all...] |
H A D | mcr_gate_meta_data.h | 225 return NeedPushArgvBit::Get(bitField_); in NeedPushArgv() 247 return ParamType(TypedValueBits::Get(bitField_)); in GetParamType() 252 return TypedUnOpBits::Get(bitField_); in GetTypedUnOp() 275 return ParamType(TypedValueBits::Get(bitField_)); in GetParamType() 280 return TypedBinOpBits::Get(bitField_); in GetTypedBinOp() 303 return CallTargetCheckOpBits::Get(bitField_); in GetCallTargetCheckOp() 325 return TrueWeightBits::Get(bitField_); in GetTrueWeight() 330 return FalseWeightBits::Get(bitField_); in GetFalseWeight() 410 return BarrierField::Get(value_); in GetBarrier() 420 return ShareField::Get(value in GetShare() [all...] |
/arkcompiler/ets_runtime/ecmascript/js_api/ |
H A D | js_api_lightweightset.cpp | 61 JSTaggedValue JSAPILightWeightSet::Get(const uint32_t index) in Get() function in panda::ecmascript::JSAPILightWeightSet 64 return valueArray->Get(index); in Get() 86 if (index < size && (JSTaggedValue::SameValue(valueArray->Get(index), value.GetTaggedValue()))) { in GetHashIndex() 91 while (right < size && (hashArray->Get(right).GetNumber() == hashCode)) { in GetHashIndex() 92 if (JSTaggedValue::SameValue(valueArray->Get(right), value.GetTaggedValue())) { in GetHashIndex() 98 while (left >= 0 && ((hashArray->Get(left).GetNumber() == hashCode))) { in GetHashIndex() 99 if (JSTaggedValue::SameValue(valueArray->Get(left), value.GetTaggedValue())) { in GetHashIndex() 114 uint32_t midVal = (uint32_t)(hashArray->Get(static_cast<uint32_t>(mid)).GetNumber()); in BinarySearchHashes() 183 return values->Get(index); in GetValueAt() 193 return values->Get(inde in GetHashAt() [all...] |