Home
last modified time | relevance | path

Searched refs:first (Results 1 - 25 of 509) sorted by relevance

12345678910>>...21

/arkcompiler/runtime_core/static_core/assembler/tests/
H A Dlexer_test.cpp33 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
34 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
35 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST()
36 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
45 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
46 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
55 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
56 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST()
57 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST()
58 ASSERT_EQ(TokenTypeWhat(tok.first[ in TEST()
[all...]
H A Dparser_test.cpp32 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
33 v.push_back(l.TokenizeString("mov v1, v2}").first); in TEST()
49 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
50 v.push_back(l.TokenizeString("label:}").first); in TEST()
66 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
67 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in TEST()
77 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
78 v.push_back(l.TokenizeString("11111111}").first); in TEST()
88 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
89 v.push_back(l.TokenizeString("addi 1}").first); in TEST()
[all...]
/arkcompiler/runtime_core/assembler/tests/
H A Dassembler_lexer_test.cpp41 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in HWTEST_F()
42 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in HWTEST_F()
43 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in HWTEST_F()
44 EXPECT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in HWTEST_F()
59 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in HWTEST_F()
60 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in HWTEST_F()
75 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "ID") << "ID expected"; in HWTEST_F()
76 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in HWTEST_F()
77 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in HWTEST_F()
78 EXPECT_EQ(TokenTypeWhat(tok.first[ in HWTEST_F()
[all...]
H A Dlexer_test.cpp30 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
31 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
32 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST()
33 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST()
42 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
43 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST()
52 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST()
53 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST()
54 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST()
55 ASSERT_EQ(TokenTypeWhat(tok.first[ in TEST()
[all...]
H A Dparser_test.cpp29 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
30 v.push_back(l.TokenizeString("mov v1, v2}").first); in TEST()
46 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
47 v.push_back(l.TokenizeString("label:}").first); in TEST()
63 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
64 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in TEST()
74 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
75 v.push_back(l.TokenizeString("11111111}").first); in TEST()
85 v.push_back(l.TokenizeString(".function u8 main(){").first); in TEST()
86 v.push_back(l.TokenizeString("addi 1}").first); in TEST()
[all...]
H A Dassembler_parser_test.cpp43 v.push_back(l.TokenizeString(".function u8 main(){").first); in HWTEST_F()
44 v.push_back(l.TokenizeString("mov v1, v2}").first); in HWTEST_F()
65 v.push_back(l.TokenizeString(".function u8 main(){").first); in HWTEST_F()
66 v.push_back(l.TokenizeString("label:}").first); in HWTEST_F()
88 v.push_back(l.TokenizeString(".function u8 main(){").first); in HWTEST_F()
89 v.push_back(l.TokenizeString("jlt v10, lab123}").first); in HWTEST_F()
105 v.push_back(l.TokenizeString(".function u8 main(){").first); in HWTEST_F()
106 v.push_back(l.TokenizeString("11111111}").first); in HWTEST_F()
122 v.push_back(l.TokenizeString(".function u8 main(){").first); in HWTEST_F()
123 v.push_back(l.TokenizeString("addi 1}").first); in HWTEST_F()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dswitch_lowerer.cpp55 return left.first < right.first; in CasePairKeyLessThan()
65 float tmp2 = static_cast<float>(stmt->GetCasePair(static_cast<size_t>(static_cast<uint32>(j))).first) - in FindClusters()
66 static_cast<float>(stmt->GetCasePair(static_cast<size_t>(static_cast<uint32>(i))).first); in FindClusters()
90 if (i == front.first) { in InitSwitchItems()
110 node->SetTagOffset(static_cast<int32>(stmt->GetCasePair(static_cast<size_t>(startIdx)).first)); in BuildRangeGotoNode()
113 int64 lastCaseTag = stmt->GetSwitchTable().at(startIdx).first; in BuildRangeGotoNode()
119 while ((stmt->GetCasePair(i).first != (lastCaseTag + 1)) && (stmt->GetCasePair(i).first != lastCaseTag)) { in BuildRangeGotoNode()
126 curTag = static_cast<uint32>(stmt->GetCasePair(static_cast<size_t>(i)).first in BuildRangeGotoNode()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dptr_list_ref.h232 explicit PtrListRef(pointer value) : first(value), last(value) {} in PtrListRef()
234 PtrListRef(pointer first, pointer last) : first(first), last(last == nullptr ? first : last) {} in PtrListRef() argument
240 return iterator(this->first); in begin()
245 return const_iterator(this->first); in begin()
250 return const_iterator(this->first); in cbegin()
285 return reverse_iterator(iterator(this->first == nullptr ? nullptr : this->first in rend()
511 T *first = nullptr; global() member in maple::PtrListRef
[all...]
/arkcompiler/runtime_core/assembler/
H A Dassembly-ins.cpp21 std::string panda::pandasm::Ins::RegsToString(bool &first, bool print_args, size_t first_arg_idx) const in RegsToString() argument
25 if (!first) { in RegsToString()
28 first = false; in RegsToString()
40 std::string panda::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
44 if (!first) { in ImmsToString()
47 first = false; in ImmsToString()
61 std::string panda::pandasm::Ins::IdsToString(bool &first) const in IdsToString()
65 if (!first) { in IdsToString()
68 first = false; in IdsToString()
78 bool first in OperandsToString() local
[all...]
/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-ins.cpp21 std::string ark::pandasm::Ins::RegsToString(bool &first, bool printArgs, size_t firstArgIdx) const in RegsToString() argument
25 if (!first) { in RegsToString()
28 first = false; in RegsToString()
40 std::string ark::pandasm::Ins::ImmsToString(bool &first) const in ImmsToString()
44 if (!first) { in ImmsToString()
47 first = false; in ImmsToString()
61 std::string ark::pandasm::Ins::IdsToString(bool &first) const in IdsToString()
65 if (!first) { in IdsToString()
68 first = false; in IdsToString()
78 bool first in OperandsToString() local
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dmemory_coalescing.cpp85 << "v" << entry.first->GetId() << " = {" << entry.second.initial << ", " << entry.second.step << "}"; in VariableAnalysis()
90 << "v" << entry.first->GetId() << " = v" << entry.second.base->GetId() << " + " << entry.second.diff; in VariableAnalysis()
358 // We have already checked the second inst. We now want to check the first one in FindUpperInsertAfter()
361 checkInst = pair.first->IsPrecedingInSameBlock(pair.second) ? pair.first : pair.second; in FindUpperInsertAfter()
412 // We have already checked the first inst. We now want to check the second one in FindLowerInsertAfter()
415 checkInst = pair.first->IsPrecedingInSameBlock(pair.second) ? pair.second : pair.first; in FindLowerInsertAfter()
431 /// Add a pair if a difference between indices equals to one. The first in pair is with lower index.
434 Inst *first in TryAddCoalescedPair() local
649 InsertPair(Inst *first, Inst *second, Inst *insertAfter) InsertPair() argument
693 ReplaceLoadArray(Inst *first, Inst *second, Inst *insertAfter) ReplaceLoadArray() argument
710 ReplaceLoadObject(Inst *first, Inst *second, Inst *insertAfter) ReplaceLoadObject() argument
735 ReplaceLoadArrayI(Inst *first, Inst *second, Inst *insertAfter) ReplaceLoadArrayI() argument
752 ReplaceStoreArray(Inst *first, Inst *second, Inst *insertAfter) ReplaceStoreArray() argument
772 ReplaceStoreObject(Inst *first, Inst *second, Inst *insertAfter) ReplaceStoreObject() argument
799 ReplaceStoreArrayI(Inst *first, Inst *second, Inst *insertAfter) ReplaceStoreArrayI() argument
[all...]
H A Dmemory_coalescing.h29 Inst *first; member
74 void ReplacePair(Inst *first, Inst *second, Inst *insertAfter);
76 Inst *ReplaceLoadArray(Inst *first, Inst *second, Inst *insertAfter);
77 Inst *ReplaceLoadArrayI(Inst *first, Inst *second, Inst *insertAfter);
78 Inst *ReplaceLoadObject(Inst *first, Inst *second, Inst *insertAfter);
79 Inst *ReplaceStoreArray(Inst *first, Inst *second, Inst *insertAfter);
80 Inst *ReplaceStoreArrayI(Inst *first, Inst *second, Inst *insertAfter);
81 Inst *ReplaceStoreObject(Inst *first, Inst *second, Inst *insertAfter);
H A Dscheduler.cpp258 uint32_t numDeps = numDeps_[pair.first]; in ScheduleBarrierInst()
261 numDeps_[pair.first] = numDeps; in ScheduleBarrierInst()
264 uint32_t numDeps = numDeps_[pair.first]; in ScheduleBarrierInst()
267 numDeps_[pair.first] = numDeps; in ScheduleBarrierInst()
283 Inst *first = nullptr; in ScheduleBasicBlock() local
288 if (first == nullptr) { in ScheduleBasicBlock()
289 first = inst; in ScheduleBasicBlock()
300 cycle += ScheduleInstsBetweenBarriers(first, last); in ScheduleBasicBlock()
302 ASSERT(first->GetOpcode() != Opcode::LoadPairPart); in ScheduleBasicBlock()
303 sched_.push_back(first); in ScheduleBasicBlock()
363 ScheduleInstsBetweenBarriers(Inst *first, Inst *last) ScheduleInstsBetweenBarriers() argument
[all...]
H A Dcse.cpp115 while (it != replacePair_.end() && it->first != temp) { in ConvertTreeForestToStarForest()
123 minReplaceStar_.emplace_back(temp, rpair.first); in ConvertTreeForestToStarForest()
132 pair.second->ReplaceUsers(pair.first); in EliminateAlongDomTree()
150 pair.first.emplace_back(instl); in BuildSetOfPairs()
155 pair.first.emplace_back(instl); in BuildSetOfPairs()
210 ASSERT(!pair.first.empty()); in GlobalCse()
211 auto instl = *pair.first.begin(); in GlobalCse()
222 auto inst = tuple.first; in GlobalCse()
227 phi->AppendInput(pair.first); in GlobalCse()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Dsource_manager.cpp67 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
70 ASSERT_EQ(sm_.GetSourceFileName(test_id0.first), "test.pa"); in TEST_F()
74 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
78 ASSERT_EQ(test_id1.first, ScriptId(1)); in TEST_F()
83 ASSERT_EQ(sm_.GetSourceFileName(test_id2.first), "test2.pa"); in TEST_F()
84 ASSERT_EQ(sm_.GetSourceFileName(test_id3.first), "test3.pa"); in TEST_F()
89 ASSERT_EQ(sm_.GetSourceFileName(test_id2.first), "test2.pa"); in TEST_F()
92 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_deque.cpp32 uint32_t first = deque->GetFirst(); in InsertFront() local
35 if ((first + capacity - 1) % capacity == last) { in InsertFront()
36 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertFront()
39 first = 0; in InsertFront()
43 first = (first + capacity - 1) % capacity; in InsertFront()
44 elements->Set(thread, first, value); in InsertFront()
45 deque->SetFirst(first); in InsertFront()
53 uint32_t first = deque->GetFirst(); in InsertEnd() local
56 if (first in InsertEnd()
93 GrowCapacity(JSThread *thread, const JSHandle<JSAPIDeque> &deque, uint32_t oldCapacity, uint32_t first, uint32_t last) GrowCapacity() argument
111 uint32_t first = GetFirst(); PopFirst() local
140 uint32_t first = GetFirst(); IsEmpty() local
149 uint32_t first = GetFirst(); GetSize() local
160 uint32_t first = GetFirst(); Get() local
174 uint32_t first = GetFirst(); Set() local
183 uint32_t first = GetFirst(); Has() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/
H A Denumerate_napi.h21 #define EVERY_SECOND2(first, second) , second
22 #define EVERY_SECOND3(first, second, ...) , second EVERY_SECOND2(__VA_ARGS__)
23 #define EVERY_SECOND4(first, second, ...) , second EVERY_SECOND3(__VA_ARGS__)
24 #define EVERY_SECOND5(first, second, ...) , second EVERY_SECOND4(__VA_ARGS__)
25 #define EVERY_SECOND6(first, second, ...) , second EVERY_SECOND5(__VA_ARGS__)
26 #define EVERY_SECOND7(first, second, ...) , second EVERY_SECOND6(__VA_ARGS__)
27 #define EVERY_SECOND8(first, second, ...) , second EVERY_SECOND7(__VA_ARGS__)
28 #define EVERY_SECOND9(first, second, ...) , second EVERY_SECOND8(__VA_ARGS__)
30 #define PARAMS_PAIR2(first, second) , first secon
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_string_iterator.cpp61 // 9. Let first be the code unit value at index position in s. in NextInternal()
62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position); in NextInternal() local
65 // 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string consisting of the in NextInternal()
66 // single code unit first. in NextInternal()
68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in NextInternal()
69 first > base::utf_helper::DECODE_LEAD_HIGH) { in NextInternal()
70 if (EcmaStringAccessor::CanBeCompressed(&first, 1)) { in NextInternal()
72 result.Update(singleCharTable->GetStringFromSingleCharTable(first)); in NextInternal()
74 std::vector<uint16_t> resultString {first, in NextInternal()
[all...]
/arkcompiler/ets_runtime/test/moduletest/regexpflagd/
H A Dregexpflagd.js22 var regexpNames = /姓氏:(?<first>.+),名字:(?<last>.+)/gmd;
30 print(result.indices.groups.first);
32 print(result.groups.first);
39 print(result.indices.groups.first);
41 print(result.groups.first);
/arkcompiler/ets_frontend/es2panda/aot/
H A DresolveDepsRelation.cpp46 if (progInfo.first.find(util::NPM_ENTRIES) != std::string::npos) { in FillRecord2ProgramMap()
47 resolvedDepsRelation_[progInfo.first].insert(record.second.name); in FillRecord2ProgramMap()
53 if (CollectCommonjsRecords(record.second.field_list, progInfo.first, record.second.name)) { in FillRecord2ProgramMap()
56 record2ProgramMap[record.second.name] = progInfo.first; in FillRecord2ProgramMap()
78 auto fileName = dep.first; in DumpDepsRelations()
79 size_t abcFileNameSeparatorPos = dep.first.rfind(util::CHAR_VERTICAL_LINE); in DumpDepsRelations()
80 size_t pos = dep.first.rfind(util::SLASH_TAG, abcFileNameSeparatorPos); in DumpDepsRelations()
82 fileName = dep.first.substr(pos + 1, abcFileNameSeparatorPos - pos - 1); in DumpDepsRelations()
132 if (pair.first.find(recordName) == std::string::npos) { in CollectStaticImportDepsRelation()
/arkcompiler/ets_runtime/ecmascript/
H A Don_heap.h35 static OnHeapMode Merge(OnHeapMode first, OnHeapMode second) in Merge() argument
37 if (IsNone(first) || IsNone(second) || (first != second)) { in Merge()
40 return first; in Merge()
/arkcompiler/ets_frontend/es2panda/parser/module/
H A DsourceTextModuleRecord.cpp30 return insertedRes.first->second; in AddModuleRequest()
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()
179 it = localExportEntries_.upper_bound(it->first)) { in AssignIndexToModuleVariable()
180 auto variable = CheckAndAssignIndex(moduleScope, it->first, &index); in AssignIndexToModuleVariable()
182 auto range = localExportEntries_.equal_range(it->first); in AssignIndexToModuleVariable()
183 for (auto local_iter = range.first; local_iter != range.second; local_iter++) { in AssignIndexToModuleVariable()
191 CheckAndAssignIndex(moduleScope, elem.first, &index); in AssignIndexToModuleVariable()
216 if (it.first ! in GetModuleRequestIdx()
[all...]
/arkcompiler/runtime_core/static_core/abc2program/tests/
H A Dabc2program_test.cpp85 EXPECT_TRUE(it.first == it.second.name); in TEST_F()
86 recordNames.emplace_back(it.first); in TEST_F()
103 existingFunctions.insert(it.first); in TEST_F()
112 if (it.first == "HelloWorld") { in TEST_F()
139 EXPECT_TRUE(it.first == it.second.name); in TEST_F()
140 recordNames.emplace_back(it.first); in TEST_F()
158 existingFunctions.insert(it.first); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/test/unit/dynamic/
H A Ddynamic_call_test.cpp78 auto first = MarkChainDynamic(obj); in ParseDynExpr() local
79 return {prog, obj, first}; in ParseDynExpr()
114 auto [prog, obj, first] = ParseDynExpr(strExpr); in TEST_F()
125 AddDynImport("A", varbinder, first->AsIdentifier()); in TEST_F()
133 auto [prog, obj, first] = ParseDynExpr(strExpr); in TEST_F()
146 AddDynImport("A", varbinder, first->AsIdentifier()); in TEST_F()
154 auto [program, obj, first] = ParseDynExpr(strExpr); in TEST_F()
167 auto [program, obj, first] = ParseDynExpr(strExpr); in TEST_F()
179 AddDynImport("A", varbinder, first->AsIdentifier()); in TEST_F()
187 auto [program, obj, first] in TEST_F()
[all...]
/arkcompiler/ets_runtime/ecmascript/regexp/
H A Dregexp_opcode.cpp488 buf->EmitU16(range.first); in InsertOpCode()
515 buf->EmitU32(range.first); in InsertOpCode()
613 if (IsIntersect(start, end, iter->first, iter->second) || in Insert()
614 IsAdjacent(start, end, iter->first, iter->second)) { in Insert()
615 iter->first = std::min(iter->first, start); in Insert()
620 if (iter->first > end) { in Insert()
643 if (range.first >= interItem.first) { in Inter()
644 firstMax = range.first; in Inter()
696 uint32_t first = iter->first; Invert() local
[all...]

Completed in 19 milliseconds

12345678910>>...21