Home
last modified time | relevance | path

Searched refs:range (Results 1 - 25 of 114) sorted by relevance

12345

/arkcompiler/toolchain/tooling/client/tcpServer/test/js_test_case/
H A Djs_test.py90 for i in range(self.repeat_time):
105 for i in range(len(breakpoint_lines)):
118 for i in range(self.repeat_time):
131 for i in range(self.repeat_time):
133 for i in range(self.repeat_time):
136 for i in range(self.repeat_time):
141 for i in range(self.repeat_time):
143 for i in range(self.repeat_time):
147 for i in range(self.repeat_time):
152 for i in range(sel
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A 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 in VisitTypedUnaryOp()
141 auto range = RangeInfo::ANY(); VisitTypedBinaryOp() local
261 auto range = GetRange(value); TryGetRangeOfBranch() local
290 auto range = GetRange(swap ? left : right); GetRangeOfCompare() local
392 auto range = GetRange(gate); PrintRangeInfo() local
[all...]
/arkcompiler/ets_frontend/es2panda/lexer/token/
H A DsourceLocation.cpp34 auto &range = ranges.back(); in AddCol() local
36 if (diff == range.byteSize) { in AddCol()
37 range.cnt++; in AddCol()
90 for (const auto &range : entry.ranges) {
91 if (diff < (range.cnt * range.byteSize)) {
92 col += (diff / range.byteSize) ;
96 diff -= range.cnt * range.byteSize;
97 col += range
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A 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
172 Mod(const BoundsRange &range) Mod() argument
192 Shr(const BoundsRange &range, DataType::Type type) Shr() argument
212 AShr(const BoundsRange &range, DataType::Type type) AShr() argument
224 Shl(const BoundsRange &range, DataType::Type type) Shl() argument
261 And(const BoundsRange &range) And() argument
733 SetBoundsRange(const BasicBlock *block, const Inst *inst, BoundsRange range) SetBoundsRange() argument
785 auto range = bri->FindBoundsRange(block, inst); IsInstNotNull() local
1104 auto range = BoundsRange(left, right, lenArray); ProcessIndexPhi() local
1116 auto range = BoundsRange(left, right, lenArray); ProcessIndexPhi() local
1285 auto range = BoundsRange(1, BoundsRange::GetMax(DataType::REFERENCE)); ProcessNullCheck() local
1300 auto range = BoundsRange(1, BoundsRange::GetMax(DataType::REFERENCE)); CalcNewBoundsRangeForIsInstanceInput() local
1346 BoundsRange range; CalcNewBoundsRangeUnary() local
1370 BoundsRange range = range0.Add(range1); CalcNewBoundsRangeAdd() local
1393 BoundsRange range = range0.Sub(range1); CalcNewBoundsRangeSub() local
1413 BoundsRange range = range0.Mod(range1); CalcNewBoundsRangeMod() local
1445 BoundsRange range = range0.Div(range1); CalcNewBoundsRangeDiv() local
1460 BoundsRange range = range0.Shr(range1, inst->GetType()); CalcNewBoundsRangeShr() local
1475 BoundsRange range = range0.AShr(range1, inst->GetType()); CalcNewBoundsRangeAShr() local
1521 BoundsRange range; CalcNewBoundsRangeBinary() local
[all...]
H A Dbounds_analysis.h28 * 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, DataTyp
[all...]
H A Dliveness_analyzer.cpp357 // For each live instruction set initial life range equals to the block life range in ProcessBlockLiveInstructions()
430 // start earlier than NullCheck's live range. in GetPropagatedLiveRange()
491 auto range = pendingCatchPhiInputs_.equal_range(inst); in AdjustInputsLifetime() local
492 for (auto it = range.first; it != range.second; ++it) { in AdjustInputsLifetime()
868 auto &range = liveRanges_[i - 1]; in SplitAt() local
869 if (range.GetBegin() < ln) { in SplitAt()
870 splitChild->AppendRange(range.GetBegin(), ln); in SplitAt()
871 range in SplitAt()
946 auto range = *it; GetFirstIntersectionWith() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dbitmap_clear_range_test.cpp46 for (const auto &range : ranges) { in TEST_F()
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.MemSizeInBytes()), in TEST_F()
/arkcompiler/ets_frontend/ets2panda/lexer/token/
H A DsourceLocation.cpp33 auto &range = ranges.back(); in AddCol() local
35 if (diff == range.byteSize) { in AddCol()
36 range.cnt++; in AddCol()
90 for (const auto &range : entry.ranges) {
91 if (diff < range.cnt) {
96 diff -= range.cnt * range.byteSize;
97 col += range.cnt;
/arkcompiler/runtime_core/libpandabase/tests/
H A 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[ in TEST_F()
300 auto range = table.GetRangeReversed(4, 10); TEST_F() local
340 auto range = table.GetRange(0, 0); TEST_F() local
351 auto range = table.GetRangeReversed(0, 0); TEST_F() local
[all...]
/arkcompiler/runtime_core/compiler/optimizer/analysis/
H A Dliveness_analyzer.cpp297 // For each live instruction set initial life range equals to the block life range in ProcessBlockLiveInstructions()
380 auto range = pending_catch_phi_inputs_.equal_range(inst); in AdjustInputsLifetime() local
381 for (auto it = range.first; it != range.second; ++it) { in AdjustInputsLifetime()
601 for (auto &range = live_ranges_.back(); range.GetEnd() > ln; range = live_ranges_.back()) { in SplitAt()
603 if (range.GetBegin() > ln) { in SplitAt()
604 split_child->AppendRange(range); in SplitAt()
[all...]
/arkcompiler/ets_frontend/es2panda/parser/module/
H A DsourceTextModuleRecord.cpp148 auto range = localExportEntries_.equal_range(importEntry->localName_); in CheckImplicitIndirectExport() local
150 if (range.first == range.second) { in CheckImplicitIndirectExport()
154 for (auto it = range.first; it != range.second; ++it) { in CheckImplicitIndirectExport()
159 localExportEntries_.erase(range.first, range.second); in CheckImplicitIndirectExport()
182 auto range = localExportEntries_.equal_range(it->first); in AssignIndexToModuleVariable() local
183 for (auto local_iter = range.first; local_iter != range in AssignIndexToModuleVariable()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_table_test.cpp236 auto range = table.GetRangeReversed(4U, 10U); in GetRange() local
237 ASSERT_EQ(range[0U].GetField0(), values[9U][0U]); in GetRange()
238 ASSERT_EQ(range[0U].GetField1(), values[9U][1U]); in GetRange()
239 ASSERT_EQ(range[1U].GetField0(), values[8U][0U]); in GetRange()
240 ASSERT_EQ(range[1U].GetField1(), values[8U][1U]); in GetRange()
241 ASSERT_EQ(range[2U].GetField0(), values[7U][0U]); in GetRange()
242 ASSERT_EQ(range[2U].GetField1(), values[7U][1U]); in GetRange()
243 ASSERT_EQ(range[3U].GetField0(), values[6U][0U]); in GetRange()
244 ASSERT_EQ(range[3U].GetField1(), values[6U][1U]); in GetRange()
245 ASSERT_EQ(range[ in GetRange()
267 auto range = table.GetRangeReversed(4U, 10U); GetReversedRange() local
352 auto range = table.GetRange(0U, 0U); TEST_F() local
363 auto range = table.GetRangeReversed(0U, 0U); TEST_F() local
[all...]
/arkcompiler/runtime_core/libpandabase/os/
H A Ddebug_info.cpp143 for (const Dwarf_Ranges &range : ranges) { in IterateDieRanges()
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()
248 auto it = ranges_.upper_bound(range); in GetSrcLocation()
263 it = ranges_.upper_bound(range); in GetSrcLocation()
352 Range range(low_p in AddFunction()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Ddebug_info.cpp161 for (const Dwarf_Ranges &range : ranges) { in IterateDieRanges()
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()
332 auto it = ranges_.upper_bound(range); in GetSrcLocation()
347 it = ranges_.upper_bound(range); in GetSrcLocation()
436 Range range(lowP in AddFunction()
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dbounds_analysis_test.cpp289 auto range = BoundsRange::Union(ranges); in TEST_F() local
290 ASSERT_EQ(range.GetLeft(), -20L); in TEST_F()
291 ASSERT_EQ(range.GetRight(), 100U); in TEST_F()
296 range = BoundsRange::Union(ranges); in TEST_F()
297 ASSERT_EQ(range.GetLeft(), INT64_MIN); in TEST_F()
298 ASSERT_EQ(range.GetRight(), INT64_MAX); in TEST_F()
347 BoundsRange range; in TEST_F() local
350 range = rinfo->FindBoundsRange(&BB(2U), &INS(0U)); in TEST_F()
351 EXPECT_EQ(range.GetLeft(), 0U); in TEST_F()
352 EXPECT_EQ(range in TEST_F()
464 auto range = rinfo->FindBoundsRange(&BB(3U), &INS(4U)); TEST_F() local
529 auto range = rinfo->FindBoundsRange(&BB(3U), &INS(4U)); TEST_F() local
561 auto range = rinfo->FindBoundsRange(&BB(3U), &INS(4U)); TEST_F() local
647 auto range = bri->FindBoundsRange(bb, bb->GetLastInst()->GetInput(0U).GetInst()); TEST_F() local
[all...]
/arkcompiler/toolchain/tooling/backend/
H A Djs_single_stepper.cpp30 for (const auto &range : stepRanges_) { in InStepRange()
31 if (pc >= range.startBcOffset && pc < range.endBcOffset) { in InStepRange()
99 JSPtStepRange range {it->offset, next != table.end() ? next->offset : UINT32_MAX}; in GetStepRanges()
100 ranges.push_back(range); in GetStepRanges()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Drem_set-inl.h163 bitmap.Iterate(bitmapRange, [region, visitor](const MemRange &range) { visitor(region, range); }); in Iterate()
173 Iterate(regionPred, [visitor](Region *region, const MemRange &range) { in IterateOverObjects()
175 ToVoidPtr(range.GetStartAddress()), ToVoidPtr(range.GetEndAddress()), in IterateOverObjects()
229 Iterate(pred, [&out](Region *region, const MemRange &range) {
239 out << "[" << ToVoidPtr(range.GetStartAddress()) << "-" << ToVoidPtr(range.GetEndAddress()) << "]";
283 bitmap.Iterate(bitmapRange, [region, visitor](const MemRange &range) { visitor(region, range); }); in IterateOverBits()
288 IterateOverUniqueRange(Region *region, MemRange range, const MemVisitor &visitor) IterateOverUniqueRange() argument
[all...]
H A Drem_set.h134 void Iterate(const MemRange &range, const Visitor &visitor) const
136 size_t memSize = (range.GetEndAddress() - range.GetStartAddress()) / GetNumBits();
137 uintptr_t startAddr = range.GetStartAddress();
181 bool IterateOverUniqueRange(Region *region, MemRange range, const MemVisitor &visitor);
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string_table.cpp84 auto range = stringTable_[GetTableId(hashcode)].table_.equal_range(hashcode); in GetStringThreadUnsafe() local
85 for (auto item = range.first; item != range.second;) { in GetStringThreadUnsafe()
97 auto range = stringTable_[GetTableId(hashcode)].table_.equal_range(hashcode); in GetStringThreadUnsafe() local
98 for (auto item = range.first; item != range.second;) { in GetStringThreadUnsafe()
110 auto range = stringTable_[GetTableId(hashcode)].table_.equal_range(hashcode); in GetStringThreadUnsafe() local
111 for (auto item = range.first; item != range.second;) { in GetStringThreadUnsafe()
122 auto range in GetStringWithHashThreadUnsafe() local
134 auto range = stringTable_[GetTableId(hashcode)].table_.equal_range(hashcode); GetStringThreadUnsafe() local
604 auto range = table.equal_range(hashcode); CheckStringTableValidity() local
[all...]
/arkcompiler/runtime_core/static_core/verification/util/
H A Drange.h169 string to_string(const ark::verifier::Range<Int> &range) // NOLINT(readability-identifier-naming) in to_string() argument
171 return string {"[ "} + to_string(range.Start()) + " .. " + to_string(range.Finish()) + " ]"; in to_string()
/arkcompiler/ets_runtime/ecmascript/regexp/
H A Dregexp_opcode.cpp470 << "range\t"; in DumpOpCode()
487 for (auto range : rangeSet.rangeSet_) { in InsertOpCode()
488 buf->EmitU16(range.first); in InsertOpCode()
489 buf->EmitU16(range.second); in InsertOpCode()
514 for (auto range : rangeSet.rangeSet_) { in InsertOpCode()
515 buf->EmitU32(range.first); in InsertOpCode()
516 buf->EmitU32(range.second); in InsertOpCode()
642 for (const auto &range : rangeSet_) { in Inter()
643 if (range.first >= interItem.first) { in Inter()
644 firstMax = range in Inter()
[all...]
/arkcompiler/runtime_core/assembler/
H A Dasm_isapi.rb24 def range?
25 mnemonic.split('.')[-1] == 'range'
29 call? && !range? && !properties.include?('dynamic')
/arkcompiler/runtime_core/static_core/assembler/
H A Dasm_isapi.rb24 def range?
25 mnemonic.split('.')[-1] == 'range'
29 call? && !range? && !properties.include?('dynamic')
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/
H A Dtest_object_preview.py43 for idx in range(0, 3):
77 for idx in range(0, 5):
/arkcompiler/toolchain/test/autotest/aw/
H A Dfport.py30 for _ in range(Fport.retry_times):
44 for _ in range(Fport.retry_times):

Completed in 16 milliseconds

12345