Home
last modified time | relevance | path

Searched refs:start (Results 1 - 25 of 350) sorted by relevance

12345678910>>...14

/arkcompiler/runtime_core/static_core/verification/util/parser/tests/
H A Dparser_test.cpp109 static void VerifierParserTest1(Context &cont, It &start, It &end) in VerifierParserTest1() argument
111 start = &(string[0U]); in VerifierParserTest1()
113 EXPECT_TRUE(ENDP(cont, start, end)); in VerifierParserTest1()
115 EXPECT_FALSE(ENDP(cont, start, end)); in VerifierParserTest1()
118 start = &(string[0U]); in VerifierParserTest1()
120 EXPECT_TRUE(ACSTRINGP(cont, start, end)); in VerifierParserTest1()
121 start = &(acstring[0U]); in VerifierParserTest1()
123 EXPECT_TRUE(ACSTRINGP(cont, start, end)); in VerifierParserTest1()
125 EXPECT_FALSE(ACSTRINGP(cont, start, end)); in VerifierParserTest1()
129 start in VerifierParserTest1()
150 VerifierParserTest2(Context &cont, It &start, It &end) VerifierParserTest2() argument
198 It start = &(aBc[0U]); TEST() local
[all...]
/arkcompiler/runtime_core/static_core/verification/util/parser/
H A Dparser.h79 static const auto L = [c](Context &, Iter &start, Iter end) { in OfCharset()
80 Iter s = start; in OfCharset()
84 bool result = (s != start); in OfCharset()
86 start = s; in OfCharset()
95 static const auto L = [=](Context &, Iter &start, Iter end) { in OfString()
96 Iter s = start; in OfString()
104 start = s; in OfString()
113 static const auto L = [=](Context &, Iter &start, Iter end) { in SkipComment()
114 Iter s = start; in SkipComment()
129 start in SkipComment()
[all...]
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dparse_class.py27 def parse_friend_class(data: str, start: int) -> Tuple[int, str]:
28 name_start = data.find("friend class ", start) + len("friend class ")
34 def parse_class(data: str, start: int = 0, namespace: str = "", parent_class_name: str = "") -> Tuple[int, Dict]:
36 start_of_body = smart_find_first_of_characters("{", data, start)
41 colon_pos = find_first_of_characters(":", data, start, start_of_body)
44 start_of_name = data.find("class ", start) + len("class ")
66 def parse_template_prefix(data: str, start: int) -> Tuple[int, str]:
67 start = find_first_not_restricted_character(" ", data, start)
68 if data[start
[all...]
H A Dline_iterator.py25 def __init__(self, data_raw: str, start: int = 0):
28 self.start = start
29 self.end = find_first_of_characters("\n", self.data, start)
31 self.current_line = self.data[self.start : self.end].strip(" \n")
33 self.next_parenthese = find_first_of_characters("(", self.data, start)
34 self.next_semicolon = find_first_of_characters(";", self.data, start)
35 self.next_equal = find_first_of_characters("=", self.data, start)
50 self.start = self.end + 1
51 self.end = find_first_of_characters("\n", self.data, self.start)
[all...]
H A Dparse_method.py30 def parse_method_or_constructor(data: str, start: int = 0) -> Tuple[int, Dict]:
36 end_of_args = parse_declaration_without_postfix(data, start, res)
39 next_semicolon = find_first_of_characters(";", data, start) # <--- for declaration
40 start_of_body = smart_find_first_of_characters("{", data, start) # <--- for definition
61 res["raw_declaration"] = data[start:end_of_function_declaration].strip(" \n")
65 res["raw_declaration"] = data[start:colon_pos].strip(" \n")
83 def parse_declaration_without_postfix(data: str, start: int, res: Dict[str, Any]) -> int:
85 start_of_args = find_first_of_characters("(", data, start)
91 start_of_args > find_first_of_characters(";", data, start)
92 and data[start
[all...]
H A Dparse_namespace.py22 def parse_namespace(data: str, start: int = 0) -> Tuple[int, Dict]:
24 namespace_name = data[data.find("namespace", start) : data.find("{", start)].replace("namespace", "").strip(" ")
26 namespace_start, namespace_end = find_scope_borders(data, start)
H A Dparse_using.py23 def parse_using(data: str, start: int = 0) -> Tuple[int, Dict]:
26 start_of_name = find_first_not_restricted_character(" ", data, data.find("using ", start) + len("using "))
31 var_start = find_first_not_restricted_character(" ", data, data.find("=", start))
32 var_end = data.find(";", start)
H A Dcpp_parser.py57 self.it.end, self.template = parse_template_prefix(self.it.data, self.it.start)
61 self.it.end, self.parsed = parse_namespace(self.it.data, self.it.start)
66 self.it.end, self.parsed = parse_enum_class(self.it.data, self.it.start)
71 self.it.end, self.parsed = parse_struct(self.it.data, self.it.start)
76 self.it.end, self.parsed = parse_using(self.it.data, self.it.start)
81 self.it.end, self.parsed = parse_define_macros(self.it.data, self.it.start)
95 self.it.end, self.parsed = parse_friend_class(self.it.data, self.it.start)
106 self.it.data, self.it.start, self.namespace, self.parent_class_name
112 self.it.end, self.parsed = parse_method_or_constructor(self.it.data, self.it.start)
117 self.parsed = parse_argument(self.it.data[self.it.start
[all...]
H A Dparse_define.py25 def parse_define_macros(data: str, start: int = 0) -> Tuple[int, Dict]:
28 pos, res["name"] = parse_define_macros_name(data, start)
29 end_of_line = find_first_of_characters("\n", data, start)
65 def parse_define_macros_name(data: str, start: int) -> Tuple[int, str]:
66 start_of_name = find_first_not_restricted_character(" \n", data, data.find("#define", start) + len("#define"))
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_field.h27 template <typename T, size_t start, size_t bits_num = 1>
31 static_assert(start < sizeof(uint64_t) * BITS_PER_BYTE, "Invalid position");
34 static_assert(bits_num + start <= sizeof(uint64_t) * BITS_PER_BYTE, "Invalid position + size");
38 static constexpr unsigned START_BIT = start;
39 static constexpr unsigned END_BIT = start + bits_num;
65 using NextField = BitField<T2, start + bits_num, bits_num2>;
71 using NextFlag = BitField<bool, start + bits_num, 1>;
87 return MaxValue() << start;
113 return static_cast<T>((value >> start) & MaxValue());
122 return (static_cast<uint64_t>(value) << start);
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dswitch_lowerer.cpp181 /* start and end is with respect to switchItems */
182 BlockNode *SwitchLowerer::BuildCodeForSwitchItems(int32 start, int32 end, bool lowBlockNodeChecked, in BuildCodeForSwitchItems() argument
185 DEBUG_ASSERT(start >= 0, "invalid args start"); in BuildCodeForSwitchItems()
188 if (start > end) { in BuildCodeForSwitchItems()
198 while ((start <= end) && (switchItems[start].second != 0)) { in BuildCodeForSwitchItems()
202 (stmt->GetCasePair(static_cast<size_t>(switchItems[static_cast<uint64>(start)].first)).first == 0))) { in BuildCodeForSwitchItems()
203 cGoto = BuildCondGotoNode(-1, OP_brtrue, *BuildCmpNode(OP_lt, switchItems[start].first)); in BuildCodeForSwitchItems()
209 rangeGoto = BuildRangeGotoNode(switchItems[start] in BuildCodeForSwitchItems()
[all...]
/arkcompiler/runtime_core/static_core/compiler/aot/
H A Daot_manager.cpp84 size_t start = 0; in FancyClassContextPrint() local
85 size_t end = context.find(DELIMITER, start); in FancyClassContextPrint()
87 LOG(ERROR, AOT) << "\t\t" << context.substr(start, end - start); in FancyClassContextPrint()
88 start = end + 1; in FancyClassContextPrint()
89 end = context.find(DELIMITER, start); in FancyClassContextPrint()
91 LOG(ERROR, AOT) << "\t\t" << context.substr(start); in FancyClassContextPrint()
97 size_t start = 0; in CheckFilesInClassContext() local
98 size_t end = aotContext.find(DELIMITER, start); in CheckFilesInClassContext()
100 auto fileContext = aotContext.substr(start, en in CheckFilesInClassContext()
[all...]
/arkcompiler/ets_runtime/ecmascript/serializer/
H A Dbase_serializer-inl.h26 auto visitor = [this](TaggedObject *root, ObjectSlot start, ObjectSlot end, VisitObjectArea area) { in SerializeObjectField()
29 WriteMultiRawData(start.SlotAddress(), end.SlotAddress() - start.SlotAddress()); in SerializeObjectField()
33 WriteMultiRawData(start.SlotAddress(), end.SlotAddress() - start.SlotAddress()); in SerializeObjectField()
37 SerializeInObjField(root, start, end); in SerializeObjectField()
41 SerializeTaggedObjField(serializeType, root, start, end); in SerializeObjectField()
H A Dbase_serializer.h58 bool SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, ObjectSlot start, ObjectSlot end);
59 void SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
60 void SerializeSFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
62 void SerializeLexicalEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
63 void SerializeSendableEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
64 void SerializeAsyncFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
66 void SerializeTaggedObjField(SerializeType serializeType, TaggedObject *root, ObjectSlot start, ObjectSlot end);
67 void SerializeInObjField(TaggedObject *object, ObjectSlot start, ObjectSlot end);
H A Dbase_serializer.cpp106 ObjectSlot start, ObjectSlot end) in SerializeSpecialObjIndividually()
110 SerializeHClassFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
113 SerializeLexicalEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
116 SerializeSendableEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
120 SerializeSFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
123 SerializeAsyncFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
130 void BaseSerializer::SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end) in SerializeHClassFieldIndividually() argument
133 ObjectSlot slot = start; in SerializeHClassFieldIndividually()
174 void BaseSerializer::SerializeSFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end) in SerializeSFunctionFieldIndividually() argument
178 ObjectSlot slot = start; in SerializeSFunctionFieldIndividually()
105 SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, ObjectSlot start, ObjectSlot end) SerializeSpecialObjIndividually() argument
227 SerializeLexicalEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end) SerializeLexicalEnvFieldIndividually() argument
250 SerializeSendableEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end) SerializeSendableEnvFieldIndividually() argument
273 SerializeAsyncFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end) SerializeAsyncFunctionFieldIndividually() argument
326 SerializeTaggedObjField(SerializeType serializeType, TaggedObject *root, ObjectSlot start, ObjectSlot end) SerializeTaggedObjField() argument
338 SerializeInObjField(TaggedObject *object, ObjectSlot start, ObjectSlot end) SerializeInObjField() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_queue.h38 uint32_t start = GetStart().GetArrayLength(); in Pop() local
39 JSTaggedValue value = Get(start); in Pop()
40 Set(thread, start, JSTaggedValue::Hole()); in Pop()
44 SetStart(thread, JSTaggedValue((start + 1) % capacity)); in Pop()
63 uint32_t start = queue->GetStart().GetArrayLength(); in Push() local
66 if ((end + 1) % capacity == start) { in Push()
78 for (uint32_t i = start; newEnd < size; i = (i + 1) % capacity) { in Push()
115 uint32_t start = GetStart().GetArrayLength(); in Front() local
116 return JSTaggedValue(Get(start)); in Front()
134 uint32_t start in Size() local
173 SetStart(const JSThread *thread, JSTaggedValue start) SetStart() argument
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dmetainformation.py44 Returns a list of tuples (start: int, end: int, meta: ParsedMeta),
45 where 'start' and 'end' are indices in 'text' such that text[start:end] == "/*---" + strMeta + "---*/"
52 start_indices = [m.start() for m in re.finditer(META_START_PATTERN, text)]
63 start, end = meta_bounds[i]
64 if not prev_start < prev_end < start < end:
67 for start, end in meta_bounds:
68 meta = __parse_meta(text[start:end])
69 result.append((start, end, meta))
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
H A Dgc_intrusion_check.cpp149 const Instruction *start = &inst; in CheckInstruction() local
150 if (llvm::isa<PHINode>(start)) { in CheckInstruction()
154 auto phi = llvm::cast<PHINode>(start); in CheckInstruction()
156 start = incBlock->getTerminator(); in CheckInstruction()
159 auto statepoint = FindDefOrStatepoint(start, instVal); in CheckInstruction()
181 const Instruction *GcIntrusionCheck::FindDefOrStatepoint(const Instruction *start, const Instruction *def) in FindDefOrStatepoint() argument
184 return FindDefOrStatepointRecursive(start, def, &blockVisited); in FindDefOrStatepoint()
187 const Instruction *GcIntrusionCheck::FindDefOrStatepointRecursive(const Instruction *start, const Instruction *def, in FindDefOrStatepointRecursive() argument
192 auto block = start->getParent(); in FindDefOrStatepointRecursive()
193 start in FindDefOrStatepointRecursive()
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
H A Dshared_gc_marker.cpp56 [this, threadId](Root type, ObjectSlot start, ObjectSlot end) { in MarkLocalVMRoots()
57 this->HandleLocalRangeRoots(threadId, type, start, end); in MarkLocalVMRoots()
84 auto cacheStringCallback = [this, threadId](Root type, ObjectSlot start, ObjectSlot end) { in MarkStringCache()
85 this->HandleLocalRangeRoots(threadId, type, start, end); in MarkStringCache()
117 EcmaObjectRangeVisitor visitor = [this, threadId, cb](TaggedObject *root, ObjectSlot start, ObjectSlot end, in ProcessMarkStack()
120 if (VisitBodyInObj(root, start, end, cb)) { in ProcessMarkStack()
124 for (ObjectSlot slot = start; slot < end; slot++) { in ProcessMarkStack()
165 EcmaObjectRangeVisitor visitor = [this, threadId, cb](TaggedObject *root, ObjectSlot start, ObjectSlot end, in ProcessMarkStack()
168 if (VisitBodyInObj(root, start, end, cb)) { in ProcessMarkStack()
172 for (ObjectSlot slot = start; slo in ProcessMarkStack()
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dregion-inl.h279 inline void Region::ClearLocalToShareRSetInRange(uintptr_t start, uintptr_t end) in ClearLocalToShareRSetInRange() argument
282 packedData_.localToShareSet_->ClearRange(ToUintPtr(this), start, end); in ClearLocalToShareRSetInRange() local
286 inline void Region::AtomicClearLocalToShareRSetInRange(uintptr_t start, uintptr_t end) in AtomicClearLocalToShareRSetInRange() argument
289 packedData_.localToShareSet_->AtomicClearRange(ToUintPtr(this), start, end); in AtomicClearLocalToShareRSetInRange() local
301 inline void Region::AtomicClearSweepingLocalToShareRSetInRange(uintptr_t start, uintptr_t end) in AtomicClearSweepingLocalToShareRSetInRange() argument
304 sweepingLocalToShareRSet_->AtomicClearRange(ToUintPtr(this), start, end); in AtomicClearSweepingLocalToShareRSetInRange() local
339 inline void Region::ClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end) in ClearCrossRegionRSetInRange() argument
342 crossRegionSet_->ClearRange(ToUintPtr(this), start, end); in ClearCrossRegionRSetInRange() local
346 inline void Region::AtomicClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end) in AtomicClearCrossRegionRSetInRange() argument
349 crossRegionSet_->AtomicClearRange(ToUintPtr(this), start, en in AtomicClearCrossRegionRSetInRange() local
435 ClearNewToEdenRSetInRange(uintptr_t start, uintptr_t end) ClearNewToEdenRSetInRange() argument
438 packedData_.newToEdenSet_->ClearRange(ToUintPtr(this), start, end); ClearNewToEdenRSetInRange() local
457 ClearOldToNewRSetInRange(uintptr_t start, uintptr_t end) ClearOldToNewRSetInRange() argument
460 packedData_.oldToNewSet_->ClearRange(ToUintPtr(this), start, end); ClearOldToNewRSetInRange() local
472 AtomicClearSweepingOldToNewRSetInRange(uintptr_t start, uintptr_t end) AtomicClearSweepingOldToNewRSetInRange() argument
475 sweepingOldToNewRSet_->AtomicClearRange(ToUintPtr(this), start, end); AtomicClearSweepingOldToNewRSetInRange() local
479 ClearSweepingOldToNewRSetInRange(uintptr_t start, uintptr_t end) ClearSweepingOldToNewRSetInRange() argument
482 sweepingOldToNewRSet_->ClearRange(ToUintPtr(this), start, end); ClearSweepingOldToNewRSetInRange() local
[all...]
/arkcompiler/ets_runtime/test/aottest/exception_case6/
H A Dexception_case6.js27 let start = line.lastIndexOf('/') + 1
29 if (start < end) {
30 print(line.slice(start, end))
/arkcompiler/ets_runtime/test/aottest/exception_case4/
H A Dexception_case4.js26 let start = line.lastIndexOf('/') + 1
28 if (start < end) {
29 print(line.slice(start, end))
/arkcompiler/ets_runtime/test/aottest/exception_case10/
H A Dexception_case10.js29 let start = line.lastIndexOf('/') + 1
31 if (start < end) {
32 print(line.slice(start, end))
/arkcompiler/ets_runtime/test/aottest/exception_case1/
H A Dexception_case1.js26 let start = line.lastIndexOf('/') + 1
28 if (start < end) {
29 print(line.slice(start, end))
/arkcompiler/ets_runtime/test/aottest/exception_case8/
H A Dexception_case8.js30 let start = line.lastIndexOf('/') + 1
32 if (start < end) {
33 print(line.slice(start, end))

Completed in 9 milliseconds

12345678910>>...14