/arkcompiler/ets_runtime/test/fuzztest/getwordsarray_fuzzer/ |
H A D | getwordsarray_fuzzer.cpp | 40 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 D | createbigwords_fuzzer.cpp | 40 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 D | bigintrefgetwordsarraysize_fuzzer.cpp | 44 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 D | gc_bitset.h | 77 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 D | jit_fort.cpp | 287 auto words = Words(); in IterateMarkedBitsConst() local 291 uint32_t word = words[i]; in IterateMarkedBitsConst()
|
/arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/ |
H A D | findIndex.js | 49 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 D | interop_common.cpp | 50 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 D | js_value.cpp | 162 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 D | js_convert.h | 333 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 D | arrayfind.js | 66 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 D | messages.rb | 57 words = [] 63 words << word 66 words
|
/arkcompiler/runtime_core/templates/ |
H A D | messages.rb | 57 words = [] 63 words << word 66 words
|
/arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/ |
H A D | arrayFilterCase.js | 16 const words = ['spray', 'elite', 'exuberant', 'destruction', 'present']; 18 const result = words.filter((word) => word.length > 6);
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | bit_vector.h | 439 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 D | bit_vector.h | 458 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 D | js_bigint_test.cpp | 517 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 D | enumerate_napi.h | 112 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 D | bit_vector.h | 390 size_t words = SizeInWordsFromSizeInBits(sz); 393 for (; pos < words; ++pos) {
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_bigint.h | 114 static JSHandle<BigInt> CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t* words);
|
H A D | js_bigint.cpp | 664 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 D | elements_kind.js | 1410 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 D | elements_kind_generic.js | 1403 const words = ['spray', 'elite', 'exuberant', 'destruction', 'present']; 1404 const result = words.filter((word) => word.length > 6);
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_first_tests.cpp | 1584 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 D | array.js | 1168 const words = ["apple", "banana", "pear", "orange"]; 1169 const longWords = words.filter(word => word.length >= 5);
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi_expo.cpp | 2279 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()
|