Home
last modified time | relevance | path

Searched refs:words (Results 1 - 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/test/fuzztest/getwordsarray_fuzzer/
H A Dgetwordsarray_fuzzer.cpp40 uint64_t *words = new uint64_t[wordsNum](); in GetWordsArrayFuzzTest() local
41 if (memcpy_s(words, size, data, size) != EOK) { in GetWordsArrayFuzzTest()
45 Local<JSValueRef> bigWordsValue = BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in GetWordsArrayFuzzTest()
47 bigWords->GetWordsArray(vm, &sign, wordsNum, words); in GetWordsArrayFuzzTest()
48 delete[] words; in GetWordsArrayFuzzTest()
49 words = nullptr; in GetWordsArrayFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/createbigwords_fuzzer/
H A Dcreatebigwords_fuzzer.cpp40 uint64_t *words = new uint64_t[wordsNum](); in CreateBigWordsFuzzTest() local
41 if (memcpy_s(words, size, data, size) != EOK) { in CreateBigWordsFuzzTest()
45 BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in CreateBigWordsFuzzTest()
46 delete[] words; in CreateBigWordsFuzzTest()
47 words = nullptr; in CreateBigWordsFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/bigintrefgetwordsarraysize_fuzzer/
H A Dbigintrefgetwordsarraysize_fuzzer.cpp44 uint64_t *words = new uint64_t[wordsNum](); in BigIntRefGetWordsArraySize() local
45 if (memcpy_s(words, MAXBYTELEN, data, size) != EOK) { in BigIntRefGetWordsArraySize()
48 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm, sign, wordsNum, words); in BigIntRefGetWordsArraySize()
51 delete[] words; in BigIntRefGetWordsArraySize()
52 words = nullptr; in BigIntRefGetWordsArraySize()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dgc_bitset.h77 GCBitsetWord *words = Words(); in Clear() local
80 words[i] = 0; in Clear()
86 GCBitsetWord *words = Words(); in SetAllBits() local
90 words[i] = ~mask; in SetAllBits()
107 GCBitsetWord *words = Words(); in ClearBitRange() local
118 words[startIndex] = 0; in ClearBitRange()
133 auto words = Words(); in IterateMarkedBits() local
137 uint32_t word = words[i]; in IterateMarkedBits()
153 auto words = Words();
157 uint32_t word = words[
[all...]
H A Djit_fort.cpp287 auto words = Words(); in IterateMarkedBitsConst() local
291 uint32_t word = words[i]; in IterateMarkedBitsConst()
/arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/
H A DfindIndex.js49 const words = ["spray", "limit", "limits"];
50 const deleteWords = words.findIndex((word, index, arr) => {
55 print(words.length);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Dinterop_common.cpp50 SmallVector<uint64_t, 4U> words; in GetBigInt() local
54 words.resize(1); in GetBigInt()
55 NAPI_ASSERT_OK(napi_get_value_bigint_uint64(env, jsVal, &words[0], &lossless)); in GetBigInt()
57 words.resize(wordCount); in GetBigInt()
58 NAPI_ASSERT_OK(napi_get_value_bigint_words(env, jsVal, &signBit, &wordCount, words.data())); in GetBigInt()
61 return {words, signBit}; in GetBigInt()
H A Djs_value.cpp162 auto [words, signBit] = *GetBigInt(); in GetNapiValue()
163 NAPI_ASSERT_OK(napi_create_bigint_words(env, signBit, words.size(), words.data(), &jsValue)); in GetNapiValue()
H A Djs_convert.h333 auto [words, signBit] = GetBigInt(env, jsVal); in JSCONVERT_UNWRAP()
334 std::vector<EtsInt> array = ConvertBigIntArrayFromJsToEts(words, signBit); in JSCONVERT_UNWRAP()
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
H A Darrayfind.js66 const words = ["spray", "limit", "limits"];
67 const deleteWords = words.find((word, index, arr) => {
73 console.log(words.length);
/arkcompiler/runtime_core/static_core/templates/
H A Dmessages.rb57 words = []
63 words << word
66 words
/arkcompiler/runtime_core/templates/
H A Dmessages.rb57 words = []
63 words << word
66 words
/arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/
H A DarrayFilterCase.js16 const words = ['spray', 'elite', 'exuberant', 'destruction', 'present'];
18 const result = words.filter((word) => word.length > 6);
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_vector.h439 size_t words = GetWordIndex(last_index); in PopCount() local
441 for (size_t i = 0; i < words; i++) { in PopCount()
445 res += Popcount(storage_[words] & ((1U << offset) - 1)); in PopCount()
550 size_t words = RoundUp(bits, WORD_BITS) / WORD_BITS; in EnsureSpace() local
551 if (words > storage_.size()) { in EnsureSpace()
555 storage_.resize(std::max(storage_.size() * GROW_MULTIPLIER, words)); in EnsureSpace()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dbit_vector.h458 size_t words = GetWordIndex(lastIndex); in PopCount() local
460 for (size_t i = 0; i < words; i++) { in PopCount()
464 res += Popcount(storage_[words] & ((1U << offset) - 1)); in PopCount()
586 size_t words = RoundUp(bits, WORD_BITS) / WORD_BITS; in EnsureSpace() local
587 if (words > storage_.size()) { in EnsureSpace()
591 storage_.resize(std::max(storage_.size() * GROW_MULTIPLIER, words)); in EnsureSpace()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_bigint_test.cpp517 void GetWordsArray(bool *signBit, size_t wordCount, uint64_t *words, JSHandle<BigInt> bigintVal) in GetWordsArray() argument
523 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()
524 words[index] |= static_cast<uint64_t>(bigintVal->GetDigit(count++)) << 32; // 32 : int32_t bits in GetWordsArray()
527 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()
528 words[index] |= static_cast<uint64_t>(bigintVal->GetDigit(count++)) << 32; // 32 : int32_t bits in GetWordsArray()
530 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()
544 uint64_t words[] = { 0xFFFFFFFFFFFFFFFF, 34ULL, 56ULL, 0xFFFFFFFFFFFFFFFF }; in HWTEST_F_L0() local
545 JSHandle<BigInt> bigintFalse = BigInt::CreateBigWords(thread, false, wordCount, words); in HWTEST_F_L0()
551 EXPECT_TRUE(words[i] == wordsOut[i]); in HWTEST_F_L0()
554 JSHandle<BigInt> bigintTrue = BigInt::CreateBigWords(thread, true, wordCount, words); in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/
H A Denumerate_napi.h112 FN_MACRO(napi_create_bigint_words, napi_env, env, int, sign_bit, size_t, word_count, const uint64_t *, words, \
116 uint64_t *, words) \
/arkcompiler/runtime_core/static_core/verification/util/
H A Dbit_vector.h390 size_t words = SizeInWordsFromSizeInBits(sz);
393 for (; pos < words; ++pos) {
/arkcompiler/ets_runtime/ecmascript/
H A Djs_bigint.h114 static JSHandle<BigInt> CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t* words);
H A Djs_bigint.cpp664 JSHandle<BigInt> BigInt::CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t *words) in CreateBigWords() argument
666 ASSERT(words != nullptr); in CreateBigWords()
679 uint32_t lowBits = static_cast<uint32_t>(words[index] & 0xffffffff); in CreateBigWords()
680 uint32_t highBits = static_cast<uint32_t>((words[index] >> DATEBITS) & 0xffffffff); in CreateBigWords()
/arkcompiler/ets_runtime/test/moduletest/elements_kind/
H A Delements_kind.js1410 const words = ['spray', 'elite', 'exuberant', 'destruction', 'present'];
1411 const result = words.filter((word) => word.length > 6);
/arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/
H A Delements_kind_generic.js1403 const words = ['spray', 'elite', 'exuberant', 'destruction', 'present'];
1404 const result = words.filter((word) => word.length > 6);
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Djsnapi_first_tests.cpp1584 const uint64_t words[3] = { in HWTEST_F_L0() local
1589 Local<JSValueRef> bigWords = BigIntRef::CreateBigWords(vm_, sign, size, words); in HWTEST_F_L0()
1600 uint64_t *resultWords = new uint64_t[3](); // 3 : length of words array in HWTEST_F_L0()
1603 EXPECT_EQ(resultWords[0], words[0]); in HWTEST_F_L0()
1604 EXPECT_EQ(resultWords[1], words[1]); in HWTEST_F_L0()
1605 EXPECT_EQ(resultWords[2], words[2]); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/moduletest/array/
H A Darray.js1168 const words = ["apple", "banana", "pear", "orange"];
1169 const longWords = words.filter(word => word.length >= 5);
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp2279 Local<JSValueRef> BigIntRef::CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t* words) in CreateBigWords() argument
2285 JSHandle<BigInt> big = BigInt::CreateBigWords(thread, sign, size, words); in CreateBigWords()
2312 void BigIntRef::GetWordsArray(const EcmaVM *vm, bool* signBit, size_t wordCount, uint64_t* words) in GetWordsArray() argument
2322 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()
2323 words[index] |= static_cast<uint64_t>(bigintVal->GetDigit(count++)) << 32; // 32 : int32_t bits in GetWordsArray()
2326 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()
2327 words[index] |= static_cast<uint64_t>(bigintVal->GetDigit(count++)) << 32; // 32 : int32_t bits in GetWordsArray()
2329 words[index] = static_cast<uint64_t>(bigintVal->GetDigit(count++)); in GetWordsArray()

Completed in 35 milliseconds

12