| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | sourceLocation.h | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 48 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 51 // NOLINTEND(misc-non-private-member-variables-in-classes) 67 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 70 // NOLINTEND(misc-non-private-member-variables-in-classes) 83 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 86 // NOLINTEND(misc-non-private-member-variables-in-classes) 94 class Range { 96 explicit Range(size_t bS) noexcept : byteSize(bS) {} in Range() function [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_jump_range_tests.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 22 #include "bytecode_instruction-inl.h" 29 // jmp -22 in TEST() 35 // a non-jump instruction in TEST() 51 // a non-range instruction in TEST() 60 // a non-range instruction in TEST()
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/lsp/ |
| D | lsp_api_test.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 35 return s->state; in ContextState() 42 auto ast = reinterpret_cast<Ast *>(ctx->parserProgram->Ast()); in GetAstFromContext() 64 Range CreateTestRange() in CreateTestRange() 69 return Range(start, end); in CreateTestRange() 79 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 80 Range range_; 82 // NOLINTEND(misc-non-private-member-variables-in-classes)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/LinkedList/ |
| D | LinkedListGetFirstLastTest.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 21 …suite.addTest("LinkedList getFirst when the container is non-empty", testGetFirstNonEmptyContainer… 24 … suite.addTest("LinkedList getLast when the container is non-empty", testGetLastNonEmptyContainer); 55 assertTrue(e instanceof RangeError, "Throw error when out of range"); 58 assertFalse(false, "Throw error when out of range"); 79 assertTrue(e instanceof RangeError, "Throw error when out of range"); 82 assertFalse(false, "Throw error when out of range");
|
| D | LinkedListRemoveByIndexTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 21 suite.addTest("LinkedList removeByIndex with an index within the container's length range", 23 suite.addTest("LinkedList removeByIndex with an index outside the container's length range", 26 suite.addTest("LinkedList removeByIndex with an index at the container's length range", 29 suite.addTest("LinkedList remove the first element from a non-empty container", 32 …suite.addTest("LinkedList remove the last element from a non-empty container", testRemoveLastFromN… 68 assertEQ(linkedList.length, TestData.arrayForNumber1.length - TestData.testNumber1, 69 "LinkedList length should be - 1"); 84 linkedList.removeByIndex(-TestData.testNumber6); 90 assertEQ(errorCount, TestData.testNumber2, "Throw error when LinkedList index out of range"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/PlainArray/ |
| D | PlainArraySetValueAtToStringClearTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 suite.addTest("PlainArray toString with non-empty container", testToStringWithNonEmpty); 27 suite.addTest("PlainArray clear with non-empty container", testClearWithNonEmpty); 60 plainArray.setValueAt(TestData.forNumber2.length - TestData.testNumber1, TestData.testNumber6); 69 plainArray.setValueAt(-TestData.testNumber1, TestData.testNumber6); 72 assertEQ((e as RangeError).message, "The value of index is out of range.", 73 "The result should be 'Index out of range'"); 80 assertEQ((e as RangeError).message, "The value of index is out of range.", 81 "The result should be 'Index out of range'"); 93 assertEQ((e as RangeError).message, "The value of index is out of range.", [all …]
|
| D | PlainArrayRemoveRemoveAtRemoveRangeTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 22 suite.addTest("PlainArray remove with non-exist key", testRemoveWithNonExistKey); 28 suite.addTest("PlainArray removeRangeFrom by valid range", testRangeFromValidRange); 29 suite.addTest("PlainArray removeRangeFrom by exceeded range", testRangeFromExceededRange); 100 plainArray.removeAt(-TestData.testNumber1); 103 assertEQ((e as RangeError).message, "The value of index is out of range.", 104 "The result should be 'Index out of range'"); 111 assertEQ((e as RangeError).message, "The value of index is out of range.", 112 "The result should be 'Index out of range'"); 124 assertEQ((e as RangeError).message, "The value of index is out of range.", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/collections/BitVector/ |
| D | getBitsByRangeTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 …suite.addTest("Returns the bit values in a valid range of indices.", BitVector_getBitsByRange_Func… 26 … suite.addTest("Throws an error for invalid 'toIndex' range.", BitVector_getBitsByRange_Func_002); 27 … suite.addTest("Throws an error for non-integer 'fromIndex'.", BitVector_getBitsByRange_Func_003); 30 suite.addTest("Returns the bit values in a large range.", BitVector_getBitsByRange_Func_006); 31 …suite.addTest("Returns the bit values in a range with an initial length.", BitVector_getBitsByRang… 39 * @tc.desc : Returns the bit values in a valid range of indices in a bit vector. 60 * @tc.desc : Throws an error for invalid 'toIndex' range in a bit vector. 78 …or).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8. Received value i… 80 expectThrow(() => { bitVector.getBitsByRange(8, -3); }, exceptionCheck); [all …]
|
| D | flipBitsByRangeTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 …suite.addTest("Test flipBitsByRange with valid range to verify it flips bits correctly (0→1, 1→0) … 29 …suite.addTest("Test flipBitsByRange with non-integer fromIndex to verify it throws appropriate err… 30 …suite.addTest("Test flipBitsByRange on a 64-bit vector to verify it correctly flips the first half… 31 …vector with initial capacity to verify correct flipping across the entire range.", BitVector_flipB… 39 …* @tc.desc : Test flipBitsByRange with valid range to verify it flips bits correctly (0→1, 1→… 79 …or).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8. Received value i… 82 bitVector.flipBitsByRange(8, -3); 107 …or).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8. Received value i… 110 bitVector.flipBitsByRange(-3, -3); [all …]
|
| D | getBitCountByRangeTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 …suite.addTest("Counts the occurrences of a bit element within a valid range.", BitVector_getBitCou… 26 …suite.addTest("Throws an error for invalid 'toIndex' range.", BitVector_getBitCountByRange_Func_00… 27 …suite.addTest("Throws an error for non-integer 'fromIndex'.", BitVector_getBitCountByRange_Func_00… 30 …suite.addTest("Counts the occurrences of a bit element in a large range.", BitVector_getBitCountBy… 39 * @tc.desc : Counts the occurrences of a bit element within a valid range in a bit vector. 51 …ssertEQ(bitVector.getBitCountByRange(0, 0, 5), 3, "BitVector should contain 3 zeros in range 0-5"); 52 …assertEQ(bitVector.getBitCountByRange(1, 0, 5), 2, "BitVector should contain 2 ones in range 0-5"); 58 * @tc.desc : Throws an error when 'toIndex' is out of range. 76 …or).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8. Received value i… [all …]
|
| D | hasTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 …suite.addTest("Verify if bit vector correctly identifies bit values within a specified range.", Bi… 30 …suite.addTest("Verify if bit vector correctly identifies bit values in a large range spanning mult… 31 …ector with initial length correctly identifies bit values across its full range.", BitVector_has_F… 33 …suite.addTest("Verify if bit vector correctly identifies bit values in a single-element range.", B… 44 * @tc.desc : Check if bit vector contains a particular bit element within a valid range. 57 assertEQ(bitVector.has(1, 3, 6), true, "BitVector should contain 1 in range 3-6"); 58 assertEQ(bitVector.has(1, 0, 2), false, "BitVector should not contain 1 in range 0-2"); 59 assertEQ(bitVector.has(0, 3, 5), false, "BitVector should not contain 0 in range 3-5"); 60 assertEQ(bitVector.has(0, 0, 3), true, "BitVector should contain 0 in range 0-3"); [all …]
|
| D | flipBitByIndexTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 …suite.addTest("Test flipBitByIndex with out of range index value.", BitVector_flipBitByIndex_Func_… 27 …suite.addTest("Test flipBitByIndex with non-integer index value.", BitVector_flipBitByIndex_Func_0… 64 * @tc.desc : Test flipBitByIndex with out of range index value. 83 …(e as BusinessError).message === `The value of "index" is out of range. It must be >= 0 && <= 7. R… 91 * @tc.desc : Test flipBitByIndex with non-integer index value.
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
| D | working_ranges.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 26 …WorkingRanges(ArenaAllocator *allocator) : regular(allocator->Adapter()), physical(allocator->Adap… in WorkingRanges() 28 InstructionsRanges regular; // NOLINT(misc-non-private-member-variables-in-classes) 29 InstructionsRanges physical; // NOLINT(misc-non-private-member-variables-in-classes) 33 * Add range in sorted order 37 auto iter = std::upper_bound(dest->begin(), dest->end(), interval, in AddRange() 38 … [](const auto &lhs, const auto &rhs) { return lhs->GetBegin() < rhs->GetBegin(); }); in AddRange() 39 dest->insert(iter, interval); in AddRange()
|
| /arkcompiler/ets_frontend/arkguard/tools/ |
| D | timesum.py | 2 # -*- coding: utf-8 -*- 10 http://www.apache.org/licenses/LICENSE-2.0 26 logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(message)s") 39 for i in range(data_length): 42 for j in range(i - 1, -1, -1): # Candidate parent event 104 Handles cases where the parent is a root node (no parent) or a non-root node. 112 # Get the start time of a non-root node as a parent 129 for i in range(1, len(nodes)): 130 nodes[i]["ts"] = nodes[i - 1]["end"] 135 for i in range(1, len(nodes)):
|
| /arkcompiler/runtime_core/static_core/tests/test-lists/test262/ |
| D | test262-ignored-AOT-ASAN.txt | 1 built-ins/DataView/prototype/getFloat32/return-value-clean-arraybuffer.js 2 built-ins/DataView/prototype/getFloat32/return-values-custom-offset.js 3 built-ins/DataView/prototype/getFloat32/return-values.js 4 built-ins/DataView/prototype/getFloat32/toindex-byteoffset.js 5 built-ins/DataView/prototype/getFloat64/return-value-clean-arraybuffer.js 6 built-ins/DataView/prototype/getFloat64/return-values-custom-offset.js 7 built-ins/DataView/prototype/getFloat64/return-values.js 8 built-ins/DataView/prototype/getFloat64/toindex-byteoffset.js 9 built-ins/DataView/prototype/setFloat32/toindex-byteoffset.js 10 built-ins/DataView/prototype/setFloat64/index-is-out-of-range.js [all …]
|
| D | test262-excluded.txt | 2 annexB/built-ins/RegExp/incomplete_hex_unicode_escape.js 3 annexB/language/comments/multi-line-html-close.js 4 annexB/language/comments/single-line-html-close-asi.js 5 annexB/language/comments/single-line-html-close-unicode-separators.js 6 annexB/language/comments/single-line-html-close.js 7 annexB/language/comments/single-line-html-open.js 8 annexB/language/expressions/logical-assignment/emulates-undefined-and.js 9 annexB/language/expressions/logical-assignment/emulates-undefined-coalesce.js 10 annexB/language/expressions/logical-assignment/emulates-undefined-or.js 11 annexB/language/literals/regexp/class-escape.js [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/config/ |
| D | non_testable.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 13 --- 16 - title: Conversions between integer and floating point types 17 description: Conversion from floating-point types to integer one obeys the following 20 - title: Load accumulator from string constant pool 21 description: In dynamically-typed language context load string as 'any' value. 23 - title: Static call 24 description: In dynamically-typed language context accept 'any' values in source 27 - title: Create and initialize new constant array [all …]
|
| /arkcompiler/ets_runtime/common_components/heap/allocator/ |
| D | allocator.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 51 allocBufferManager_->RegisterAllocBuffer(buffer); in RegisterAllocBuffer() 56 allocBufferManager_->UnregisterAllocBuffer(buffer); in UnregisterAllocBuffer() 69 // IsHeapAddress is a range-based check, used to quickly identify heap address, 70 // non-heap address never falls into this address range. 79 …void VisitAllocBuffers(const AllocBufferVisitor& visitor) { allocBufferManager_->VisitAllocBuffers… in VisitAllocBuffers() 80 void AddHungryBuffer(AllocationBuffer& buffer) { allocBufferManager_->AddHungryBuffer(buffer); } in AddHungryBuffer() 83 allocBufferManager_->SwapHungryBuffers(getBufferList); in SwapHungryBuffers()
|
| /arkcompiler/runtime_core/taihe/compiler/taihe/codegen/abi/ |
| D | mangle.py | 1 # coding=utf-8 8 # http://www.apache.org/licenses/LICENSE-2.0 45 - 'b_c' -> position 1 46 - 'e_f_g' -> positions 4,5 50 [1, 4-1=3, 5-4=1] = [1, 3, 1] 59 - Position encoding uses ULEB128 for compact representation 60 - Kind marker is a single character indicating symbol type: 61 - Decoder can reconstruct original identifier structure using 79 def _encode_uleb8(value: int) -> list[int]: 83 value: Non-negative integer to encode [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ArrayList/ |
| D | ArrayListRemoveTests.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 …suite.addTest("ArrayList removeByRange with start index out of range", testRemoveByRangeStartIndex… 29 …suite.addTest("ArrayList removeByRange with end index out of range", testRemoveByRangeEndIndexOutO… 34 suite.addTest("ArrayList removeByRange with start index = 0 and end index = length - 1", 88 assertFalse(result, "Remove operation should return false for non-existent element"); 102 assertEQ(arrayList.length, TestData.testNumber5 - TestData.testNumber1, 111 … "The value of \"fromIndex\" is out of range. It must be >= 0 && <= 2. Received value is: -1") && 114 …expectThrow(() => {arrayList.removeByRange(-TestData.testNumber1, TestData.testNumber3)}, exceptio… 122 … "The value of \"toIndex\" is out of range. It must be >= 0 && <= 5. Received value is: 8") && 133 … "The value of \"fromIndex\" is out of range. It must be >= 0 && <= 0. Received value is: 3") && [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/workers/ |
| D | gc_workers_tasks.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 22 #include "libpandabase/utils/range.h" 115 StorageType storage_ {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 160 … using MovedObjectsRange = std::conditional_t<VECTOR, Range<PandaVector<ObjectHeader *>::iterator>, 161 Range<PandaDeque<ObjectHeader *>::iterator>>;
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
| D | aarch64_imm_valid.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 uint64 mask2 = (1UL << static_cast<uint64>(nLowerZeroBits)) - 1UL; in IsBitSizeImmediate() 65 // When value & ffffffff00000000 is 0, all high 32-bits are 0. in IsSingleInstructionMovable32() 66 // When value & ffffffff00000000 is ffffffff00000000, all high 32-bits are 1. in IsSingleInstructionMovable32() 67 // High 32-bits should be all 0 or all 1, when it comes to mov w0, #imm. in IsSingleInstructionMovable32() 89 // for target linux-aarch64-gnu in Imm12BitValid() 94 // For the 32-bit variant: is the bitmask immediate 97 if (value == 0 || static_cast<int64>(value) == -1) { in Imm12BitMaskValid() 106 // for target linux-aarch64-gnu in Imm13BitValid() 111 // For the 64-bit variant: is the bitmask immediate [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedarray/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 16 An index of -2 returns 130 76 add element by index access failed. err: BusinessError: The value of index is out of range., code: … 80 add element by index access failed. err: BusinessError: The value of index is out of range., code: … 125 Fire-Air-Water 175 -1 219 Shrink to -1 fail. err: BusinessError: Parameter error.Invalid array length., code: 401 226 ExtendTo to array.length - 1: 5,5,5,5,5 228 ExtendTo to -1 fail. err: BusinessError: Parameter error.Invalid array length., code: 401 236 Index access read out of range success. [all …]
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | reg_encoder.h | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 * |<-locals->|<-free registers->|<-RegAlloc temps->|<-arguments->| 34 * * temps (>= 0) are temporary registers that can be allocated by spill-fill 52 * range temps from free registers if necessary, consistently changing all register 55 * |<-locals->|<-range temps->|<-RegAlloc temps->|<-arguments->|<-free registers->| 63 …* |<-Renumber temps->|<-locals->|<-range temps->|<-RegAlloc temps->|<-arguments->|<-free registers… 73 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes) 75 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes) 100 // NOLINTNEXTLINE(fuchsia-multiple-inheritance) [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | call.virt.range.yaml | 1 # Copyright (c) 2021-2025 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 13 --- 15 - name: R_xorshift32 49 - file-name: call.virt.range 52 - sig: call.virt.range method_id, v:in:top 63 constant-pool based on object reference using language-specific semantics. 66 Non-range instructions can be used to pass up to 4 arguments (including object reference). 69 For methods with more arguments range kinds of instruction are to be used, which takes 72 - method_id_non_static [all …]
|