| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | range_analysis.cpp | 22 auto &range = rangeInfos_[acc_.GetId(gate)]; in UpdateRange() local 23 if (range != info) { in UpdateRange() 24 range = info; in UpdateRange() 80 auto range = RangeInfo::NONE(); in VisitPhi() local 84 range = range.Union(GetRange(valueIn)); in VisitPhi() 86 return UpdateRange(gate, range); in VisitPhi() 112 auto range = GetRange(acc_.GetValueIn(gate, 0)); in VisitTypedUnaryOp() local 113 if (range.IsNone()) { in VisitTypedUnaryOp() 118 range = range + RangeInfo(1, 1); in VisitTypedUnaryOp() 121 range = range - RangeInfo(1, 1); in VisitTypedUnaryOp() [all …]
|
| /arkcompiler/toolchain/tooling/client/tcpServer/test/js_test_case/ |
| D | js_test.py | 93 for i in range(self.repeat_time): 108 for i in range(len(breakpoint_lines)): 121 for i in range(self.repeat_time): 134 for i in range(self.repeat_time): 136 for i in range(self.repeat_time): 139 for i in range(self.repeat_time): 144 for i in range(self.repeat_time): 146 for i in range(self.repeat_time): 150 for i in range(self.repeat_time): 155 for i in range(self.repeat_time): [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | sourceLocation.cpp | 28 ranges.emplace_back(Range {diff}); in AddCol() 32 auto &range = ranges.back(); in AddCol() local 34 if (diff == range.byteSize) { in AddCol() 35 range.cnt++; in AddCol() 37 ranges.emplace_back(Range {diff}); in AddCol() 88 for (const auto &range : entry.ranges) { in GetLocation() local 89 if (diff < (range.cnt * range.byteSize)) { in GetLocation() 90 col += (diff / range.byteSize) ; in GetLocation() 94 diff -= range.cnt * range.byteSize; in GetLocation() 95 col += range.cnt; in GetLocation()
|
| D | sourceLocation.h | 69 class Range { 71 explicit Range(size_t bS) noexcept : byteSize(bS) {} in Range() function 73 DEFAULT_COPY_SEMANTIC(Range); 74 DEFAULT_MOVE_SEMANTIC(Range); 75 ~Range() = default; 91 std::vector<Range> ranges {};
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | bounds_analysis.cpp | 70 * Neg current range. Type of current range is saved. 81 * Abs current range. Type of current range is saved. 100 * Add to current range. Type of current range is saved. 103 BoundsRange BoundsRange::Add(const BoundsRange &range) const in Add() 105 auto left = AddWithOverflowCheck(left_, range.GetLeft()); in Add() 106 auto right = AddWithOverflowCheck(right_, range.GetRight()); in Add() 114 * Subtract from current range. 117 BoundsRange BoundsRange::Sub(const BoundsRange &range) const in Sub() 119 auto negRight = (range.GetRight() == MIN_RANGE_VALUE ? MAX_RANGE_VALUE : -range.GetRight()); in Sub() 121 auto negLeft = (range.GetLeft() == MIN_RANGE_VALUE ? MAX_RANGE_VALUE : -range.GetLeft()); in Sub() [all …]
|
| D | bounds_analysis.h | 28 * Represents a range of values that a variable might have. 66 BoundsRange Add(const BoundsRange &range) const; 68 BoundsRange Sub(const BoundsRange &range) const; 70 BoundsRange Mul(const BoundsRange &range) const; 72 BoundsRange Div(const BoundsRange &range) const; 74 BoundsRange Mod(const BoundsRange &range); 76 BoundsRange And(const BoundsRange &range); 78 BoundsRange Shr(const BoundsRange &range, DataType::Type type = DataType::INT64); 80 BoundsRange AShr(const BoundsRange &range, DataType::Type type = DataType::INT64); 82 BoundsRange Shl(const BoundsRange &range, DataType::Type type = DataType::INT64); [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | range.h | 27 class Range; variable 31 class Range<Int> { 92 Range(const Container &cont) : from_ {0}, to_ {cont.size() - 1} in Range() function 95 Range(const Int from, const Int to) : from_ {std::min(from, to)}, to_ {std::max(from, to)} {} in Range() function 96 Range() = default; 97 ~Range() = default; 115 Range BasedAt(Int point) const in BasedAt() 117 return Range {point, point + to_ - from_}; in BasedAt() 153 bool operator==(const Range &rhs) const 164 Range(Int, Int, typename std::enable_if<std::is_integral<Int>::value, bool>::type b = true) -> Rang… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | sourceLocation.cpp | 29 ranges.emplace_back(Range {diff}); in AddCol() 33 auto &range = ranges.back(); in AddCol() local 35 if (diff == range.byteSize) { in AddCol() 36 range.cnt++; in AddCol() 38 ranges.emplace_back(Range {diff}); in AddCol() 90 for (const auto &range : entry.ranges) { in GetLocation() local 91 if (diff < range.cnt) { in GetLocation() 96 diff -= range.cnt * range.byteSize; in GetLocation() 97 col += range.cnt; in GetLocation()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | Function.sts.j2 | 20 {% for narg in range(17) %} 21 export interface ThrowingFunction{{ narg }}<{% for i in range(narg) %}in P{{i + 1}}, {% endfor %}ou… 22 …invoke0({% for i in range(narg) %}p{{i + 1}}: P{{i + 1}}{% if not loop.last %}, {% endif %}{% endf… 28 {% for narg in range(17) %} 29 …ion{{ narg }}<{% for i in range(narg) %}in P{{i + 1}}, {% endfor %}out R> extends ThrowingFunction… 30 …invoke0({% for i in range(narg) %}p{{i + 1}}: P{{i + 1}}{% if not loop.last %},{% endif %}{% endfo… 36 {% for narg in range(17) %} 37 …on{{ narg }}<{% for i in range(narg) %}in P{{i + 1}}, {% endfor %}out R> extends RethrowingFunctio… 38 …invoke0({% for i in range(narg) %}p{{i + 1}}: P{{i + 1}}{% if not loop.last %}, {% endif %}{% endf…
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | initobj.range.yaml | 16 - file-name: "initobj.range" 23 …For methods with more arguments range kinds of instruction are to be used, which takes the needed … 26 - sig: initobj.range method_id, v:in:none 37 description: Check 'initobj.range' instruction with invalid method id. 60 initobj.range %s 123 - sig: initobj.range method_id, v:in:none 128 description: Check 'initobj.range' instruction with uninitialized registers. 144 - initobj.range R.ctor, v1 151 initobj.range R.ctor, v1 160 initobj.range R.ctor, v1 [all …]
|
| D | call.virt.range.yaml | 49 - file-name: call.virt.range 52 - sig: call.virt.range method_id, v:in:top 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 82 - sig: call.virt.range method_id, v:in:top 90 …Compiler test for call.virt.range that check virtual or static method with incorrect type of objec… 104 call.virt.range A.foo*s 144 - sig: call.virt.range method_id, v:in:top 180 call.virt.range R.test, v0 210 call.virt.range R.nextRand, v0 [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | initobj.range.yaml | 20 - file-name: "initobj.range" 27 …For methods with more arguments range kinds of instruction are to be used, which takes the needed … 30 - sig: initobj.range method_id, v:in:none 42 description: Check 'initobj.range' instruction with invalid method id. 65 initobj.range %s 129 - sig: initobj.range method_id, v:in:none 134 …description: Check 'initobj.range' instruction with uninitialized registers in PandaAssembly conte… 150 - initobj.range R.ctor, v1 157 initobj.range R.ctor, v1 166 initobj.range R.ctor, v1 [all …]
|
| D | call.virt.range.yaml | 52 - file-name: call.virt.range 55 - sig: call.virt.range method_id, v:in:top 70 Non-range instructions can be used to pass up to 4 arguments (including object reference). 73 For methods with more arguments range kinds of instruction are to be used, which takes 86 - sig: call.virt.range method_id, v:in:top 94 …Compiler test for call.virt.range that check virtual or static method with incorrect type of objec… 112 call.virt.range A.foo*s 175 - sig: call.virt.range method_id, v:in:top 216 call.virt.range R.test, v0 246 call.virt.range R.nextRand, v0 [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | bitmap_clear_range_test.cpp | 46 for (const auto &range : ranges) { in TEST_F() local 48 bm.ClearRange(ToVoidPtr(heapBegin + range.first), ToVoidPtr(heapBegin + range.second)); in TEST_F() 52 … bm.IterateOverChunkInRange(ToVoidPtr(heapBegin), ToVoidPtr(heapBegin + range.first), testTrueFn); in TEST_F() 53 …bm.IterateOverChunkInRange(ToVoidPtr(heapBegin + range.first), ToVoidPtr(heapBegin + range.second), in TEST_F() 55 // for SIXTH_RANGE, range.second is not in the heap, so we skip this test in TEST_F() 56 if (range.second < bm.MemSizeInBytes()) { in TEST_F() 57 …bm.IterateOverChunkInRange(ToVoidPtr(heapBegin + range.second), ToVoidPtr(heapBegin + bm.MemSizeIn… in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/03.enumeration_operations/ |
| D | enum_constant_to_string_1.sts | 21 {% for length in range(1, 10) -%} 22 …{% for _ in range(length)%}A{% endfor %} = "{% for _ in range(length)%}A{% endfor %}" {%if length … 28 {% for i in range(1, 10) %} 29 …assert(GeneratedEnum.{% for _ in range(i)%}A{% endfor %}.toString() == "{% for _ in range(i)%}A{% …
|
| D | enum_constant_ordinal.sts | 21 {% for length in range(1, 10) -%} 22 …{% for _ in range(length)%}A{% endfor %} = "{% for _ in range(length)%}A{% endfor %}" {%if length … 28 {% for i in range(1, 10) %} 29 …assert(GeneratedEnum.{% for _ in range(i)%}A{% endfor %}.toString() == "{% for _ in range(i)%}A{% …
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | codegen_runner_test.cpp | 187 call.range get_Value_c, a2 191 call.range get_Value_a, a5 195 call.range get_Value_c, a4 199 call.range get_Value_a, a1 203 call.range get_Value_c, a0 207 call.range get_Value_a, a3 211 call.range get_Value_c, a5 215 call.range get_Value_a, a2 219 call.range get_Value_c, a1 223 call.range get_Value_a, a4 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/14.enumeration_methods/ |
| D | enum_type_methods_getvalue_1.sts | 21 {% for length in range(1, 10) -%} 22 …{% for _ in range(length)%}A{% endfor %} = "{% for _ in range(length)%}A{% endfor %}" {%if length … 27 {% for i in range(0, 9) %} 28 …assert(GeneratedEnum.{% for _ in range(i + 1)%}A{% endfor %}.valueOf() == "{% for _ in range(i + 1…
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| D | bitmap.h | 134 * @brief Iterates over marked bits in range [begin, end) sequentially. 138 * @param begin - beginning index of the range, inclusive. 139 * @param end - end index of the range, exclusive. 200 * @brief Iterates over all bits in range [begin, end) sequentially. 202 * @param begin - beginning index of the range, inclusive. 203 * @param end - end index of the range, exclusive. 216 * @brief Clear all bits in range [begin, end). 217 * @param begin - beginning index of the range, inclusive. 218 * @param end - end index of the range, exclusive. 223 * @brief Set all bits in range [begin, end). [begin, end) must be within a BitmapWord. [all …]
|
| /arkcompiler/runtime_core/libpandabase/os/ |
| D | debug_info.cpp | 143 for (const Dwarf_Ranges &range : ranges) { in IterateDieRanges() local 144 if (range.dwr_type == DW_RANGES_ENTRY) { in IterateDieRanges() 145 Dwarf_Addr rng_low_pc = base_addr + range.dwr_addr1; in IterateDieRanges() 146 Dwarf_Addr rng_high_pc = base_addr + range.dwr_addr2; in IterateDieRanges() 150 } else if (range.dwr_type == DW_RANGES_ADDRESS_SELECTION) { in IterateDieRanges() 151 base_addr = range.dwr_addr2; in IterateDieRanges() 247 Range range(pc, pc); in GetSrcLocation() local 248 auto it = ranges_.upper_bound(range); in GetSrcLocation() 258 ranges->insert(Range(low_pc, high_pc, cu)); in GetSrcLocation() 263 it = ranges_.upper_bound(range); in GetSrcLocation() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | bit_field.h | 25 * Auxiliary static class that provides access to bits range within an integer value. 52 * Make BitField type that follows right after current bit range. 67 * Make Flag field that follows right after current bit range. 74 * Return maximum value that fits bit range [START_BIT : START_BIT+END_BIT] 82 * Return mask of bit range, f.e. 0b1110 for BitField<T, 1, 3> 98 * Set 'value' to current bit range [START_BIT : START_BIT+END_BIT] within the 'stor' parameter. 108 * Return bit range [START_BIT : START_BIT+END_BIT] value from given integer 'value' 116 * Encode 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it 125 * Update 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
| D | collection_set.h | 19 #include "libpandabase/utils/range.h" 98 return Range<PandaVector<Region *>::iterator>(begin(), begin() + tenuredBegin_); in Young() 103 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + tenuredBegin_); in Young() 108 … return Range<PandaVector<Region *>::iterator>(begin() + tenuredBegin_, begin() + humongousBegin_); in Tenured() 113 …return Range<PandaVector<Region *>::const_iterator>(begin() + tenuredBegin_, begin() + humongousBe… in Tenured() 118 return Range<PandaVector<Region *>::iterator>(begin() + humongousBegin_, end()); in Humongous() 123 return Range<PandaVector<Region *>::const_iterator>(begin() + humongousBegin_, end()); in Humongous() 128 return Range<PandaVector<Region *>::iterator>(begin(), begin() + humongousBegin_); in Movable() 133 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + humongousBegin_); in Movable()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | bit_table_test.cpp | 258 auto range = table.GetRange(0, 6); in TEST_F() local 259 auto it = range.begin(); in TEST_F() 260 ASSERT_EQ(range[0].GetField0(), values[0][0]); in TEST_F() 261 ASSERT_EQ(range[0].GetField1(), values[0][1]); in TEST_F() 262 ASSERT_EQ(range[1].GetField0(), values[1][0]); in TEST_F() 263 ASSERT_EQ(range[1].GetField1(), values[1][1]); in TEST_F() 264 ASSERT_EQ(range[2].GetField0(), values[2][0]); in TEST_F() 265 ASSERT_EQ(range[2].GetField1(), values[2][1]); in TEST_F() 266 ASSERT_EQ(range[3].GetField0(), values[3][0]); in TEST_F() 267 ASSERT_EQ(range[3].GetField1(), values[3][1]); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | bit_field.h | 25 * Auxiliary static class that provides access to bits range within an integer value. 53 * Make BitField type that follows right after current bit range. 68 * Make Flag field that follows right after current bit range. 75 * Return maximum value that fits bit range [START_BIT : START_BIT+END_BIT] 83 * Return mask of bit range, f.e. 0b1110 for BitField<T, 1, 3> 99 * Set 'value' to current bit range [START_BIT : START_BIT+END_BIT] within the 'stor' parameter. 109 * Return bit range [START_BIT : START_BIT+END_BIT] value from given integer 'value' 117 * Encode 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it 126 * Update 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | debug_info.cpp | 161 for (const Dwarf_Ranges &range : ranges) { in IterateDieRanges() local 162 if (range.dwr_type == DW_RANGES_ENTRY) { in IterateDieRanges() 163 Dwarf_Addr rngLowPc = baseAddr + range.dwr_addr1; in IterateDieRanges() 164 Dwarf_Addr rngHighPc = baseAddr + range.dwr_addr2; in IterateDieRanges() 168 } else if (range.dwr_type == DW_RANGES_ADDRESS_SELECTION) { in IterateDieRanges() 169 baseAddr = range.dwr_addr2; in IterateDieRanges() 331 Range range(pc, pc); in GetSrcLocation() local 332 auto it = ranges_.upper_bound(range); in GetSrcLocation() 342 ranges->insert(Range(lowPc, highPc, cu)); in GetSrcLocation() 347 it = ranges_.upper_bound(range); in GetSrcLocation() [all …]
|