Home
last modified time | relevance | path

Searched full:range (Results 1 – 25 of 969) sorted by relevance

12345678910>>...39

/arkcompiler/ets_runtime/ecmascript/compiler/
Drange_analysis.cpp22 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/ets_frontend/ets2panda/lexer/token/
DsourceLocation.cpp30 ranges.emplace_back(Range {diff}); in AddCol()
34 auto &range = ranges.back(); in AddCol() local
36 if (diff == range.byteSize) { in AddCol()
37 range.cnt++; in AddCol()
39 ranges.emplace_back(Range {diff}); in AddCol()
91 for (const auto &range : entry.ranges) { in GetLocation() local
92 if (diff < range.cnt) { in GetLocation()
97 diff -= range.cnt * range.byteSize; in GetLocation()
98 col += range.cnt; in GetLocation()
118 for (const auto &range : entry.ranges) { in GetOffset() local
[all …]
/arkcompiler/toolchain/tooling/dynamic/client/tcpServer/test/js_test_case/
Djs_test.py93 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/
DsourceLocation.cpp28 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()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dbounds_analysis.cpp70 * 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 …]
Dbounds_analysis.h28 * Represents a range of values that a variable might have.
93 BoundsRange Add(const BoundsRange &range) const;
95 BoundsRange Sub(const BoundsRange &range) const;
97 BoundsRange Mul(const BoundsRange &range) const;
99 BoundsRange Div(const BoundsRange &range) const;
101 BoundsRange Mod(const BoundsRange &range);
103 BoundsRange And(const BoundsRange &range);
105 BoundsRange Shr(const BoundsRange &range, DataType::Type type = DataType::INT64);
107 BoundsRange AShr(const BoundsRange &range, DataType::Type type = DataType::INT64);
109 BoundsRange Shl(const BoundsRange &range, DataType::Type type = DataType::INT64);
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/test/expected/
DgetSuggestionDiagnostics.json7 "range": { object
29 "range": { object
51 "range": { object
73 "range": { object
95 "range": { object
117 "range": { object
139 "range": { object
161 "range": { object
183 "range": { object
205 "range": { object
[all …]
DgetSyntacticDiagnostics.json10 "range": { object
32 "range": { object
54 "range": { object
76 "range": { object
98 "range": { object
120 "range": { object
142 "range": { object
164 "range": { object
186 "range": { object
208 "range": { object
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/collections/BitVector/
DhasTests.ets25 …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");
66 * @tc.desc : Check if bit vector throws an error for invalid 'toIndex' range.
[all …]
DgetBitCountByRangeTests.ets25 …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…
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 …assertEQ(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 …(e as BusinessError).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8.…
128 …(e as BusinessError).message === `The value of "toIndex" is out of range. It must be >= 0 && <= 8.…
154 …(e as BusinessError).message === `The value of "fromIndex" is out of range. It must be >= 0 && <= …
[all …]
/arkcompiler/runtime_core/static_core/verification/util/
Drange.h27 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/runtime_core/static_core/tests/cts-generator/cts-template/
Dinitobj.range.yaml16 - 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 …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dinitobj.range.yaml20 - 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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/03.enumeration_operations/
Denum_constant_to_string_1.ets21 {% 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 …assertTrue(GeneratedEnum.{% for _ in range(i)%}A{% endfor %}.toString() == "{% for _ in range(i)%}…
Denum_constant_ordinal.ets21 {% 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 …assertTrue(GeneratedEnum.{% for _ in range(i)%}A{% endfor %}.toString() == "{% for _ in range(i)%}…
/arkcompiler/runtime_core/static_core/runtime/tests/
Dbitmap_clear_range_test.cpp46 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/compiler/tests/
Dcodegen_runner_test.cpp187 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/
Denum_type_methods_getvalue_1.ets21 {% 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 …assertTrue(GeneratedEnum.{% for _ in range(i + 1)%}A{% endfor %}.valueOf() == "{% for _ in range(i…
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dbit_field.h25 * 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/
Dcollection_set.h19 #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/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/PlainArray/
DPlainArrayGetValueAtGetKeyAtTests.ets70 assertEQ((e as RangeError).message, "The value of index is out of range.",
71 "The result should be 'Index out of range'");
78 assertEQ((e as RangeError).message, "The value of index is out of range.",
79 "The result should be 'Index out of range'");
91 assertEQ((e as RangeError).message, "The value of index is out of range.",
92 "The result should be 'Index out of range'");
121 assertEQ((e as RangeError).message, "The value of index is out of range.",
122 "The result should be 'Index out of range'");
129 assertEQ((e as RangeError).message, "The value of index is out of range.",
130 "The result should be 'Index out of range'");
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dbitmap.h134 * @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/tests/
Dbit_table_test.cpp258 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/
Dbit_field.h25 * 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/common_interfaces/base/
Dbit_field.h27 * Auxiliary static class that provides access to bits range within an integer value.
55 * Make BitField type that follows right after current bit range.
70 * Make Flag field that follows right after current bit range.
77 * Return maximum value that fits bit range [START_BIT : START_BIT+END_BIT]
85 * Return mask of bit range, f.e. 0b1110 for BitField<T, 1, 3>
101 * Set 'value' to current bit range [START_BIT : START_BIT+END_BIT] within the 'stor' parameter.
111 * Return bit range [START_BIT : START_BIT+END_BIT] value from given integer 'value'
119 * Encode 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it
128 * Update 'value' to current bit range [START_BIT : START_BIT+END_BIT] and return it

12345678910>>...39