Home
last modified time | relevance | path

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

12345678910>>...51

/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: "FixedArray<boolean>", second: "FixedArray<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: "FixedArray<byte>", second: "FixedArray<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 assertEQ( Enum.second.valueOf(), 1 )
24 enum Enum { first, second = -2147483648, third}
27 assertEQ( Enum.second.valueOf(), -2147483648 )
31 enum Enum { first = 0x7fffffff - 2, second, third }
34 assertEQ( Enum.second.valueOf(), 2147483646 )
40 enum Enum { first = a, second = b, third = b - 1 }
43 assertEQ( Enum.second.valueOf(), b )
47 enum Enum { first, second = -1, third }
50 assertTrue( Enum.second.valueOf() == -1 )
[all …]
Denum_int_n.params.yaml20 enum Enum { first = a, second = b, third = c }
23 assertEQ( 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 assertEQ( 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 … assertTrue(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
22 enum Enum { first = 11, second = 11, third = 11 }
24 … assertTrue(Enum.first == Enum.second && Enum.second == Enum.third && Enum.first == Enum.third)
27 enum Enum { first = "A", second = "B", third = "A" }
29 … assertTrue(Enum.first != Enum.second && Enum.second != Enum.third && Enum.first == Enum.third)
32 enum Enum { first = "ABC", second = "ABC", third = "ABC" }
34 … assertTrue(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/dynamic/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/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/dateformat/
DIntlTimeFormatOptionsTest.ets29 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti…
30 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti…
31 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti…
33 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
34 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
35 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
36 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
37 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
38 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
40 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo…
[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 ES2PANDA_ASSERT(!optOverloadSet->second.empty()); in FindImportedFunctions()
41 for (const auto &[path, entity] : optOverloadSet->second) { in FindImportedFunctions()
60 ES2PANDA_ASSERT(!optOverloadSet->second.empty()); in FindExportedFunctions()
61 for (const auto &[path, entity] : optOverloadSet->second) { in FindExportedFunctions()
74 ES2PANDA_ASSERT(!optReExportAll->second.empty()); in FindExportedFunctions()
75 for (const auto &[path, entity] : optReExportAll->second) { in FindExportedFunctions()
99 ES2PANDA_ASSERT(!optEntity->second.empty()); in FindNamedImportAll()
100 for (const auto &[path, entity] : optEntity->second) { in FindNamedImportAll()
124 ES2PANDA_ASSERT(!optEntity->second.empty()); in FindImportedEntity()
125 if (optEntity->second.size() > 1) { in FindImportedEntity()
[all …]
/arkcompiler/runtime_core/static_core/abc2program/tests/
Dabc2program_test.cpp120 if (!ValidateVector(values, expectValuesIter->second)) { in ValidateAttributes()
216 EXPECT_TRUE(it.second.language == expectedLang); in TEST_F()
217 EXPECT_TRUE(it.first == it.second.name); in TEST_F()
249 EXPECT_TRUE(it.second.fieldList.size() == 2U); in TEST_F()
276 EXPECT_TRUE(it.second.language == expectedLang); in TEST_F()
277 EXPECT_TRUE(it.first == it.second.name); in TEST_F()
359 str << it.second.name; in TEST_F()
360 for (auto &param : it.second.params) { in TEST_F()
363 str << " " << it.second.returnType.GetName(); in TEST_F()
368 str << it.second.name; in TEST_F()
[all …]
/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/compiler/optimizer/optimizations/
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);
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 …]
/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 assertEQ(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 assertEQ(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 assertEQ(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/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/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.h307 entry.second->Clear(); in Clear()
360 methodNameSet.second.Clear(); in Clear()
386 if ((iter != methodInfoMap_.end()) && (iter->second.GetFirstMethodInfo() != nullptr)) { in GetTypeInfo()
387 iter->second.GetFirstMethodInfo()->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
395 if ((iter != methodInfoMap_.end()) && (iter->second.GetMethodInfo(checksum) != nullptr)) { in GetTypeInfo()
396 … return iter->second.GetMethodInfo(checksum)->GetPGOMethodTypeSet().GetTypeInfo(callback); in GetTypeInfo()
409 iter->second.SetMatch(); in MatchAndMarkMethod()
437 ASSERT(ret.second); in GetOrCreateMethodInfo()
440 return methodIter->second; in GetOrCreateMethodInfo()
449 auto ret = methodMap_.emplace(checksum, method.second.GetMethodId()); in Merge()
[all …]
/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()
179 (mode == Mode::TYPED_PATH) ? (it->second.typedPathValue++) : (it->second.slowPathValue++); in FilterMethodToPrint()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/utils/
Dasm_test.cpp40 return const_cast<ark::pandasm::Function *>(&it->second); in GetFunction()
50 return &it->second; in GetRecord()
81 auto scalarValue = found->second.fieldList[i].metadata->GetValue(); in CheckAnnoDecl()
83 …CompareActualWithExpected(expectedAnnotations[i].second, &*scalarValue, found->second.fieldList[i]… in CheckAnnoDecl()
98 for (const auto &value : literalArray.second) { in CheckLiteralArrayTable()
100 … ASSERT_EQ(value, found->second.literals[i].value) << "Value mismatch for " + literalArray.first; in CheckLiteralArrayTable()
113 … CompareActualWithExpected(it->second, element.GetValue()->GetAsScalar(), element.GetName()); in CheckAnnotation()
127 auto annotations = found->second.metadata->GetAnnotations(); in CheckRecordAnnotations()
136 CheckAnnotation(expected.second, *it); in CheckRecordAnnotations()
148 auto annotations = found->second.metadata->GetAnnotations(); in CheckModuleAnnotation()
[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()

12345678910>>...51