Home
last modified time | relevance | path

Searched full:first (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/arkcompiler/runtime_core/assembler/tests/
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[3].type), "ID") << "ID expected"; in TEST()
[all …]
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 …]
/arkcompiler/ets_runtime/test/aottest/stobjbyvalue/
Dstobjbyvalue.ts18 var first = 0;
24 print(array[first]);
26 array[first] = "helloworld";
28 print(array[first]);
37 return `${this[first]} ${this[hundred]}`;
41 [this[first], this[hundred]] = value.split(" ");
44 print(phrase[first]);
46 phrase[first] = "helloworld";
48 print(phrase[first]);
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_deque.cpp38 uint32_t first = deque->GetFirst(); in InsertFront() local
41 if ((first + capacity - 1) % capacity == last) { in InsertFront()
42 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertFront()
45 first = 0; in InsertFront()
49 first = (first + capacity - 1) % capacity; in InsertFront()
50 elements->Set(thread, first, value); in InsertFront()
51 deque->SetFirst(first); in InsertFront()
59 uint32_t first = deque->GetFirst(); in InsertEnd() local
62 if (first == (last + 1) % capacity) { in InsertEnd()
63 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertEnd()
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-ins.cpp21 std::string panda::pandasm::Ins::RegsToString(bool &first, bool print_args, size_t first_arg_idx) c… 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 = true; in OperandsToString() local
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp61 // 9. Let first be the code unit value at index position in s. in Next()
62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position); in Next() local
65 …// 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string con… in Next()
66 // single code unit first. in Next()
68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in Next()
69 first > base::utf_helper::DECODE_LEAD_HIGH) { in Next()
70 std::vector<uint16_t> resultString {first, 0x0}; in Next()
76 // first. in Next()
77 …// c. Else, let resultString be the string consisting of the code unit first followed by the code … in Next()
80 std::vector<uint16_t> resultString {first, 0x0}; in Next()
[all …]
/arkcompiler/runtime_core/assembler/templates/
Dins_create_api.h.erb24 % insn = group.first
30 <%=group.first.emitter_name%>_.opcode = Opcode::<%= insn.asm_token %>;
40 <%=group.first.emitter_name%>_.regs.reserve(<%= count_reg %>);
45 <%=group.first.emitter_name%>_.ids.push_back(label);
47 <%=group.first.emitter_name%>_.imms.emplace_back(<%= o.name %>);
50 <%=group.first.emitter_name%>_.ids.push_back(<%= o.name %>);
52 <%=group.first.emitter_name%>_.regs.push_back(<%= o.name %>);
/arkcompiler/runtime_core/libpandabase/tests/
Dexpected_test.cpp24 enum class ErrorCode { First, Second }; enumerator
30 return Unexpected {ErrorCode::First}; in helper()
69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
73 EXPECT_EQ(e2.Error(), ErrorCode::First); in TEST()
82 const auto e1 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
83 EXPECT_EQ(e1.Error(), ErrorCode::First); in TEST()
99 t = Unexpected(ErrorCode::First); in TEST()
101 EXPECT_EQ(t.Error(), ErrorCode::First); in TEST()
112 EXPECT_EQ(res1.Error(), ErrorCode::First); in TEST()
/arkcompiler/runtime_core/compiler/docs/
Dscheduler_doc.md26 For each basic block we first scan instructions in reverse order marking barriers and calculating t…
101 Inst* first = nullptr;
105 if (first == nullptr)
106 first = inst;
115 cycle += ScheduleInstsBetweenBarriers(first, last);
117 sched_.push_back(first);
125 first = nullptr;
131 // Schedule instructions between [first..last] inclusive, none of them are barriers.
132 uint32_t Scheduler::ScheduleInstsBetweenBarriers(Inst* first, Inst* last) {
151 for (auto inst = first; inst != last->GetNext(); inst = inst->GetNext()) {
[all …]
/arkcompiler/runtime_core/verification/models/typesystem/
Dark_subtyping_closure.als84 // return pairs of types when second type depends on first
183 TypeSystem.subtyping.first.is_correct
187 not first.related[t1,t2]
188 first.allowed_to_be_related[t1, t2]
189 TypeSystem.to_be_subtyped.first = complement_to_full[TypeSystem.subtyping.first, t1 -> t2]
193 all t: Time - first | t.step
209 TypeSystem.subtyping.first.is_correct
211 not first.related[t1,t2]
212 first.allowed_to_be_related[t1, t2]
213 TypeSystem.to_be_subtyped.first = complement_to_full[TypeSystem.subtyping.first, t1 -> t2]
[all …]
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp78 JSTaggedValue argIndex = GetArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
106 …JSHandle<JSObject> argReceiver = GetHArg<JSObject>(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
116 JSTaggedType argSetter = GetTArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
138 JSTaggedValue len = GetArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
173 // this case static static JSHandle<TaggedArray> arr don't free in first call in DEF_RUNTIME_STUBS()
182 arr->Set(thread, 0, JSTaggedValue(3.5)); // 3.5: first element in DEF_RUNTIME_STUBS()
218 JSTaggedValue length = GetArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
229 JSTaggedType array = GetTArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
252 …STaggedValue> valueHandle = GetHArg<JSTaggedValue>(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
275 JSTaggedValue value = GetArg(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dscheduler.cpp232 Inst *first = nullptr; in ScheduleBasicBlock() local
237 if (first == nullptr) { in ScheduleBasicBlock()
238 first = inst; in ScheduleBasicBlock()
249 cycle += ScheduleInstsBetweenBarriers(first, last); in ScheduleBasicBlock()
251 ASSERT(first->GetOpcode() != Opcode::LoadPairPart); in ScheduleBasicBlock()
252 sched_.push_back(first); in ScheduleBasicBlock()
261 first = nullptr; in ScheduleBasicBlock()
310 // Rearranges instructions between [first..last] inclusive, none of them are barriers.
311 uint32_t Scheduler::ScheduleInstsBetweenBarriers(Inst *first, Inst *last) in ScheduleInstsBetweenBarriers() argument
313 COMPILER_LOG(DEBUG, SCHEDULER) << "SchedBetween " << first->GetId() << " and " << last->GetId(); in ScheduleInstsBetweenBarriers()
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Dlist.h242 Iterator InsertAfter(ConstIterator position, InputIterator first, InputIterator last) in InsertAfter() argument
244 while (first != last) { in InsertAfter()
245 position = InsertAfter(position, *first++); in InsertAfter()
307 * Transfers single element first+1 into place after position.
309 void Splice(ConstIterator position, List &other, ConstIterator first) in Splice() argument
312 Splice(position, other, first, first + SHIFT); in Splice()
316 * Transfers the elements in the range (first,last) into place after position.
318 void Splice(ConstIterator position, List &src_list, ConstIterator first, ConstIterator last) in Splice() argument
321 ASSERT(first != last); in Splice()
323 if (++ConstIterator(first) == last) { in Splice()
[all …]
/arkcompiler/ets_frontend/es2panda/util/
Dbase64.cpp30 // former 00 + first 6 bits of the first char in Base64Encode()
32 // 00 + the last 2 bits of the first char + the first 4 bits of the second char in Base64Encode()
34 // 00 + last 4 bits of the second char + the first 2 bits of the third char in Base64Encode()
93 // the last 6 bit of the first char + the 2~3 bit of the second char(first 4 bit - 00) in Base64Decode()
101 // the last 4 bit of the second char + the 2~5 bit of the third char(first 6 bit - 00) in Base64Decode()
Dhotfix.cpp213 if (litPair.first == bufferIdx) { in ExpandLiteral()
225 if (litPair.first != bufferIdx) { in GetLiteralMethods()
282 if (lexenv.second.first == variableName) { in GetSlotIdFromSymbolTable()
283 return lexenv.first; in GetSlotIdFromSymbolTable()
326 modifiedClassNames_.insert(cls.first); in HandleModifiedClasses()
447 auto varSlot = variable.first; in CompareLexenv()
457 …if (std::string(variable.second.first) != lexInfo.first || variable.second.second != lexInfo.secon… in CompareLexenv()
473 auto &className = hashList[i].first; in CompareClassHash()
478 … std::cerr << "[Patch] Found class " << hashList[i].first << " changed, not supported! If " << in CompareClassHash()
479 … hashList[i].first << " is not changed and you are changing UI Component, please only " << in CompareClassHash()
[all …]
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.cpp28 moduleRequestsIdxMap_.insert(std::make_pair(insertedRes.first->second, source)); in AddModuleRequest()
29 return insertedRes.first->second; in AddModuleRequest()
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()
170 it = localExportEntries_.upper_bound(it->first)) in AssignIndexToModuleVariable()
172 moduleScope->AssignIndexToModuleVariable(it->first, index); in AssignIndexToModuleVariable()
178 moduleScope->AssignIndexToModuleVariable(elem.first, index); in AssignIndexToModuleVariable()
/arkcompiler/runtime_core/runtime/mem/gc/heap-space-misc/
Dcrossing_map.h58 // This element (or map) can be used to get the first object address, which starts inside this page…
65 * @param start_addr - first bit of the memory which must be covered by the Crossing Map.
85 * Crossing map doesn't know about existed objects (it knows only about first).
98 * \brief Find and return the first object, which starts in an interval inclusively
101 * we find the first object, which crosses the border of this interval.
102 * @param start_addr - pointer to the first byte of the interval.
104 * @return Returns the first object which starts inside an interval,
112 * @param start_addr - pointer to the first byte of the interval.
119 * @param start_addr - pointer to the first byte of the interval.
144 …// - if Status == Initialized, the Offset value is an offset in words of the first element on this…
[all …]
/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_opcode.cpp472 buf->EmitU16(range.first); in InsertOpCode()
499 buf->EmitU32(range.first); in InsertOpCode()
581 if (IsIntersect(start, end, iter->first, iter->second) || in Insert()
582 IsAdjacent(start, end, iter->first, iter->second)) { in Insert()
583 iter->first = std::min(iter->first, start); in Insert()
587 if (iter->first > end) { in Insert()
605 Insert(range.first, range.second); in Insert()
621 if (iter->first == 0 && iter->second == maxValue) { in Invert()
627 uint32_t first = iter->first; in Invert() local
634 iter->first = iter->second + 1; in Invert()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_deque_stub_builder.h36 GateRef first = GetFirst(obj); in GetSize() local
38 return Int32Mod(Int32Add(Int32Sub(last, first), capacity), capacity); in GetSize()
46 GateRef first = GetFirst(obj); in Get() local
47 GateRef curIndex = Int32Mod(Int32Add(first, index), capacity); in Get()
/arkcompiler/ets_runtime/docs/
Denvironment-setup-and-compilation.md11 1. First compilation:
17 2. Compile an ARK runtime after the first compilation:
34 3. Compile the ARK frontend after the first compilation:
/arkcompiler/ets_runtime/ecmascript/stackmap/
Dark_stackmap_builder.cpp71 DwarfRegType reg = stackmap.first; in SaveArkStackMap()
106 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(v.first)), sizeof(v.first)); in SaveArkDeopt()
237 return x.first < y.first; in SortCallSite()
246 pcSet.insert(it.first); in CalcCallsitePc()
249 pcSet.insert(it.first); in CalcCallsitePc()
298 sizeAndArkDeopt.first = total; in GenARKDeopt()
317 callsite.head.calliteOffset = x.first; in GenArkCallsiteAOTFileInfo()
324 int loc = FindLoc(CallsitePcs, x.first); in GenArkCallsiteAOTFileInfo()
330 int loc = FindLoc(CallsitePcs, x.first); in GenArkCallsiteAOTFileInfo()
333 result.callsites[static_cast<uint32_t>(loc)].head.calliteOffset = x.first; in GenArkCallsiteAOTFileInfo()
[all …]
/arkcompiler/runtime_core/runtime/mem/
Dalloc_config.h88 * \brief Find and return the first object, which starts in an interval inclusively
91 * we find the first object, which crosses the border of this interval.
92 * @param start_addr - pointer to the first byte of the interval.
94 * @return Returns the first object which starts inside an interval,
105 * @param start_addr - pointer to the first byte of the interval.
115 * @param start_addr - pointer to the first byte of the interval.
302 * \brief Find and return the first object, which starts in an interval inclusively
305 * we find the first object, which crosses the border of this interval.
306 * @param start_addr - pointer to the first byte of the interval.
308 * @return Returns the first object which starts inside an interval,
[all …]
/arkcompiler/runtime_core/runtime/include/
Dhistogram-inl.h74 bool first = true; in GetTopDump() local
79 if (!first) { in GetTopDump()
82 statistic << it.first << ":" << it.second; in GetTopDump()
83 first = false; in GetTopDump()
/arkcompiler/runtime_core/runtime/templates/
Dshorty_values.h.erb26 % first_nonvoid = PandaFile::types.select {|type| type.name != "void"}.first.code
27 % first_32 = PandaFile::types.select {|type| type.width && type.width == 32}.first.code
29 % first_64 = PandaFile::types.select {|type| (type.width && type.width == 64)}.first.code
30 % first_float = PandaFile::types.select {|type| type.properties.include?("float") }.first.code
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dintrinsic_codegen_test.inl.erb20 …ph()->GetRuntime(), RuntimeInterface::IntrinsicId::<%= intrinsic.entrypoint_name %>, arch.first)) {
21 …return_type %>, RuntimeInterface::IntrinsicId::<%= intrinsic.entrypoint_name %>, arch.first, true))
30 …eturn_type %>, RuntimeInterface::IntrinsicId::<%= intrinsic.entrypoint_name %>, arch.first, false),

12345678910>>...21