Home
last modified time | relevance | path

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

12345678910>>...46

/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 && Enum.first == Enum.third)
22 enum Enum { first = 11, second = 11, third = 11 }
24 assert(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
27 enum Enum { first = "A", second = "B", third = "A" }
29 assert(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
32 enum Enum { first = "ABC", second = "ABC", third = "ABC" }
34 assert(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
37 enum Enum { first, second, third = 0 }
38 let arr: Enum[] = [Enum.first, Enum.second, Enum.third]
[all …]
/arkcompiler/toolchain/tooling/client/manager/
Dsource_manager.cpp93 std::cout << " fileName : " << it->second.first <<std::endl; in GetFileName()
105 int scriptId = scriptIdIt->second; in SetFileSource()
108 if (it != fileSource_.end() && it->second.second.empty()) { in SetFileSource()
113 it->second.second.push_back(line); in SetFileSource()
117 it->second.second.push_back(fileSource.substr(startPos)); in SetFileSource()
128 for (const std::string& value : it->second.second) { in GetFileSource()
131 return it->second.second; in GetFileSource()
170 std::cout << (debugLineNum_ + 1) << " " << it->second.second[debugLineNum_] << std::endl; in GetDebugSources()
189 if (startLine >= static_cast<int>(it->second.second.size()) + STATR_LINE_OFFSET || in ListSourceCodeWithParameters()
192 static_cast<int>(it->second.second.size()) << " lines" << std::endl; in ListSourceCodeWithParameters()
[all …]
Dstack_manager.cpp22 callFrames_[callFrame.first] = std::move(callFrame.second); in SetCallFrames()
30 if (callFrame.second->GetFunctionName().empty()) { in ShowCallFrames()
31 callFrame.second->SetFunctionName("<anonymous function>"); in ShowCallFrames()
33 std::cout << callFrame.first << ". " << callFrame.second->GetFunctionName() << "(), " in ShowCallFrames()
34 … << callFrame.second->GetUrl() << ": " << callFrame.second->GetLocation()->GetLine() << std::endl; in ShowCallFrames()
42 int32_t callFramId = callFram.second->GetCallFrameId(); in GetScopeChainInfo()
43 for (const auto &scope : *(callFram.second->GetScopeChain())) { in GetScopeChainInfo()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/
Denumerate_napi.h22 #define EVERY_SECOND2(first, second) , second argument
23 #define EVERY_SECOND3(first, second, ...) , second EVERY_SECOND2(__VA_ARGS__) argument
24 #define EVERY_SECOND4(first, second, ...) , second EVERY_SECOND3(__VA_ARGS__) argument
25 #define EVERY_SECOND5(first, second, ...) , second EVERY_SECOND4(__VA_ARGS__) argument
26 #define EVERY_SECOND6(first, second, ...) , second EVERY_SECOND5(__VA_ARGS__) argument
27 #define EVERY_SECOND7(first, second, ...) , second EVERY_SECOND6(__VA_ARGS__) argument
28 #define EVERY_SECOND8(first, second, ...) , second EVERY_SECOND7(__VA_ARGS__) argument
29 #define EVERY_SECOND9(first, second, ...) , second EVERY_SECOND8(__VA_ARGS__) argument
31 #define PARAMS_PAIR2(first, second) , first second argument
32 #define PARAMS_PAIR3(first, second, ...) , first second PARAMS_PAIR2(__VA_ARGS__) argument
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dwaiter_list.cpp25 iter->second.pTail->next_ = node; in AddNode()
26 node->prev_ = iter->second.pTail; in AddNode()
27 iter->second.pTail = node; in AddNode()
37 WaiterListNode *temp = iter->second.pHead; in DeleteNode()
47 if (node == iter->second.pHead && node == iter->second.pTail) { in DeleteNode()
52 if (node == iter->second.pHead) { in DeleteNode()
53 iter->second.pHead = node->next_; in DeleteNode()
59 if (node == iter->second.pTail) { in DeleteNode()
60 iter->second.pTail = node->prev_; in DeleteNode()
/arkcompiler/ets_frontend/es2panda/aot/
DresolveDepsRelation.cpp46 for (const auto &record : progInfo.second->program.record_table) { in FillRecord2ProgramMap()
47 if (record.second.field_list.empty()) { in FillRecord2ProgramMap()
51 resolvedDepsRelation_[progInfo.first].insert(record.second.name); in FillRecord2ProgramMap()
57 … if (CollectCommonjsAndJsonRecords(record.second.field_list, progInfo.first, record.second.name)) { in FillRecord2ProgramMap()
60 record2ProgramMap[record.second.name] = progInfo.first; in FillRecord2ProgramMap()
89 for (auto r : dep.second) { in DumpDepsRelations()
113 const auto progItr = progsInfo_.find(progkeyItr->second); in Resolve()
115 std::cerr << "Failed to find program for file: " << progkeyItr->second << std::endl; in Resolve()
118 resolvedDepsRelation_[progkeyItr->second].insert(record); in Resolve()
120 CollectStaticImportDepsRelation(progItr->second->program, record); in Resolve()
[all …]
/arkcompiler/ets_frontend/ets2panda/evaluate/
DpathResolver.cpp40 ASSERT(!optOverloadSet->second.empty()); in FindImportedFunctions()
41 for (const auto &[path, entity] : optOverloadSet->second) { in FindImportedFunctions()
60 ASSERT(!optOverloadSet->second.empty()); in FindExportedFunctions()
61 for (const auto &[path, entity] : optOverloadSet->second) { in FindExportedFunctions()
74 ASSERT(!optReExportAll->second.empty()); in FindExportedFunctions()
75 for (const auto &[path, entity] : optReExportAll->second) { in FindExportedFunctions()
99 ASSERT(!optEntity->second.empty()); in FindNamedImportAll()
100 for (const auto &[path, entity] : optEntity->second) { in FindNamedImportAll()
124 ASSERT(!optEntity->second.empty()); in FindImportedEntity()
125 if (optEntity->second.size() > 1) { in FindImportedEntity()
[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/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/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.h308 entry.second->Clear(); in Clear()
356 methodNameSet.second.Clear(); in Clear()
382 if ((iter != methodInfoMap_.end()) && (iter->second.GetFirstMethodInfo() != nullptr)) { in GetTypeInfo()
383 iter->second.GetFirstMethodInfo()->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
391 if ((iter != methodInfoMap_.end()) && (iter->second.GetMethodInfo(checksum) != nullptr)) { in GetTypeInfo()
392 … return iter->second.GetMethodInfo(checksum)->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
405 iter->second.SetMatch(); in MatchAndMarkMethod()
433 ASSERT(ret.second); in GetOrCreateMethodInfo()
436 return methodIter->second; in GetOrCreateMethodInfo()
445 auto ret = methodMap_.emplace(checksum, method.second.GetMethodId()); in Merge()
[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/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/runtime_core/bytecode_optimizer/
Dbytecode_analysis_results.cpp31 constant_local_export_values_.emplace(external_name_iter, *iter.second); in SetModuleConstantAnalysisResult()
89 import_name = iter->second.import_name; in GetRegularImportInfo()
90 source_record = iter->second.source_record_name; in GetRegularImportInfo()
100 source_record = iter->second; in GetNamespaceImportInfo()
108 value = iter->second; in GetExportedConstantValue()
119 os << iter.first << ": " << iter.second.ToString() << std::endl; in Dump()
136 os << iter.first << ": import_name: " << iter.second.import_name in Dump()
137 << ", source_record_name: " << iter.second.source_record_name << std::endl; in Dump()
141 os << iter.first << ": " << iter.second << std::endl; in Dump()
173 auto &analysis_resut = iter->second; in GetLocalExportConstForRecord()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dopt_code_profiler.cpp29 profVec.emplace_back(std::make_pair(it->first, it->second)); in PrintAndReset()
30 it->second.ResetStat(); in PrintAndReset()
34 return x.second.Count() > y.second.Count(); in PrintAndReset()
55 Value val = it->second; in PrintAndReset()
94 if (it->second == false) { in FilterMethodToPrint()
110 profVec.emplace_back(std::make_pair(it->first, it->second)); in FilterMethodToPrint()
114 return x.second.Count() > y.second.Count(); in FilterMethodToPrint()
123 PrintMethodRecord(itr->first, itr->second.GetName()); in FilterMethodToPrint()
158 Record record = it->second; in FilterMethodToPrint()
178 (mode == Mode::TYPED_PATH) ? (it->second.typedPathValue++) : (it->second.slowPathValue++); in FilterMethodToPrint()
[all …]
/arkcompiler/runtime_core/libabckit/src/
Dir_interface_impl.cpp24 return std::string(it->second); in GetMethodIdByOffset()
32 return std::string(it->second); in GetStringIdByOffset()
40 return std::string(it->second); in GetLiteralArrayIdByOffset()
48 return std::string(it->second); in GetTypeIdByOffset()
56 return std::string(it->second); in GetFieldIdByOffset()
/arkcompiler/runtime_core/libpandabase/utils/
Dtimers.h51 SECOND, enumerator
63 { EVENT_READ_INPUT_AND_CACHE, EventLevel::SECOND },
64 { EVENT_COMPILE_ABC_FILE, EventLevel::SECOND },
69 { EVENT_COMPILE_FILE, EventLevel::SECOND },
72 { EVENT_OPTIMIZE_PROGRAM, EventLevel::SECOND },
75 { EVENT_EMIT_SINGLE_PROGRAM, EventLevel::SECOND },
76 { EVENT_EMIT_MERGED_PROGRAM, EventLevel::SECOND },
77 { EVENT_EMIT_CACHE_FILE, EventLevel::SECOND },
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/
DIntlFormattersCache.cpp45 } else if (it->second.numFmt == nullptr) { in NumFmtsCacheInvalidation()
48 it->second.numFmt.reset(ptr); in NumFmtsCacheInvalidation()
51 ASSERT(it->second.numFmt != nullptr); in NumFmtsCacheInvalidation()
52 return *(it->second.numFmt); in NumFmtsCacheInvalidation()
73 } else if (it->second.numRangeFmt == nullptr) { in NumRangeFmtsCacheInvalidation()
77 it->second.numRangeFmt.reset(ptr); in NumRangeFmtsCacheInvalidation()
80 ASSERT(it->second.numRangeFmt != nullptr); in NumRangeFmtsCacheInvalidation()
81 return *(it->second.numRangeFmt); in NumRangeFmtsCacheInvalidation()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/evaluation/
Dconditions_storage.cpp22 ASSERT(res.second); in AddCondition()
41 auto res = evaluationEngine_.EvaluateExpression(0, iter->second.first, &iter->second.second); in EvaluateCondition()
45 if (res.Value().second != nullptr) { in EvaluateCondition()

12345678910>>...46