Home
last modified time | relevance | path

Searched full:second (Results 1 – 25 of 1118) sorted by relevance

12345678910>>...45

/arkcompiler/ets_runtime/test/moduletest/dataview/
Ddataview.js37 const second = new DataView(buf, 8); constant
39 second.setInt32(0, NaN);
40 print(second.getInt32(0));
41 second.setInt32(0, 13.54);
42 print(second.getInt32(0));
43 second.setInt32(0, -413.54);
44 print(second.getInt32(0));
45 second.setInt32(1, 2147483648);
46 print(second.getInt32(1));
47 second.setInt32(1, 13.54);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_array_concat.yaml19 method_signature: { first: "boolean[]", second: "boolean[]" },
20 method_signature_desc: { first: "boolean_array", second: "boolean_array" },
24 test10: { first: "[true]", second: "[true]" },
25 test20: { first: "[true, true]", second: "[false, false]" },
26 test30: { first: "[]", second: "[]" },
27 test40: { first: "[true, false]", second: "[]" },
28 test50: { first: "[]", second: "[false, true, false]" },
29 test51: { first: "[true, false, true]", second: "[]" },
46 method_signature: { first: "byte[]", second: "byte[]" },
47 method_signature_desc: { first: "byte_array", second: "byte_array" },
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/01.enumeration_integer_values/
Denum_int.params.yaml17 enum Enum { first, second, third }
20 assert Enum.second.valueOf() == 1
24 enum Enum { first, second = -2147483648, third}
27 assert Enum.second.valueOf() == -2147483648
31 enum Enum { first = 0x7fffffff - 2, second, third }
34 assert Enum.second.valueOf() == 2147483646
40 enum Enum { first = a, second = b, third = b - 1 }
43 assert Enum.second.valueOf() == b
47 enum Enum { first, second = -1, third }
50 assert Enum.second.valueOf() == -1
[all …]
Denum_int_n.params.yaml20 enum Enum { first = a, second = b, third = c }
23 assert Enum.second.valueOf() == b
27 enum Enum { first = 1.0, second, third } // wrong init type
32 enum Enum { first = 10e1, second, third } // wrong init type
37 enum Enum { first = true, second = false } // wrong init type
42 enum Enum1 { first = 42, second }
43 enum Enum2 { first = Enum1.first.valueOf(), second } // not a constant expression
46 assert Enum2.second.valueOf() == 43
49 enum Enum1 { first = 42, second }
50 enum Enum2 { first = 42, second }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/05.enumeration_equality_operators/
Denum_equality.params.yaml17 enum Enum { first, second, third = 0 }
19 assert Enum.first != Enum.second && Enum.second != Enum.third
22 enum Enum { first = 11, second = 11, third = 11 }
24 assert Enum.first == Enum.second && Enum.second == Enum.third
27 enum Enum { first = "A", second = "B", third = "A" }
29 assert Enum.first != Enum.second && Enum.second != Enum.third
32 enum Enum { first = "ABC", second = "ABC", third = "ABC" }
34 assert Enum.first == Enum.second && Enum.second == Enum.third
/arkcompiler/toolchain/tooling/client/manager/
Dsource_manager.cpp94 std::cout << " fileName : " << it->second.first <<std::endl; in GetFileName()
106 int scriptId = scriptIdIt->second; in SetFileSource()
109 if (it != fileSource_.end() && it->second.second.empty()) { in SetFileSource()
114 it->second.second.push_back(line); in SetFileSource()
118 it->second.second.push_back(fileSource.substr(startPos)); in SetFileSource()
129 for (const std::string& value : it->second.second) { in GetFileSource()
132 return it->second.second; in GetFileSource()
171 std::cout << (debugLineNum_ + 1) << " " << it->second.second[debugLineNum_] << std::endl; in GetDebugSources()
190 if (startLine >= static_cast<int>(it->second.second.size()) + STATR_LINE_OFFSET || in ListSourceCodeWithParameters()
193 static_cast<int>(it->second.second.size()) << " lines" << std::endl; in ListSourceCodeWithParameters()
[all …]
Dstack_manager.cpp24 callFrames_[callFrame.first] = std::move(callFrame.second); in SetCallFrames()
32 if (callFrame.second->GetFunctionName().empty()) { in ShowCallFrames()
33 callFrame.second->SetFunctionName("<anonymous function>"); in ShowCallFrames()
35 std::cout << callFrame.first << ". " << callFrame.second->GetFunctionName() << "(), " in ShowCallFrames()
36 … << callFrame.second->GetUrl() << ": " << callFrame.second->GetLocation()->GetLine() << std::endl; in ShowCallFrames()
44 int32_t callFramId = callFram.second->GetCallFrameId(); in GetScopeChainInfo()
45 for (const auto &scope : *(callFram.second->GetScopeChain())) { in GetScopeChainInfo()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/
Denumerate_napi.h21 #define EVERY_SECOND2(first, second) , second argument
22 #define EVERY_SECOND3(first, second, ...) , second EVERY_SECOND2(__VA_ARGS__) argument
23 #define EVERY_SECOND4(first, second, ...) , second EVERY_SECOND3(__VA_ARGS__) argument
24 #define EVERY_SECOND5(first, second, ...) , second EVERY_SECOND4(__VA_ARGS__) argument
25 #define EVERY_SECOND6(first, second, ...) , second EVERY_SECOND5(__VA_ARGS__) argument
26 #define EVERY_SECOND7(first, second, ...) , second EVERY_SECOND6(__VA_ARGS__) argument
27 #define EVERY_SECOND8(first, second, ...) , second EVERY_SECOND7(__VA_ARGS__) argument
28 #define EVERY_SECOND9(first, second, ...) , second EVERY_SECOND8(__VA_ARGS__) argument
30 #define PARAMS_PAIR2(first, second) , first second argument
31 #define PARAMS_PAIR3(first, second, ...) , first second PARAMS_PAIR2(__VA_ARGS__) argument
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dwaiter_list.cpp26 iter->second.pTail->next_ = node; in AddNode()
27 node->prev_ = iter->second.pTail; in AddNode()
28 iter->second.pTail = node; in AddNode()
38 WaiterListNode *temp = iter->second.pHead; in DeleteNode()
48 if (node == iter->second.pHead && node == iter->second.pTail) { in DeleteNode()
53 if (node == iter->second.pHead) { in DeleteNode()
54 iter->second.pHead = node->next_; in DeleteNode()
60 if (node == iter->second.pTail) { in DeleteNode()
61 iter->second.pTail = node->prev_; in DeleteNode()
/arkcompiler/ets_frontend/es2panda/aot/
DresolveDepsRelation.cpp42 for (const auto &record : progInfo.second->program.record_table) { in FillRecord2ProgramMap()
43 if (record.second.field_list.empty()) { 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()
85 for (auto r : dep.second) { in DumpDepsRelations()
109 const auto progItr = progsInfo_.find(progkeyItr->second); in Resolve()
111 std::cerr << "Failed to find program for file: " << progkeyItr->second << std::endl; in Resolve()
114 resolvedDepsRelation_[progkeyItr->second].insert(record); in Resolve()
116 CollectStaticImportDepsRelation(progItr->second->program, record); in Resolve()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dreg_coalesce.h52 MapleVector<posPair> &posVec = it->second; in AddRange()
56 posVec[posVec.size() - 1] = std::pair(end, lastPos.second); in AddRange()
68 auto &destPosVec = destRange.second; in MergeRanges()
74 posVec.emplace_back(std::pair(pos.first, pos.second)); in MergeRanges()
79 auto &srcPosVec = it->second; in MergeRanges()
83 if (!((pos1.first < pos2.first && pos1.second < pos2.first) || in MergeRanges()
84 (pos2.first < pos1.second && pos2.second < pos1.first))) { in MergeRanges()
86 uint32 end = pos1.second > pos2.second ? pos1.second : pos2.second; in MergeRanges()
93 srcPosVec.emplace_back(std::pair(pos1.first, pos1.second)); in MergeRanges()
179 for (auto pos : range.second) { in Dump()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
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.di… 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()
435 Inst *second = nullptr; in TryAddCoalescedPair() local
439 second = cand; in TryAddCoalescedPair()
442 second = inst; in TryAddCoalescedPair()
457 checkCfg = second->IsPrecedingInSameBlock(first); in TryAddCoalescedPair()
[all …]
Dmemory_coalescing.h30 Inst *second; 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);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/30.conditional_expressions/
Dnumeric_condition_expression_type.params.yaml16 - {first: "true", second: "10", third: "20", type: ": int", check: "x == 10" }
17 - {first: "false", second: "10", third: "20", type: ": int", check: "x == 20" }
18 …- {first: "true", second: "new Int(10)", third: "new Int(20)", type: "", check: "x instanceof Int"…
19 - {first: "true", second: "new Int(10)", third: "20", type: "", check: "x instanceof Int" }
20 …- {first: "true", second: "10 as short", third: "5 as byte", type: "", check: "(x + (5 as short)) …
21 …- {first: "true", second: "new Short(10 as short)", third: "new Byte(5 as byte)", type: "", check:…
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.h280 entry.second->Clear(); in Clear()
328 methodNameSet.second.Clear(); in Clear()
354 if ((iter != methodInfoMap_.end()) && (iter->second.GetFirstMethodInfo() != nullptr)) { in GetTypeInfo()
355 iter->second.GetFirstMethodInfo()->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
363 if ((iter != methodInfoMap_.end()) && (iter->second.GetMethodInfo(checksum) != nullptr)) { in GetTypeInfo()
364 … return iter->second.GetMethodInfo(checksum)->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
377 iter->second.SetMatch(); in MatchAndMarkMethod()
405 ASSERT(ret.second); in GetOrCreateMethodInfo()
408 return methodIter->second; in GetOrCreateMethodInfo()
417 auto ret = methodMap_.emplace(checksum, method.second.GetMethodId()); in Merge()
[all …]
Dpgo_profiler_layout.cpp84 return iter->second; in GetHClassLayoutDesc()
93 return iter->second; in GetOrInsertHClassLayoutDesc()
113 rootLayout = iter->second; in DumpForRoot()
132 childLayout = iter->second; in DumpForChild()
168 auto parentLayoutDesc = transitionLayout_.find(parentType)->second; in UpdateForTransition()
169 auto childLayoutDesc = transitionLayout_.find(childType)->second; in UpdateForTransition()
184 PGOHandler oldHandler = desc.second; in InsertKeyAndDesc()
191 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc()
197 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc()
206 desc.second = PGOHandler(newTrackType, handler.GetPropertyMeta()); in InsertKeyAndDesc()
[all …]
/arkcompiler/runtime_core/static_core/assembler/tests/
Dlexer_test.cpp37 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
47 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
61 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
71 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
83 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
94 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
103 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
112 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
129 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
140 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
[all …]
/arkcompiler/runtime_core/assembler/tests/
Dlexer_test.cpp34 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
44 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
58 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
68 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
80 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
91 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
100 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
109 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
126 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
137 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_analysis_results.cpp33 constant_local_export_values_.emplace(external_name_iter, *iter.second); in SetModuleConstantAnalysisResult()
91 import_name = iter->second.import_name; in GetRegularImportInfo()
92 source_record = iter->second.source_record_name; in GetRegularImportInfo()
102 source_record = iter->second; in GetNamespaceImportInfo()
110 value = iter->second; in GetExportedConstantValue()
121 os << iter.first << ": " << iter.second.ToString() << std::endl; in Dump()
138 os << iter.first << ": import_name: " << iter.second.import_name in Dump()
139 << ", source_record_name: " << iter.second.source_record_name << std::endl; in Dump()
143 os << iter.first << ": " << iter.second << std::endl; in Dump()
175 auto &analysis_resut = iter->second; in GetLocalExportConstForRecord()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/02.enumeration_string_values/
Denum_str.params.yaml17 enum Enum { first = "A", second = "B", third = "B" }
20 assert Enum.second.valueOf() == "B"
31 enum Enum { first = "A", second = "B", third = "B" }
33 let e2 = Enum.second
39 enum Enum { first = "A", second = "B", third = "B" }
41 const e2 = Enum.second
47 enum Enum { first = "A", second = "B", third = "B" }
50 assert Enum.second as string == "B"
Denum_str_n.params.yaml17 enum Enum { first = "a", second, third } // strings must be set explicitly
22 … enum Enum { first = 11, second = "12", third = 13 } // cannot combine string and int values
24 assert Enum.second.toString() == "12"
27 enum Enum { first = "11", second = null, third = "13" } // cannot use null
32 enum Enum { first = "11", second = undefined, third = "13" } // cannot use undefined
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
Dpgo_type_manager.cpp25 for (auto &hclassIter : iter.second) { in Iterate()
26 v(Root::ROOT_VM, ObjectSlot(reinterpret_cast<uintptr_t>(&(hclassIter.second)))); in Iterate()
69 for (auto& child: root.second) { in GetSymbolCountFromHClassData()
70 if (!JSTaggedValue(child.second).IsJSHClass()) { in GetSymbolCountFromHClassData()
73 JSHClass* hclass = JSHClass::Cast(JSTaggedValue(child.second).GetTaggedObject()); in GetSymbolCountFromHClassData()
98 for (auto& child: root.second) { in GenSymbolInfo()
99 if (!JSTaggedValue(child.second).IsJSHClass()) { in GenSymbolInfo()
103 JSHClass* hclass = JSHClass::Cast(JSTaggedValue(child.second).GetTaggedObject()); in GenSymbolInfo()
134 count += root.second.size(); in GenHClassInfo()
143 for (auto& child: root.second) { in GenHClassInfo()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dopt_code_profiler.cpp30 profVec.emplace_back(std::make_pair(it->first, it->second)); in PrintAndReset()
31 it->second.ResetStat(); in PrintAndReset()
35 return x.second.Count() > y.second.Count(); in PrintAndReset()
56 Value val = it->second; in PrintAndReset()
95 if (it->second == false) { in FilterMethodToPrint()
111 profVec.emplace_back(std::make_pair(it->first, it->second)); in FilterMethodToPrint()
115 return x.second.Count() > y.second.Count(); in FilterMethodToPrint()
124 PrintMethodRecord(itr->first, itr->second.GetName()); in FilterMethodToPrint()
159 Record record = it->second; in FilterMethodToPrint()
179 (mode == Mode::TYPED_PATH) ? (it->second.typedPathValue++) : (it->second.slowPathValue++); in FilterMethodToPrint()
[all …]
/arkcompiler/ets_runtime/tools/ap_file_viewer/src/base-ui/menu/
DMainMenuGroup.js28 :host(:not([collapsed])),:host(:not([second])) ::slotted(lit-main-menu-item){
31 host(:not([collapsed])) :host([second]) ::slotted(lit-main-menu-group){
34 :host([second]) .group-name{
98 return ['title', 'describe', 'collapsed', 'nocollapse', 'radius', 'second', 'icon'];
100 get second() { getter in MainMenuGroup
101 return this.hasAttribute('second');
103 set second(value) { setter in MainMenuGroup
105 this.setAttribute('second', '');
108 this.removeAttribute('second');
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dgenerics_implicit_lambda1.sts22 static foo<T>(first: () => T, second: () => void): T {
24 second()
28 static invoke<T>(first: () => T, second: () => void): T {
30 second()

12345678910>>...45