Home
last modified time | relevance | path

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

12345678910

/arkcompiler/ets_frontend/es2panda/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()
81 for (const auto &range : entry.ranges) { in GetLocation() local
82 if (diff < (range.cnt * range.byteSize)) { in GetLocation()
83 col += (diff / range.byteSize) ; in GetLocation()
87 diff -= range.cnt * range.byteSize; in GetLocation()
88 col += range.cnt; in GetLocation()
DsourceLocation.h69 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/verification/util/
Drange.h27 class Range; variable
30 class Range<Int> {
86 Range(const Container &cont) : From_ {0}, To_ {cont.size() - 1} in Range() function
89 Range(const Int from, const Int to) : From_ {std::min(from, to)}, To_ {std::max(from, to)} {} in Range() function
90 Range() = default;
91 ~Range() = default;
108 Range BasedAt(Int point) const in BasedAt()
110 return Range {point, point + To_ - From_}; in BasedAt()
146 bool operator==(const Range &rhs) const
157 Range(Int, Int, typename std::enable_if<std::is_integral<Int>::value, bool>::type b = true)->Range<…
[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 …]
Dcall.virt.range.yaml52 - 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 …]
Dcall.range.yaml20 - file-name: call.range
32 … Non-range instructions can be used to pass up to 4 arguments (unused register slot values will
34 …For methods with more arguments range kind of instruction is to be used, which takes the needed nu…
44 - sig: call.range method_id, v:in:top
48 description: Check that 'call.range' invokes function with different amount of args.
56 call.range f1, v0
90 - sig: call.range method_id, v:in:top
94 description: Check that 'call.range' works with String object.
102 call.range f1%s
126 - sig: call.range method_id, v:in:top
[all …]
Dcall.polymorphic.range.yaml67 - file-name: 'call.polymorphic.range'
77 - sig: call.polymorphic.range method_id, v:in:top
81 description: Check call.polymorphic.range syntax.
88 call.polymorphic.range %s
124 - sig: call.polymorphic.range method_id, v:in:top
136 call.polymorphic.range panda.invoke.MethodHandle.invoke, %s
181 call.polymorphic.range panda.invoke.MethodHandle.invoke, v4
196 - sig: call.polymorphic.range method_id, v:in:top
247 call.polymorphic.range panda.invoke.MethodHandle.invoke, v4
277 - sig: call.polymorphic.range method_id, v:in:top
[all …]
Dcalle.polymorphic.range.yaml67 - file-name: 'calle.polymorphic.range'
77 - sig: calle.polymorphic.range method_id, v:in:top
81 description: Check calle.polymorphic.range syntax.
88 calle.polymorphic.range %s
124 - sig: calle.polymorphic.range method_id, v:in:top
136 calle.polymorphic.range panda.invoke.MethodHandle.invokeExact, %s
181 calle.polymorphic.range panda.invoke.MethodHandle.invokeExact, v4
196 - sig: calle.polymorphic.range method_id, v:in:top
247 calle.polymorphic.range panda.invoke.MethodHandle.invokeExact, v4
277 - sig: calle.polymorphic.range method_id, v:in:top
[all …]
Dcall.virt.range.negative.yaml34 - file-name: call.virt.range.negative
37 - sig: call.virt.range method_id, v:in:top
52 Non-range instructions can be used to pass up to 4 arguments (including object reference).
55 For methods with more arguments range kinds of instruction are to be used, which takes
69 - sig: call.virt.range method_id, v:in:top
75 …description: Check incorrect usage of `call.virt.range` instruction. First argument is of incorrec…
87 call.virt.range A.foo%s
258 - sig: call.virt.range method_id, v:in:top
265 …Check incorrect usage of `call.virt.range` instruction. First argument is a reference to object of…
293 call.virt.range A.foo, v0
[all …]
Dcall.virt.range_base.yaml43 - sig: call.virt.range method_id, v:in:top
58 Non-range instructions can be used to pass up to 4 arguments (including object reference).
61 For methods with more arguments range kinds of instruction are to be used, which takes
74 - sig: call.virt.range method_id, v:in:top
92 call.virt.range A.foo, v0
279 - sig: call.virt.range method_id, v:in:top
349 call.virt.range R.storeValue, v4
389 call.virt.range R.storeValue, v5
429 call.virt.range R.storeValue, v5
487 call.virt.range R.storeValue, v7
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dcodegen_runner_test.cpp184 call.range get_Value_c, a2
188 call.range get_Value_a, a5
192 call.range get_Value_c, a4
196 call.range get_Value_a, a1
200 call.range get_Value_c, a0
204 call.range get_Value_a, a3
208 call.range get_Value_c, a5
212 call.range get_Value_a, a2
216 call.range get_Value_c, a1
220 call.range get_Value_a, a4
[all …]
/arkcompiler/runtime_core/runtime/tests/
Dbitmap_clear_range_test.cpp44 for (const auto &range : ranges) { in TEST_F() local
46 bm.ClearRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second)); in TEST_F()
50 …bm.IterateOverChunkInRange(ToVoidPtr(heap_begin), ToVoidPtr(heap_begin + range.first), test_true_f… in TEST_F()
51 …bm.IterateOverChunkInRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.secon… in TEST_F()
53 // for SIXTH_RANGE, range.second is not in the heap, so we skip this test in TEST_F()
54 if (range.second < bm.MemSizeInBytes()) { in TEST_F()
55 bm.IterateOverChunkInRange(ToVoidPtr(heap_begin + range.second), in TEST_F()
/arkcompiler/ets_runtime/ecmascript/
Decma_string_table.cpp32 auto range = table_.equal_range(hashCode); in GetString() local
33 auto item = range.first; in GetString()
34 for (; item != range.second; ++item) { in GetString()
46 auto range = table_.equal_range(hashCode); in GetString() local
47 auto item = range.first; in GetString()
48 for (; item != range.second; ++item) { in GetString()
60 auto range = table_.equal_range(hashCode); in GetString() local
61 auto item = range.first; in GetString()
62 for (; item != range.second; ++item) { in GetString()
74 auto range = table_.equal_range(hashcode); in GetString() local
[all …]
/arkcompiler/runtime_core/libpandabase/os/
Ddebug_info.cpp143 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 …]
Ddebug_info.h94 class Range {
96 Range(Dwarf_Addr low_pc, Dwarf_Addr high_pc, CompUnit *cu = nullptr,
117 bool Contain(const Range &r) const in Contain()
137 bool operator<(const Range &r) const
142 bool operator==(const Range &r) const
178 std::set<Range> ranges_;
/arkcompiler/runtime_core/runtime/mem/gc/g1/
Dcollection_set.h19 #include "libpandabase/utils/range.h"
86 return Range<PandaVector<Region *>::iterator>(begin(), begin() + tenured_begin_); in Young()
91 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + tenured_begin_); in Young()
96 …return Range<PandaVector<Region *>::iterator>(begin() + tenured_begin_, begin() + humongous_begin_… in Tenured()
101 …return Range<PandaVector<Region *>::const_iterator>(begin() + tenured_begin_, begin() + humongous_… in Tenured()
106 return Range<PandaVector<Region *>::iterator>(begin() + humongous_begin_, end()); in Humongous()
111 return Range<PandaVector<Region *>::const_iterator>(begin() + humongous_begin_, end()); in Humongous()
116 return Range<PandaVector<Region *>::iterator>(begin(), begin() + humongous_begin_); in Movable()
121 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + humongous_begin_); in Movable()
/arkcompiler/runtime_core/runtime/mem/gc/
Dbitmap.h125 * \brief Iterates over marked bits in range [begin, end) sequentially.
129 * @param begin - beginning index of the range, inclusive.
130 * @param end - end index of the range, exclusive.
206 * \brief Iterates over all bits in range [begin, end) sequentially.
208 * @param begin - beginning index of the range, inclusive.
209 * @param end - end index of the range, exclusive.
222 * \brief Clear all bits in range [begin, end).
223 * @param begin - beginning index of the range, inclusive.
224 * @param end - end index of the range, exclusive.
229 * \brief Set all bits in range [begin, end). [begin, end) must be within a BitmapWord.
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_table_test.cpp253 auto range = table.GetRange(0, 6); in TEST_F() local
254 auto it = range.begin(); in TEST_F()
255 ASSERT_EQ(range[0].GetField0(), values[0][0]); in TEST_F()
256 ASSERT_EQ(range[0].GetField1(), values[0][1]); in TEST_F()
257 ASSERT_EQ(range[1].GetField0(), values[1][0]); in TEST_F()
258 ASSERT_EQ(range[1].GetField1(), values[1][1]); in TEST_F()
259 ASSERT_EQ(range[2].GetField0(), values[2][0]); in TEST_F()
260 ASSERT_EQ(range[2].GetField1(), values[2][1]); in TEST_F()
261 ASSERT_EQ(range[3].GetField0(), values[3][0]); in TEST_F()
262 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/compiler/optimizer/analysis/
Dbounds_analysis.cpp56 bool BoundsRange::IsEqual(const BoundsRange &range) const in IsEqual()
58 return left_ == range.GetLeft() && right_ == range.GetRight(); in IsEqual()
61 bool BoundsRange::IsLess(const BoundsRange &range) const in IsLess()
63 return right_ < range.GetLeft(); in IsLess()
71 bool BoundsRange::IsMore(const BoundsRange &range) const in IsMore()
73 return left_ > range.GetRight(); in IsMore()
76 bool BoundsRange::IsMoreOrEqual(const BoundsRange &range) const in IsMoreOrEqual()
78 return left_ >= range.GetRight(); in IsMoreOrEqual()
168 for (const auto &range : ranges) { in Union() local
169 if (range.GetLeft() < min) { in Union()
[all …]
Dliveness_analyzer.cpp305 // For each live instruction set initial life range equals to the block life range in ProcessBlockLiveInstructions()
417 auto range = pending_catch_phi_inputs_.equal_range(inst); in AdjustInputsLifetime() local
418 for (auto it = range.first; it != range.second; ++it) { in AdjustInputsLifetime()
640 for (auto &range = live_ranges_.back(); range.GetEnd() > ln; range = live_ranges_.back()) { in SplitAt() local
642 if (range.GetBegin() > ln) { in SplitAt()
643 split_child->AppendRange(range); in SplitAt()
645 split_child->AppendRange(ln, range.GetEnd()); in SplitAt()
646 range.SetEnd(ln); in SplitAt()
647 if (range.GetBegin() != range.GetEnd()) { in SplitAt()
648 live_ranges_.push_back(range); in SplitAt()
[all …]
Dbounds_analysis.h27 * Represents a range of values that a variable might have.
63 bool IsEqual(const BoundsRange &range) const;
65 bool IsLess(const BoundsRange &range) const;
69 bool IsMore(const BoundsRange &range) const;
71 bool IsMoreOrEqual(const BoundsRange &range) const;
111 void SetBoundsRange(const BasicBlock *block, const Inst *inst, BoundsRange range);
Dliveness_analyzer.h42 // Check if range contains other range
47 // Check if range contains point
152 * Group range extends the first LiveRange, because it is covering the hole group,
183 * Shorten the first range or create it if instruction has no users
215 for (auto range : GetRanges()) { in SplitCover() local
216 if (range.GetBegin() <= position && position < range.GetEnd()) { in SplitCover()
221 if (position == range.GetEnd()) { in SplitCover()
355 for (const auto &range : GetRanges()) { in ToString() local
356 ss << delim << range.ToString(); in ToString()
371 // If interval has range [begin, end) then SplitAt call will truncate it to [begin, ln) and
[all …]
/arkcompiler/runtime_core/tests/regression/
Dstack-9-params.pa118 call.range get, v0
123 call.range get, v0
128 call.range get, v0
133 call.range get, v0
138 call.range get, v0
143 call.range get, v0
148 call.range get, v0
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.cpp140 auto range = localExportEntries_.equal_range(importEntry->localName_); in CheckImplicitIndirectExport() local
142 if (range.first == range.second) { in CheckImplicitIndirectExport()
146 for (auto it = range.first; it != range.second; ++it) { in CheckImplicitIndirectExport()
151 localExportEntries_.erase(range.first, range.second); in CheckImplicitIndirectExport()

12345678910