Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/ark/runtime_core/verification/debug/parser/
Dparser.h78 static const auto l = [c](Context &, Iter &start, Iter end) {
80 while (s != end && c(*s)) {
94 static const auto l = [=](Context &, Iter &start, Iter end) {
97 while (s != end && *c != 0 && *c == *s) {
110 static next<op_end> end()
112 static const auto l = [](Context &, Iter &start, Iter end) { return start == end; };
118 static const auto l = [p = *this](Context &c, Iter &start, Iter end) {
119 p(c, start, end);
127 static const auto l = [this](Context &c, Iter &start, Iter end) {
128 (*this)(c, start, end);
[all …]
/ark/runtime_core/runtime/mem/gc/
Dbitmap.h149 void IterateOverSetBitsInRange(size_t begin, size_t end, const VisitorType &visitor) in IterateOverSetBitsInRange() argument
151 CheckBitRange(begin, end); in IterateOverSetBitsInRange()
152 if (UNLIKELY(begin == end)) { in IterateOverSetBitsInRange()
161 const bool RIGHT_ALIGNED = (GetBitIdxWithinWord(end) == 0); in IterateOverSetBitsInRange()
162 const auto OFFSET_LAST_WORD_BEGIN = GetWordIdx(end) * BITSPERWORD; in IterateOverSetBitsInRange()
167 auto mask = GetRangeBitMask(0, GetBitIdxWithinWord(end)); in IterateOverSetBitsInRange()
183 if (offset_word_begin < end) { in IterateOverSetBitsInRange()
187 } while (offset_word_begin < end); in IterateOverSetBitsInRange()
198 void IterateOverBitsInRange(size_t begin, size_t end, const VisitorType &visitor) in IterateOverBitsInRange() argument
200 CheckBitRange(begin, end); in IterateOverBitsInRange()
[all …]
Dbitmap.cpp22 void Bitmap::ClearBitsInRange(size_t begin, size_t end) in ClearBitsInRange() argument
24 CheckBitRange(begin, end); in ClearBitsInRange()
25 if (GetWordIdx(end) == GetWordIdx(begin)) { // [begin, end] in the same word in ClearBitsInRange()
26 ClearRangeWithinWord(begin, end); in ClearBitsInRange()
35 auto end_rounddown = fn_rounddown(end); in ClearBitsInRange()
38 ClearRangeWithinWord(end_rounddown, end); in ClearBitsInRange()
/ark/js_runtime/ecmascript/
Dlayout_info.cpp45 void LayoutInfo::GetAllKeys(const JSThread *thread, int end, int offset, TaggedArray *keyArray) in GetAllKeys() argument
47 ASSERT(end <= NumberOfElements()); in GetAllKeys()
48 ASSERT_PRINT(offset + end <= static_cast<int>(keyArray->GetLength()), in GetAllKeys()
53 for (int i = 0; i < end; i++) { in GetAllKeys()
61 if (enumKeys < end) { in GetAllKeys()
62 for (int i = 0; i < end; i++) { in GetAllKeys()
72 void LayoutInfo::GetAllKeys(const JSThread *thread, int end, std::vector<JSTaggedValue> &keyVector) in GetAllKeys() argument
74 ASSERT(end <= NumberOfElements()); in GetAllKeys()
76 for (int i = 0; i < end; i++) { in GetAllKeys()
85 void LayoutInfo::GetAllEnumKeys(const JSThread *thread, int end, int offset, TaggedArray *keyArray, in GetAllEnumKeys() argument
[all …]
Dweak_vector.cpp34 uint32_t end = GetEnd(); in Delete() local
35 if (index < end) { in Delete()
63 uint32_t end = GetEnd(); in PushBack() local
64 if (end == GetCapacity()) { in PushBack()
68 Set(thread, end, value); in PushBack()
69 SetEnd(thread, end + 1); in PushBack()
70 return end; in PushBack()
Dtagged_queue.h49 uint32_t end = queue->GetEnd().GetArrayLength(); in Push() local
51 if ((end + 1) % capacity == start) { in Push()
74 queue->Set(thread, end, value.GetTaggedValue()); in Push()
75 queue->SetEnd(thread, JSTaggedValue((end + 1) % capacity)); in Push()
83 uint32_t end = queue->GetEnd().GetArrayLength(); in PushFixedQueue() local
86 queue->Set(thread, end, value.GetTaggedValue()); in PushFixedQueue()
87 queue->SetEnd(thread, JSTaggedValue((end + 1) % capacity)); in PushFixedQueue()
118 uint32_t end = GetEnd().GetArrayLength(); in Size() local
120 return (end - start + capacity) % capacity; in Size()
168 inline void SetEnd(const JSThread *thread, JSTaggedValue end) in SetEnd() argument
[all …]
/ark/js_runtime/ecmascript/base/
Dnumber_helper.cpp33 #define RETURN_IF_CONVERSION_END(p, end, result) \ argument
34 if ((p) == (end)) { \
55 bool NumberHelper::GotoNonspace(uint8_t **ptr, const uint8_t *end) in GotoNonspace() argument
57 while (*ptr < end) { in GotoNonspace()
67 if (base::utf_helper::ConvertRegionUtf8ToUtf16(*ptr, &c, end - *ptr, 1, 0) <= 0) { in GotoNonspace()
84 bool NumberHelper::IsEmptyString(const uint8_t *start, const uint8_t *end) in IsEmptyString() argument
87 return !NumberHelper::GotoNonspace(&p, end); in IsEmptyString()
134 size_t end = found; in DoubleToExponential() local
143 if (found < end - 1) { in DoubleToExponential()
144 result.erase(found + 1, end - found - 1); in DoubleToExponential()
[all …]
/ark/ts2abc/ts2panda/templates/
Dirnodes.ts.erb16 % end
21 % end
26 % end
38 % end
39 % end
44 % end
48 % end
50 % end
55 % end
56 % end
[all …]
DbuiltinsMap.ts.erb28 % end
29 % end
31 % end
37 % end
68 % end
69 % end
95 % end
96 % end
105 % end
106 % end
[all …]
/ark/runtime_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb35 % end
41 % end
42 % end
43 % end
51 % end
57 % end
58 % end
59 % end
67 % end
94 % end
[all …]
/ark/runtime_core/verification/gen/templates/
Dabs_int_inl_compat_checks.h.erb40 % end
46 % end
47 % end
54 % end
57 % end
58 % end
73 % end
75 % end
76 % end
80 % end
[all …]
/ark/runtime_core/libpandafile/templates/
Dbytecode_emitter_gen.h.erb39 std::copy(buf.begin(), buf.end(), out);
43 % end
52 % end
56 % end
64 % end
85 % end
98 % end
99 % end
105 % end
113 % end
[all …]
/ark/runtime_core/runtime/templates/
Dintrinsics_gen.h.erb28 % end
38 % end
42 % end
44 % end
58 % end
60 if (std::find(spaces.begin(), spaces.end(), space) != spaces.end()) {
78 % end
79 % end
93 % end
94 % end
[all …]
Dbridge_dispatch.S.erb25 % end
26 % end
28 % end
39 % end
40 % end
45 % end
/ark/runtime_core/libpandabase/tests/
Dsmall_vector_test.cpp74 std::copy(values.begin() + 5U, values.end(), std::back_inserter(vector)); in TestVectorGrow()
103 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration()
106 auto it = std::find(vector.begin(), vector.end(), 30U); in TestVectorIteration()
107 ASSERT_NE(it, vector.end()); in TestVectorIteration()
111 it = std::find(vector.begin(), vector.end(), 50U); in TestVectorIteration()
112 ASSERT_EQ(it, vector.end()); in TestVectorIteration()
127 ASSERT_TRUE(std::equal(const_vector.begin(), const_vector.end(), values.begin())); in TestVectorIteration()
130 std::copy(values.begin() + 4U, values.end(), std::back_inserter(vector)); in TestVectorIteration()
133 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration()
255 … ASSERT_TRUE(std::all_of(vector.begin(), vector.end(), [](const auto &v) { return v == Item(); })); in TEST_F()
[all …]
/ark/runtime_core/assembler/templates/
Dins_emit.h.erb57 % end
61 % end
82 % end
83 % end
98 % end
101 % end
102 % end
105 % end
107 % end
129 % end
[all …]
Dopcode_parsing.h.erb44 % end
49 % end
66 % end
67 % end
93 % end
94 % end
103 % end
112 % end
113 % end
121 % end
[all …]
/ark/runtime_core/assembler/
Dcontext.cpp28 end = false; in Make()
111 return end; in Mask()
116 if (end) { in NextMask()
135 end = true; in operator ++()
150 end = true; in operator ++()
162 end = false; in operator --()
169 end = false; in operator --()
178 end = false; in operator --()
185 end = false; in operator --()
Dlexer.cpp36 if (iter == DELIM.end()) { in FindDelim()
55 if (iter == OPERATIONS.end()) { in FindOperation()
73 if (iter == KEYWORDS.end()) { in Findkeyword()
166 curr_line_->end - curr_line_->pos); in TokenizeString()
188 return curr_line_->pos == curr_line_->end; in Eol()
192 Token::Type Lexer::LexGetType(size_t beg, size_t end) const in LexGetType()
198 std::string_view p(&*(curr_line_->buffer.begin() + beg), end - beg); in LexGetType()
275 curr_line_->end - curr_line_->pos); in LexTokens()
277 …while (curr_line_->end > curr_line_->pos && isspace(curr_line_->buffer[curr_line_->end - 1]) != 0)… in LexTokens()
278 --(curr_line_->end); in LexTokens()
[all …]
/ark/runtime_core/verification/util/
Dequiv_classes.h209 void Equate(It begin, It end) in Equate() argument
211 if (begin == end) { in Equate()
216 for (; it != end; ++it) { in Equate()
223 Equate(objects.begin(), objects.end()); in Equate()
252 bool IsAllEqual(It begin, It end) in IsAllEqual() argument
254 if (begin == end) { in IsAllEqual()
259 for (; it != end; ++it) { in IsAllEqual()
269 return IsAllEqual(objects.begin(), objects.end()); in IsAllEqual()
322 if (it != ObjToIndex_.end()) {
353 void Equate(It begin, It end)
[all …]
/ark/js_runtime/ecmascript/mem/
Dallocator-inl.h26 …cator::BumpPointerAllocator(uintptr_t begin, uintptr_t end) : begin_(begin), top_(begin), end_(end in BumpPointerAllocator() argument
35 void BumpPointerAllocator::Reset(uintptr_t begin, uintptr_t end) in Reset() argument
39 end_ = end; in Reset()
75 auto end = region->GetEnd(); in AddFree() local
77 bpAllocator_.Reset(begin, end); in AddFree()
98 uintptr_t end = object->GetEnd(); in Allocate() local
99 uintptr_t remainSize = end - begin - size; in Allocate()
109 bpAllocator_.Reset(begin, end); in Allocate()
/ark/runtime_core/verification/util/tests/
Dint_set_test.cpp54 RC_ASSERT(model.find(tmp) != model.end()); in AssertLazySetsEqual()
83 RC_TAG(set.find(value) == set.end() ? "value not in set" : "value in set"); in __anon5171e7bd0202()
98 set.insert(values.begin(), values.end()); in __anon5171e7bd0302()
100 std::sort(values.begin(), values.end()); in __anon5171e7bd0302()
101 int_set.Insert<true>(values.begin(), values.end()); in __anon5171e7bd0302()
103 int_set.Insert(values.begin(), values.end()); in __anon5171e7bd0302()
122 std::set_intersection(set1.begin(), set1.end(), set2.begin(), set2.end(), in __anon5171e7bd0402()
146 …std::set_union(set1.begin(), set1.end(), set2.begin(), set2.end(), std::inserter(std_union, std_un… in __anon5171e7bd0502()
/ark/runtime_core/disassembler/templates/
Dintrinsics_gen.h.erb32 % end
35 % end
48 if (std::find(spaces.begin(), spaces.end(), space) != spaces.end()) {
65 % end
66 % end
78 % end
96 % end
97 % end
104 % end
108 % end
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_number_test.cpp412 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
415 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
418 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
421 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
424 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0.4); in HWTEST_F_L0()
427 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 10); in HWTEST_F_L0()
430 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 1000… in HWTEST_F_L0()
433 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 1000… in HWTEST_F_L0()
438 …ASSERT_TRUE(std::isnan(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::ALLOW_HEX… in HWTEST_F_L0()
441 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::ALLOW_HEX), 16); in HWTEST_F_L0()
[all …]
/ark/runtime_core/runtime/tests/
Dbitmap_test_base.h37 …BitmapVerify(BitmapType *bitmap, void *begin, void *end) : bitmap_(bitmap), begin_(begin), end_(en… in BitmapVerify() argument
90 const size_t end = offset + fn_rounddown(std::rand() % (remain + 1), kAlignment); in RunTest() local
93 for (object_pointer_type k = offset; k < end; k += kAlignment) { in RunTest()
99 fn(&bm, heap_begin + offset, heap_begin + end, manual); in RunTest()
107 …unt_test_fn = [](MemBitmap<kAlignment> *bitmap, object_pointer_type begin, object_pointer_type end, in RunTestCount()
111 bitmap->IterateOverMarkedChunkInRange(ToVoidPtr(begin), ToVoidPtr(end), count_fn); in RunTestCount()
120 …der_test_fn = [](MemBitmap<kAlignment> *bitmap, object_pointer_type begin, object_pointer_type end, in RunTestOrder()
136 bitmap->IterateOverMarkedChunkInRange(ToVoidPtr(begin), ToVoidPtr(end), order_check); in RunTestOrder()

12345678910>>...13